php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36920 Segmentation fault on echo/print
Submitted: 2006-03-30 10:51 UTC Modified: 2006-04-07 01:00 UTC
From: ttmails at web dot de Assigned:
Status: No Feedback Package: Reproducible crash
PHP Version: 5.1.2 OS: Linux/Gentoo 2.6.15-r7
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: ttmails at web dot de
New email:
PHP Version: OS:

 

 [2006-03-30 10:51 UTC] ttmails at web dot de
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 ?? ()

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-03-30 10:58 UTC] tony2001@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip


 [2006-03-30 12:11 UTC] ttmails at web dot de
tried it..

still the same bug..
 [2006-03-30 12:17 UTC] tony2001@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.


 [2006-04-07 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 10 18:01:34 2025 UTC