ID:               49968
 User updated by:  ciny at synapsia dot sk
 Reported By:      ciny at synapsia dot sk
-Status:           Feedback
+Status:           Open
 Bug Type:         mhash related
 Operating System: FreeBSD 7.2 amd64
 PHP Version:      5.2.11
 New Comment:

I don't know about ZTS - I pasted the configure options below for you
to see. I am sure that I load the correct modules. I recompiled php and
extensions several times and tried removing it completly and compiling
it again.  Is it possible that this is a FreeBSD bug rather than a php
bug?

here is the configure command used to compile php
'./configure' '--with-layout=GNU'
'--with-config-file-scan-dir=/usr/local/etc/php' '--disable-all'
'--enable-libxml' '--with-libxml-dir=/usr/local' '--enable-reflection'
'--program-prefix=' '--disable-cgi' '--with-apxs2=/usr/local/sbin/apxs'
'--with-regex=php' '--with-zend-vm=CALL' '--enable-debug'
'--prefix=/usr/local' '--mandir=/usr/local/man'
'--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd7.2'
(according to phpinfo() )


Previous Comments:
------------------------------------------------------------------------

[2009-10-23 20:20:31] sni...@php.net

Well, running something does not require installing it:

# make && sapi/cli/php -v 

And are you somehow enabling ZTS too? And you're sure you're loading
the mhash.so from the same build? (I can't reproduce this..)

------------------------------------------------------------------------

[2009-10-23 18:08:45] ciny at synapsia dot sk

ok here
http://www.pastebin.cz/e9a52bce5e4288
is the gdb output on the core dump of php 5.2.11 without the suhosin
patch with debugging symbols enabled.
If I remove mhash.so from the extensions php runs without problem. If
mhash is enabled it produces the segmentation fault (heap overflow).
Mhash package works normally and python mhash module works as well so
from what I can see it is probably some kind of issue in php5-mhash. 

PS: And yes, I can run it from commandline but I had to recompile php
without the suhosin patch included ;)

------------------------------------------------------------------------

[2009-10-23 12:36:20] j...@php.net

You can't run the thing on command line..? I thought that's how you
really meant it to be reproduced: # php -v ? (please don't reply before
you have real feedback)

------------------------------------------------------------------------

[2009-10-23 12:33:52] ciny at synapsia dot sk

it was with suhosin patch compiled in but with USE_ZEND_ALLOC set to 0.

I can post a test without suhosin but that will have to wait until 
night - I see this behaviour on a production machine so I can not allow

php to segfault during work hours and I don't have a spare one to 
reproduce the problem.

------------------------------------------------------------------------

[2009-10-23 12:08:43] j...@php.net

Was the backtrace with or without the suhosin patch? (I'm guessing
without?)

------------------------------------------------------------------------

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/49968

-- 
Edit this bug report at http://bugs.php.net/?id=49968&edit=1

Reply via email to