lightttpd-1.4.26+a few patches segfaults
In a production environment, I am stuck at version 1.4.26. As some fixes seemed quite important to me (notably BEAST one, pushed by our security officer), I got agreement to recompile it (from Ubuntu Lucid) with some changesets applied (r2716, r2806, r2808, r2810, r2815 and r2822). I realize this is not a standard distribution, but I get a segfault (not present in Ubuntu version without patches). The full backtrace is attached. The crash occurs at lige 200 of network_openssl.c, corresponding to the call "r = SSL_write(ssl, s, toSend);". I also noticed during compilation a warning at this very line (also attached), so I am wondering if this is related... But the call is already present (embedded in an "if") in the unpatched version, and it doesn't segfault... As this is not my code I did not start to hack the second argument of the call (cast or &) to see if crash stays (compiler doesn't complain any more), I think it is better to get opinion of the developers.
The crash occurs immediatedly when sending an https request to lighttpd, but only from another hosts (not checked very deeply as several people participated in the debug and I tried to get info from them). A curl from localhost doesn't seem to trigger the crash.
I can try to provide more details if needed (not immediately as the preproduction env is often used by devel teams).
Many thanks in advance for any help. Googling on "ssl3_write_bytes" and "memcpy" did not give relevant results...
Updated by dwyart over 8 years ago
Unfortunately, this is in a huge DC (several 1000s of servers, some of them still on Debian Etch) and I have 0 decision power on this topic... Just an average sysadmin :) The guideline of choosing one reference distro seems reasonable for so many machines, and I guess no "perfect" distro exist.
But of course I am fully aware of the drawbacks of Ubuntu on this front (security updates of not-so-much-used packages --- compared to Apache, for example), and completely agree with you.
Also available in: Atom