From:             ttmails at web dot de
Operating system: Linux/Gentoo 2.6.15-r7
PHP version:      5.1.2
PHP Bug Type:     Reproducible crash
Bug description:  Segmentation fault on echo/print

Description:
------------
hi!

i have a problem with php-cgi segfaulting when calling an url. i am
running apache2. this whole script is too big to paste it here and it
consists of a lot of classes.

i have a protected function, i wanted to add some debug code and apache
said that the childs died. so php segfaulted.

when i do an "echo" or "print" it segfaults.
but not if i do a "printf"... sounds very confusing

hope you can help!

thanks in advance, tim

Actual result:
--------------
# normal debug
(gdb) run -X -D PHP5
Starting program: /usr/sbin/apache2 -X -D PHP5
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 10992)]
[Thu Mar 30 10:41:22 2006] [warn] NameVirtualHost *:80 has no
VirtualHosts

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 10992)]
0xb77c9b38 in zend_print_zval_r_ex () from
/usr/lib/apache2/modules/libphp5.so

# backtrace
(gdb) bt
#0  0xb77c9b38 in zend_print_zval_r_ex () from
/usr/lib/apache2/modules/libphp5.so
#1  0xb79be611 in php_tiff_bytes_per_format () from
/usr/lib/apache2/modules/libphp5.so
#2  0x00000006 in ?? ()
#3  0x08218a08 in ?? ()
#4  0x082c07cc in ?? ()
#5  0xbf87d0ec in ?? ()
#6  0xbf87d2d0 in ?? ()
#7  0x08287b1c in ?? ()
#8  0xb77cbcbd in zend_parse_parameters () from
/usr/lib/apache2/modules/libphp5.so
#9  0x00000001 in ?? ()
#10 0x082c07cc in ?? ()
#11 0xbf87d0ec in ?? ()
#12 0xb77c9a10 in zend_print_zval_r () from
/usr/lib/apache2/modules/libphp5.so
#13 0xb7790ab0 in php_request_shutdown () from
/usr/lib/apache2/modules/libphp5.so
#14 0x082c069c in ?? ()
#15 0x00000000 in ?? ()

-- 
Edit bug report at http://bugs.php.net/?id=36920&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=36920&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=36920&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=36920&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=36920&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=36920&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=36920&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=36920&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=36920&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=36920&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=36920&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=36920&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=36920&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=36920&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=36920&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=36920&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=36920&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=36920&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=36920&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=36920&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=36920&r=mysqlcfg

Reply via email to