https://bugs.dragonflybsd.org/https://bugs.dragonflybsd.org/favicon.ico?16293952082008-05-13T11:00:02ZDragonFlyBSD bugtrackerDragonFlyBSD - Bug #1006: digest is down; suggestions welcomehttps://bugs.dragonflybsd.org/issues/1006?journal_id=45842008-05-13T11:00:02Zjustin
<ul></ul><p>... and if it helps, backtrace obtained with sjg's help here:</p>
<p><a class="external" href="http://www.pastebin.org/35576">http://www.pastebin.org/35576</a></p> DragonFlyBSD - Bug #1006: digest is down; suggestions welcomehttps://bugs.dragonflybsd.org/issues/1006?journal_id=45852008-05-13T15:28:02Zdillon
<ul></ul><p>:<br />:... and if it helps, backtrace obtained with sjg's help here:<br />:<br />:http://www.pastebin.org/35576<br />:</p>
<pre><code>I google searched zif_unserialize and found a bunch of bug reports<br /> from 2005/2006 that look similar. I couldn't find anything definitive<br /> but there was one suggestion that the thread stack might be too small,<br /> another someone else posted something about a bug being fixed in PHP_5_2.<br /> This was 2 years ago, though.</code></pre>
<pre><code>The only other thing I can suggest is to check the dates on the various<br /> .so libraries being accessed. You may have updated the application but<br /> not the shared library backing it.</code></pre>
<pre><code>-Matt<br /> Matthew Dillon <br /> &lt;<a class="email" href="mailto:dillon@backplane.com">dillon@backplane.com</a>&gt;</code></pre> DragonFlyBSD - Bug #1006: digest is down; suggestions welcomehttps://bugs.dragonflybsd.org/issues/1006?journal_id=45862008-05-14T04:01:02Zjustin
<ul></ul><p>On May 12, 2008, at 11:53 PM, Justin Sherrill wrote:</p>
<p><a class="external" href="http://www.pastebin.org/35758">http://www.pastebin.org/35758</a> has the same results with more <br />debugging info retained by recompiling the applications.</p> DragonFlyBSD - Bug #1006: digest is down; suggestions welcomehttps://bugs.dragonflybsd.org/issues/1006?journal_id=45872008-05-14T04:25:00ZJohannes.Hofmann
<ul></ul><p>as there seems to something pthread related in the stack, where<br />does /usr/lib/libpthread.so.0 point to on your system?<br />Does it help to change the link to either libthread_xu.so or<br />libc_r.so?</p>
<pre><code>Johannes</code></pre> DragonFlyBSD - Bug #1006: digest is down; suggestions welcomehttps://bugs.dragonflybsd.org/issues/1006?journal_id=45882008-05-14T05:07:12Zdillon
<ul></ul><p>:<br />:<br />:On May 12, 2008, at 11:53 PM, Justin Sherrill wrote:<br />:<br />:> ... and if it helps, backtrace obtained with sjg's help here:<br />:><br />:> <a class="external" href="http://www.pastebin.org/35576">http://www.pastebin.org/35576</a><br />:><br />:<br />:http://www.pastebin.org/35758 has the same results with more <br />:debugging info retained by recompiling the applications.</p>
<pre><code>I hate to suggest it but... if you can get that mess (the core,<br /> binaries, and libraries) onto your leaf account so I can gdb it<br /> myself, I can try to track down why it crashed.</code></pre>
<pre><code>-Matt<br /> Matthew Dillon <br /> &lt;<a class="email" href="mailto:dillon@backplane.com">dillon@backplane.com</a>&gt;</code></pre> DragonFlyBSD - Bug #1006: digest is down; suggestions welcomehttps://bugs.dragonflybsd.org/issues/1006?journal_id=45892008-05-14T21:41:01Ztuxillo
<ul></ul><p>What about the commits between 1.12.1 and 1.12.2 related with threading lib?</p> DragonFlyBSD - Bug #1006: digest is down; suggestions welcomehttps://bugs.dragonflybsd.org/issues/1006?journal_id=45912008-05-14T22:36:01Zjustin
<ul></ul><p>I'm still using the same threading library in both cases - libc_r.</p> DragonFlyBSD - Bug #1006: digest is down; suggestions welcomehttps://bugs.dragonflybsd.org/issues/1006?journal_id=45932008-05-15T01:36:00Zjoerg
<ul></ul><p>I've been seeing random PHP segfaults lately in the module init code.<br />That's a standalone PHP using FastCGI.</p>
<p>Joerg</p> DragonFlyBSD - Bug #1006: digest is down; suggestions welcomehttps://bugs.dragonflybsd.org/issues/1006?journal_id=45942008-05-15T01:54:01Zdblazakis
<ul></ul><p>It seems there was an off-by-one error in the strspn code in our libc.<br /> The buffer was a byte too small and resulted in overwriting the saved<br />ebx which was the offset to the GOT -- but only if strspn was used<br />with a \xff in the second string.</p>
<p>I have a patch here:<br /><a class="external" href="http://dblaz.beevomit.org/dfly/strspn.patch">http://dblaz.beevomit.org/dfly/strspn.patch</a></p>
<p>I've verified it fixes the PHP problem. Also, I tested it against a<br />small program that called strspn with a \xff in the second string and<br />verified that ebx was correctly restored (unlike prior to the patch).</p>
<p>-- Dion</p>
<p>On Wed, May 14, 2008 at 2:32 PM, Joerg Sonnenberger<br /><<a class="email" href="mailto:joerg@britannica.bec.de">joerg@britannica.bec.de</a>> wrote:</p>
<blockquote>
<p>On Wed, May 14, 2008 at 11:30:19AM -0400, Justin C. Sherrill wrote:</p>
<blockquote>
<p>Antonio Huete Jimenez wrote:</p>
<blockquote>
<p>Antonio Huete Jimenez <<a class="email" href="mailto:tuxillo@quantumachine.net">tuxillo@quantumachine.net</a>> added the comment:</p>
<p>What about the commits between 1.12.1 and 1.12.2 related with threading lib?</p>
</blockquote>
<p>I'm still using the same threading library in both cases - libc_r.</p>
</blockquote>
<p>I've been seeing random PHP segfaults lately in the module init code.<br />That's a standalone PHP using FastCGI.</p>
<p>Joerg</p>
</blockquote> DragonFlyBSD - Bug #1006: digest is down; suggestions welcomehttps://bugs.dragonflybsd.org/issues/1006?journal_id=45952008-05-15T02:22:00Zjoerg
<ul></ul><p>That doesn't make sense. The array is indexed by 0..255 below and 256 is<br />certainly not a valid character.</p>
<p>Joerg</p> DragonFlyBSD - Bug #1006: digest is down; suggestions welcomehttps://bugs.dragonflybsd.org/issues/1006?journal_id=45962008-05-15T02:28:01Zdblazakis
<ul></ul><p>But the size of the array is 256; 0-255 inclusive.</p>
<p>-- Dion</p>
<p>On Wed, May 14, 2008 at 3:16 PM, Joerg Sonnenberger<br /><<a class="email" href="mailto:joerg@britannica.bec.de">joerg@britannica.bec.de</a>> wrote:</p>
<blockquote>
<p>On Wed, May 14, 2008 at 02:49:14PM -0400, Dionysus Blazakis wrote:</p>
<blockquote>
<p>I have a patch here:<br /><a class="external" href="http://dblaz.beevomit.org/dfly/strspn.patch">http://dblaz.beevomit.org/dfly/strspn.patch</a></p>
</blockquote>
<p>That doesn't make sense. The array is indexed by 0..255 below and 256 is<br />certainly not a valid character.</p>
<p>Joerg</p>
</blockquote> DragonFlyBSD - Bug #1006: digest is down; suggestions welcomehttps://bugs.dragonflybsd.org/issues/1006?journal_id=45972008-05-15T02:59:00Zjoerg
<ul></ul><p>Bah.</p>
<p>/me can't think</p>
<p>Joerg</p> DragonFlyBSD - Bug #1006: digest is down; suggestions welcomehttps://bugs.dragonflybsd.org/issues/1006?journal_id=45982008-05-15T03:11:00Zjustin
<ul></ul><p>This fixed it - the Digest is back up, thanks to Dave.</p>
<p>This would be worth bringing back to 1.12.2.</p> DragonFlyBSD - Bug #1006: digest is down; suggestions welcomehttps://bugs.dragonflybsd.org/issues/1006?journal_id=45992008-05-15T03:32:00Zjustin
<ul></ul><p>On Wed, May 14, 2008 4:06 pm, Justin C. Sherrill wrote:</p>
<p>I meant Dion. Dave was the one who explained how to recompile easily. <br />"Thanks, a bunch of helpful people".</p> DragonFlyBSD - Bug #1006: digest is down; suggestions welcomehttps://bugs.dragonflybsd.org/issues/1006?journal_id=46012008-05-15T04:00:01Zjspringe
<ul></ul><p>On Wed, 14 May 2008 16:06:19 -0400 (EDT)<br />"Justin C. Sherrill" <<a class="email" href="mailto:justin@shiningsilence.com">justin@shiningsilence.com</a>> wrote:</p>
<p>It definitely would be,<br />just as a side-note, I am curious if that also may have something to do with Johannes Problem<br />that he mentioned in the gcc Fortran base thread and here: <br /><a class="external" href="http://leaf.dragonflybsd.org/mailarchive/users/2007-11/msg00032.html">http://leaf.dragonflybsd.org/mailarchive/users/2007-11/msg00032.html</a><br />If that's pure nonsense ignore it but i remember him having problems with strspn !?</p> DragonFlyBSD - Bug #1006: digest is down; suggestions welcomehttps://bugs.dragonflybsd.org/issues/1006?journal_id=46022008-05-15T04:09:00ZJohannes.Hofmann
<ul></ul><p>As far as I can see it's unrelated. It seems to be another libc bug<br />that has been fixed in FreeBSD some time ago:<br /><a class="external" href="http://leaf.dragonflybsd.org/mailarchive/users/2008-05/msg00097.html">http://leaf.dragonflybsd.org/mailarchive/users/2008-05/msg00097.html</a></p>
<pre><code>Johannes</code></pre> DragonFlyBSD - Bug #1006: digest is down; suggestions welcomehttps://bugs.dragonflybsd.org/issues/1006?journal_id=46032008-05-15T10:52:02Zdillon
<ul></ul><p>:<br />:On Wed, May 14, 2008 4:06 pm, Justin C. Sherrill wrote:<br />:<br />:> This fixed it - the Digest is back up, thanks to Dave.<br />:<br />:I meant Dion. Dave was the one who explained how to recompile easily. <br />:"Thanks, a bunch of helpful people".</p>
<pre><code>Excellent!</code></pre>
<pre><code>-Matt<br /> Matthew Dillon <br /> &lt;<a class="email" href="mailto:dillon@backplane.com">dillon@backplane.com</a>&gt;</code></pre>