Bug #52752 [Com]: Program terminated with signal 7, Bus error.

From: Date: Sat, 04 Sep 2010 16:24:58 +0000
Subject: Bug #52752 [Com]: Program terminated with signal 7, Bus error.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-154090@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52752&edit=1

 ID:                 52752
 Comment by:         paulgao at yeah dot net
 Reported by:        paulgao at yeah dot net
 Summary:            Program terminated with signal 7, Bus error.
 Status:             Feedback
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   irrelevant
 PHP Version:        5.3SVN-2010-08-31 (SVN)
 Block user comment: N

 New Comment:

Anybody There?


Previous Comments:
------------------------------------------------------------------------
[2010-09-02 08:15:49] paulgao at yeah dot net

please use “ab -n 200 -n 20 http://xxx/xxx.php“
test.

------------------------------------------------------------------------
[2010-09-01 15:19:11] paulgao at yeah dot net

script run in Centos 5 32bit server, php-fpm mode.

configure command:
./configure --prefix=/usr/local/php --without-pear --with-mysqli=mysqlnd
--disable-phar --with-iconv --with-zlib --enable-exif --enable-sockets
--enable-mbstring=all --enable-inline-optimization --enable-debug
--enable-static --disable-ipv6 --disable-pdo --without-sqlite
--enable-fpm --with-libevent=shared

------------------------------------------------------------------------
[2010-09-01 15:17:28] paulgao at yeah dot net

test script:
<?php

file_put_contents(__DIR__ . '/test.tpl', "TEST");

ob_start();

include __DIR__ . '/test.tpl';

file_put_contents(__DIR__ . '/cache.tpl', ob_get_clean());

include __DIR__ . '/cache.tpl';

?>

core dump backtreace message:


#0  0x082fd8d6 in lex_scan (zendlval=0xbff7295c) at
Zend/zend_language_scanner.c:930
930                     yych = *YYCURSOR;
(gdb) bt
#0  0x082fd8d6 in lex_scan (zendlval=0xbff7295c) at
Zend/zend_language_scanner.c:930
#1  0x08324d5d in zendlex (zendlval=0xbff72958) at
/root/php-5.3.3/Zend/zend_compile.c:4947
#2  0x082f7447 in zendparse () at
/root/php-5.3.3/Zend/zend_language_parser.c:3280
#3  0x082fcc97 in compile_file (file_handle=0xbff72ad0, type=2) at
Zend/zend_language_scanner.l:354
#4  0x082fcdec in compile_filename (type=2, filename=0xa179af0) at
Zend/zend_language_scanner.l:397
#5  0x0837983e in ZEND_INCLUDE_OR_EVAL_SPEC_TMP_HANDLER
(execute_data=0xa179a04) at /root/php-5.3.3/Zend/zend_vm_execute.h:5199
#6  0x08369b48 in execute (op_array=0xa1467a4) at
/root/php-5.3.3/Zend/zend_vm_execute.h:107
#7  0x083398ca in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /root/php-5.3.3/Zend/zend.c:1266
#8  0x082cc48f in php_execute_script (primary_file=0xbff77034) at
/root/php-5.3.3/main/main.c:2275
#9  0x0840f171 in main (argc=3, argv=0xbff77174) at
/root/php-5.3.3/sapi/fpm/fpm/fpm_main.c:1865

------------------------------------------------------------------------
[2010-09-01 07:00:48] rasmus@php.net

That doesn't seem to be APC-related if the backtrace is to be believed. 
It seems 
to be happening on the initial compile.  But yes, please verify that it
happens 
without APC as well.

------------------------------------------------------------------------
[2010-09-01 06:01:59] aharvey@php.net

Please test if this fails without APC. If so, we'll need a test script
to diagnose the problem.

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


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/bug.php?id=52752


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


Thread (44 messages)

« previous php.bugs (#154090) next »