Re: PHP Seg Faults, How to Trackdown?
| From: | Rasmus Lerdorf | Date: | Tue, 30 Mar 2004 23:39:13 +0000 |
| Subject: | Re: PHP Seg Faults, How to Trackdown? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-181879@lists.php.net to get a copy of this message | ||
3 of those are putenv() crashes. Whenever I see that I always think
thread safety issues. In your case you are linking against the NTPL-aware
libc on Redhat (/lib/tls/libc.so.6). Could you try doing this:
LD_PRELOAD=/lib/i686/libc.so.6
in your Apache startup script and let me know if it still crashes?
-Rasmus
On Tue, 30 Mar 2004, Tim Schaab wrote:
> I need help tracking down a crash in PHP. I have not been able to work
> out a test case where it will crash reliably, so I have been hesitant to
> fill out a bug report.
>
> Here's the kit I have running:
>
> PHP4 - Latest Stable Snapshot as of 30/Mar/2004 12:18
> Apache - 1.3.29
> mod_ssl - 2.8.16
> mod_perl - 1.29
> Red hat 9 - 2.4.20 Kernel
>
> The problem is when I try to access my web-mail sites, it will crash
> after a period of time. I have done a number of gdb sessions, but I
> need some help interpreting the results. You can find the gdb log from
> a few of the crashes here:
>
> http://madweb.org/errors/Error1.txt
> http://madweb.org/errors/Error2.txt
> http://madweb.org/errors/Error3.txt
> http://madweb.org/errors/Error4.txt
> http://madweb.org/errors/Error5.txt
>
> I thought it might be something to do with IMAP since the web-mail pages
> (IMP/HORDE and SquirrelMail), so I tried different versions of the UW
> IMAP client, but crashes still took place with both the 2000 and 2002
> versions.
>
> When PHP is compiled in debug mode, I got a ton of leak messages in
> Apache's error log.
>
> I tried to setup a different Apache instance on a different port to use
> that one for debugging purposes. However, I can not get that on to
> crash. I have it running on ports 4080 and 4443(SSL) and I can not get
> it to crash even after pounding and pounding the web-mail sites.
>
> So I have a decent amount of info to work from, not sure what to do next
> to get the crashes to stop. I am open to any and all suggestions to try
> and pin this bugger down.
>
> Cheers,
>
> Tim
> --
> Tim Schaab
> http://madweb.org
> http://madtown.cc
> tim@madweb.org tim@madtown.cc
>
> The most exciting phrase to hear in science, the one that heralds new
> discoveries, is not "Eureka!" (I found it!) but "That's funny"
> -- Isaac Asimov
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>