polipo 1.0.4.1-1.1 segfaults inside ___vsnprintf_chk on connection failure when using unbound as a dns server
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
polipo (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: polipo
I recently changed my polipo config to do a bunch of things. In some quick A/B testing, I think the change that caused this to start happening was "pipelineAdditi
Every few requests, it crashes with a segfault when printing an error message, in ___vsnprintf_chk, but I don't have debugging symbols above that call. I've attached my config file and a coredump after the segfault, please advise as to how to continue debugging. For the moment, I'm fairly convinced it's just that one config option (pipelineAdditi
Never mind, the bug still occurs even with that line commented out, it's got to be the logging stuff. I really would much rather it go to syslog so this is a bit more critical for me.
I have a second backtrace and coredump, this time from it segfaulting when printing a different error. Here is the backtrace:
Program received signal SIGSEGV, Segmentation fault. internal (s=0x7fff966ba1f0, internal (s=0x7fff966ba1f0, a390)
0x00007f5d12bcc7aa in _IO_vfprintf_
format=<value optimized out>, ap=0x7fff966ba390) at vfprintf.c:1614
1614 vfprintf.c: No such file or directory.
in vfprintf.c
(gdb) bt
#0 0x00007f5d12bcc7aa in _IO_vfprintf_
format=<value optimized out>, ap=0x7fff966ba390) at vfprintf.c:1614
#1 0x00007f5d12c80a80 in ___vsnprintf_chk (
s=0x11c2690 "Inconsistent \"from client: Connection reset by peer",
maxlen=<value optimized out>, flags=1, slen=<value optimized out>,
format=0x4288c4 "Inconsistent \"%s\" reply for ", args=0x7fff966b
at vsnprintf_chk.c:65
The coredump will follow in another attachment. (please note these are amd64 dumps)
If someone can get me the debugging symbols for polipo I can probably debug this myself. It seems to just be a null pointer getting passed into a printf somewhere but I can't see where it comes from.