ID: 34435
Updated by: [EMAIL PROTECTED]
Reported By: voxus at mail dot ru
Status: Feedback
Bug Type: Reproducible crash
Operating System: Gentoo Linux
PHP Version: 5.0.5
New Comment:
..and now please
gdb> p buf
gdb> p classname
gdb> p name_len
?
Previous Comments:
------------------------------------------------------------------------
[2005-09-09 10:42:51] m at aptual dot fi
(gdb) f 1
#1 0x00000000004ee11a in php_var_serialize_class_name
(buf=0x7fbfffce40, struc=0x7f00000013)
at /usr/src/php-5.0.5/ext/standard/var.c:519
519 smart_str_appendl(buf, class_name, name_len);
------------------------------------------------------------------------
[2005-09-09 10:33:57] [EMAIL PROTECTED]
That's much better.
And could you plz do:
gdb> f1
after "bt" to see what exactly happens there?
------------------------------------------------------------------------
[2005-09-09 10:23:16] m at aptual dot fi
I'm not sure if this was directed at me, but here's my 2 eurocents
anyway (using the same script):
My GDB output:
http://m.bytech.fi/dev/php505gdb.txt
And with Valgrind:
http://m.bytech.fi/dev/php505valgrind.txt
------------------------------------------------------------------------
[2005-09-09 09:41:50] [EMAIL PROTECTED]
Try to get some more info with valgrind (since the problem is
reproducible only by you).
------------------------------------------------------------------------
[2005-09-09 09:39:24] m at aptual dot fi
I ran into this problem too, however the segmentation fault only occurs
when I use
./configure --with-apxs2=/usr/local/apache/bin/apxs
to compile PHP, instead of just ./configure. Yet the segmentation fault
is not limited to the apache module, but the sapi/cli/php binary crashes
as well. And just as stated by the previous poster, --enable-debug
'fixes' the problem.
I'm using Apache 2.0.52, an SMP kernel version 2.6.8 (x86_64) and gcc
version 3.3.4.
------------------------------------------------------------------------
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/34435
--
Edit this bug report at http://bugs.php.net/?id=34435&edit=1