https://redmine.lighttpd.net/https://redmine.lighttpd.net/favicon.ico?13667327412009-03-04T16:46:02Zlighty labsLighttpd - Bug #1926: lighttpd 1.4.21 crashes on receipt of SIGINT on Solarishttps://redmine.lighttpd.net/issues/1926?journal_id=56182009-03-04T16:46:02Zacd
<ul></ul><p>Oh, one more thing worth noting, the signal received by sigaction_handler is 2 -- SIGINT. I'm not sure why GDB can't see that, perhaps it's in a register or something, but I added a printf statement in sigaction_handler to display sig and the value is 2.</p> Lighttpd - Bug #1926: lighttpd 1.4.21 crashes on receipt of SIGINT on Solarishttps://redmine.lighttpd.net/issues/1926?journal_id=56302009-03-07T10:01:40Zstbuehler
<ul><li><strong>File</strong> <a href="/attachments/818">solaris_sigint_segfault.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/818/solaris_sigint_segfault.patch">solaris_sigint_segfault.patch</a> added</li><li><strong>Target version</strong> changed from <i>1.4.21</i> to <i>1.4.22</i></li></ul><p>Some background info: <a class="external" href="http://fixunix.com/274252-post5.html">http://fixunix.com/274252-post5.html</a></p>
<p>I prefer setting the struct to 0 (that seems to reflect the behavior on my system). Could you please try the attached patch?</p> Lighttpd - Bug #1926: lighttpd 1.4.21 crashes on receipt of SIGINT on Solarishttps://redmine.lighttpd.net/issues/1926?journal_id=56332009-03-07T14:00:07Zstbuehler
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Fixed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Applied in changeset r2409.</p> Lighttpd - Bug #1926: lighttpd 1.4.21 crashes on receipt of SIGINT on Solarishttps://redmine.lighttpd.net/issues/1926?journal_id=56342009-03-07T14:14:06Zacd
<ul></ul><p>This seems like a good workaround but shouldn't empty_siginfo be initialized? It looks like lighttpd is only using si_uid and si_pid from last_sigterm_info for logging, so it won't cause any negative behavior, but it doesn't seem clean to me.</p> Lighttpd - Bug #1926: lighttpd 1.4.21 crashes on receipt of SIGINT on Solarishttps://redmine.lighttpd.net/issues/1926?journal_id=56352009-03-07T14:20:19Zstbuehler
<ul></ul><p><a class="external" href="http://flash-gordon.me.uk/ansi.c.txt">http://flash-gordon.me.uk/ansi.c.txt</a></p>
<blockquote>
<p>If an object that has static storage duration is not initialized<br />explicitly, it is initialized implicitly as if every member that has<br />arithmetic type were assigned 0 and every member that has pointer type<br />were assigned a null pointer constant.</p>
</blockquote> Lighttpd - Bug #1926: lighttpd 1.4.21 crashes on receipt of SIGINT on Solarishttps://redmine.lighttpd.net/issues/1926?journal_id=56362009-03-07T14:22:51Zacd
<ul><li><strong>File</strong> <a href="/attachments/819">solaris_sigint_segfault-alternate.patch</a> <a class="icon-only icon-download" title="Download" href="/attachments/download/819/solaris_sigint_segfault-alternate.patch">solaris_sigint_segfault-alternate.patch</a> added</li></ul><p>Maybe this patch is better...?</p> Lighttpd - Bug #1926: lighttpd 1.4.21 crashes on receipt of SIGINT on Solarishttps://redmine.lighttpd.net/issues/1926?journal_id=56372009-03-07T14:25:05Zacd
<ul></ul><p>stbuehler wrote:</p>
<blockquote>
<p><a class="external" href="http://flash-gordon.me.uk/ansi.c.txt">http://flash-gordon.me.uk/ansi.c.txt</a></p>
<blockquote>
<p>If an object that has static storage duration is not initialized<br />explicitly, it is initialized implicitly as if every member that has<br />arithmetic type were assigned 0 and every member that has pointer type<br />were assigned a null pointer constant.</p>
</blockquote></blockquote>
<p>Well I learn something new every day :). Didn't realize that about static structs. Thanks for the info.</p>