#27183 [Ver]: userland stream wrapper segfaults on stream_write
| From: | chregu@php.net | Date: | Tue, 10 Feb 2004 21:02:59 +0000 |
| Subject: | #27183 [Ver]: userland stream wrapper segfaults on stream_write | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-54711@lists.php.net to get a copy of this message | ||
ID: 27183
Updated by: chregu@php.net
Reported By: chregu@php.net
Status: Verified
Bug Type: Filesystem function related
Operating System: Mac OS X 10.3
PHP Version: 4CVS-2004-02-08 (stable)
New Comment:
moriyoshi's patch works for me.
Previous Comments:
------------------------------------------------------------------------
[2004-02-09 13:50:49] moriyoshi@php.net
Here's the patch:
http://www.voltex.jp/downloads/bug27183-
preliminary.diff.txt
The error is obvious: one shouldn't store a transient
pointer to a transient zval that resides in the stack
frame :)
------------------------------------------------------------------------
[2004-02-09 13:33:16] moriyoshi@php.net
Finally I managed to reproduce the crash. It looks like
--enable-debug suppresses the bus error. Really
strange... Another endian issue?
------------------------------------------------------------------------
[2004-02-09 05:44:31] sniper@php.net
I get the same crash with PHP 4.3.3..
# uname -a
Darwin foobar 6.8 Darwin Kernel Version 6.8: Wed Sep 10 15:20:55 PDT
2003; root:xnu/xnu-344.49.obj~2/RELEASE_PPC Power Macintosh powerpc
------------------------------------------------------------------------
[2004-02-09 05:25:40] chregu@php.net
it crashes even with the default config:
phpinfo()
PHP Version => 4.3.5RC2
System => Darwin chregu.local 7.2.0 Darwin Kernel
Version 7.2.0: Thu Dec 11 16:20:23 PST 2003; root:xnu/
xnu-517.3.7.obj~1/RELEASE_PPC Power Macintosh
Build Date => Feb 9 2004 11:18:45
Configure Command => './configure' '--with-expat-dir=/
sw/' '--with-zlib'
------------------------------------------------------------------------
[2004-02-09 04:27:46] chregu@php.net
here's my config line
'./configure' '--with-config-file-path=/usr/local/bxphp/
apache/conf' '--prefix=/usr/local/bxphp/' '--with-apxs=/
usr/local/bxphp/apache/bin/apxs' '--with-dom=/sw/' '--
with-tidy=/usr/local/' '--with-zlib' '--with-mysql=/sw/'
'--with-png-dir=/sw/' '--with-expat-dir=/sw/' '--with-
iconv=/sw/' '--with-iconv-dir=/sw/' '--with-xml=/sw/'
'--with-gd' '--with-jpeg-dir=/sw/' '--enable-debug=no'
'--with-mime-magic=/sw/share/file/magic.mime' '--with-
dom-xslt=/sw/' '--with-dom-exslt=/sw/'
I'll try with a minimal set of extensions and see if the
problem persists.
------------------------------------------------------------------------
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/27183
--
Edit this bug report at http://bugs.php.net/?id=27183&edit=1