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:

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


Previous Comments:
------------------------------------------------------------------------
[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] ras...@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] ahar...@php.net

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

------------------------------------------------------------------------
[2010-08-31 20:45:32] paulgao at yeah dot net

I use 5.3.4-dev, and APC 3.1.5-dev.

------------------------------------------------------------------------
[2010-08-31 20:43:53] paulgao at yeah dot net

Description:
------------
sometimes, PHP was core dump, error message is 'Program terminated with
signal 7, Bus error.'.

Test script:
---------------
I don't know code.

Actual result:
--------------
gdb backtrace message:





#0  0x00000000007e9179 in lex_scan (zendlval=0x7fffe9900bd8) at
Zend/zend_language_scanner.l:1635

#1  0x0000000000814517 in zendlex (zendlval=0x7fffe9900bd0) at
/root/php-5.3.3/Zend/zend_compile.c:4946

#2  0x00000000007e2700 in zendparse () at
/root/php-5.3.3/Zend/zend_language_parser.c:3280

#3  0x00000000007e817c in compile_file (file_handle=0x7fffe9901fc0,
type=2) at Zend/zend_language_scanner.l:354

#4  0x00000000004c5bd8 in my_compile_file (h=0x7fffe9901fc0, type=2) at
/root/php-5.3.3/ext/apc/apc_main.c:541

#5  0x00000000007e82f3 in compile_filename (type=2, filename=0x4ce0440)
at Zend/zend_language_scanner.l:397

#6  0x000000000087ee91 in ZEND_INCLUDE_OR_EVAL_SPEC_VAR_HANDLER
(execute_data=0x2ac39df370f0) at
/root/php-5.3.3/Zend/zend_vm_execute.h:8569

#7  0x000000000085a9f3 in execute (op_array=0x3e1cd80) at
/root/php-5.3.3/Zend/zend_vm_execute.h:107

#8  0x000000000082a2d7 in zend_execute_scripts (type=8, retval=0x0,
file_count=3) at /root/php-5.3.3/Zend/zend.c:1194

#9  0x00000000007b44cb in php_execute_script
(primary_file=0x7fffe9906920) at /root/php-5.3.3/main/main.c:2260

#10 0x000000000091deae in main (argc=3, argv=0x7fffe9906b28) at
/root/php-5.3.3/sapi/fpm/fpm/fpm_main.c:1865


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



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

Reply via email to