ID: 25620 User updated by: xris at farcaster dot net Reported By: xris at farcaster dot net Status: Open Bug Type: Gettext related Operating System: GNU/Linux 2.4.20 PHP Version: 4.3.3 New Comment:
Okay, i just managed to get PHP to segfault using the command line version.. here's the backtrace: #0 0x409bdc4d in _int_free () from /lib/libc.so.6 #1 0x409bcaba in free () from /lib/libc.so.6 #2 0x081b0ad2 in shutdown_memory_manager () #3 0x08196956 in php_request_shutdown () #4 0x081cef1c in main () #5 0x4095f7a7 in __libc_start_main () from /lib/libc.so.6 I guess this doesn't look too good and/or doesn't help much. Any hints on how to proceed? Previous Comments: ------------------------------------------------------------------------ [2003-09-22 15:44:54] xris at farcaster dot net > Could you try providing a short script that uses > gettext functions which can be used to reproduce this..? Sorry, i can't - the bug seems to occurr in larger scripts only... (at least i wasn't able to reproduce in a small script) I'd love to provide a backtrace, but all my efforts so far haven't been very successful, neither by following the steps here at bugs.php.net nor the description at the apache.org site. It doesn't matter if i try gdb or strace, both tools quit with s.th. like: "ptrace: Operation not permitted" Any hints on that? I googled for nearly an hour but couldn't find a reason for gdb to fail with that err. I tried gdb/apache with "-X -PHP4" as well as attaching to the apache process afterwards but i keep getting the mentioned ptrace error - or do i have to use Apache1.3 to trace the problem? Any help is greatly appreciated. ------------------------------------------------------------------------ [2003-09-22 07:32:58] [EMAIL PROTECTED] And/or provide a backtrace of the crash (without --enable-debug, of course as you said it happens only then) ------------------------------------------------------------------------ [2003-09-22 07:30:27] [EMAIL PROTECTED] Could you try providing a short script that uses gettext functions which can be used to reproduce this..? ------------------------------------------------------------------------ [2003-09-21 19:34:26] [EMAIL PROTECTED] It should be a relatively simple fix. I am about to get on a plane, but I will have a look when I get a chance. I have a feeling that now that we think we know there is a string somewhere in gettext not getting null-terminated someone will jump in and find it before me. ------------------------------------------------------------------------ [2003-09-21 18:58:51] xris at farcaster dot net Good guess. A 4.3.3 without Gettext doesn't show the symptoms. How to proceed next? ... i wouldn't be too fond of the idea having to reimplement _() in php ... ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/25620 -- Edit this bug report at http://bugs.php.net/?id=25620&edit=1