#23760 [NEW]: using virtual() causes segmentation faults
| From: | php-general at pennysaverusa dot net | Date: | Thu, 22 May 2003 20:56:07 +0000 |
| Subject: | #23760 [NEW]: using virtual() causes segmentation faults | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-40209@lists.php.net to get a copy of this message | ||
From: php-general at pennysaverusa dot net
Operating system: RedHat 7.3
PHP version: 4.3.2RC4
PHP Bug Type: Reproducible crash
Bug description: using virtual() causes segmentation faults
After making a mistake (forgetting to set a session variable), one of my
pages started crashing apache ("child pid 7413 exit signal Segmentation
fault (11)" in apache error log).
After a lot of hair-pulling, it turns out that changing a virtual()
statement to an include() statement fixes the segfaulting. There is no PHP
code in the included file, only html & client-side JS.
This is the error that _should_ display if it doesn't segfault:
Notice: Undefined index: product in /var/www/html/mercury/order_review.php
on line 122
line 122:
<?=$_SESSION["product"];?>
I tried using DBG, but it still segfaults!
This happens in 4.3.2RC4 and RC3
Configure command:
./configure --with-mysql --with-gd --with-zlib-dir=/usr/lib
--with-apxs=/usr/sbin/apxs --with-config-file-path=/etc --enable-sockets
mysql is version 4.0.12 (mysql Ver 12.18 Distrib 4.0.12, for pc-linux
(i686))
I tried following the backtrace instructions, but I am unable to get a
core dump, and running inside of gdb doesn't seem to let me hit the
webserver.
Server is SMP (Dual P4 Xeon).
Apache is
apache-1.3.27-2 from RedHat's RPM.
/usr/sbin/httpd -DHAVE_ACCESS -DHAVE_PROXY -DHAVE_AUTH_ANON -DHAVE_ACTIONS
-DHAVE_ALIAS -DHAVE_ASIS -DHAVE_AUTH -DHAVE_AUTOINDEX -DHAVE_AUTH_DB
-DHAVE_AUTH_DBM -DHAVE_PHP4 -DHAVE_CERN_META -DHAVE_CGI -DHAVE_DIGEST
-DHAVE_DIR -DHAVE_ENV -DHAVE_EXAMPLE -DHAVE_EXPIRES -DHAVE_HEADERS
-DHAVE_IMAP -DHAVE_INCLUDE -DHAVE_INFO -DHAVE_LOG_AGENT -DHAVE_LOG_CONFIG
-DHAVE_LOG_REFERER -DHAVE_MIME -DHAVE_MIME_MAGIC -DHAVE_MMAP_STATIC
-DHAVE_NEGOTIATION -DHAVE_REWRITE -DHAVE_SETENVIF -DHAVE_SPELING
-DHAVE_STATUS -DHAVE_UNIQUE_ID -DHAVE_USERDIR -DHAVE_USERTRACK
-DHAVE_VHOST_ALIAS -DHAVE_SSL
Thanks,
Barry Gould
--
Edit bug report at http://bugs.php.net/?id=23760&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=23760&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=23760&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=23760&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=23760&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=23760&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=23760&r=support
Expected behavior: http://bugs.php.net/fix.php?id=23760&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=23760&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=23760&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=23760&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23760&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=23760&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=23760&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=23760&r=gnused