#48508 [NEW]: Segfault with "include 'file.phar.bz2'
From: webmaster at ajeux dot com
Operating system: Linux 2.6.28
PHP version: 5.3CVS-2009-06-09 (snap)
PHP Bug Type: PHAR related
Bug description: Segfault with "include 'file.phar.bz2'
Description:
------------
Trying to include a specific .phar leads to a segfault under Linux.
The .phar is a bz2 archive, and very small (just one file inside).
Source of the file can be found here :
http://uploadfile.org/download.php?id=EqxNUSSdIgcpKKCgrkgG
Bug seems to happen with any .phar.bz2 file.
Reproduce code:
---------------
<?php
include 'cli.phar.bz2';
Expected result:
----------------
working :)
Actual result:
--------------
Segmentation fault
(gdb) run test.php
Starting program: /usr/bin/php53 test.php
[Thread debugging using libthread_db enabled]
[New Thread 0xb7bd88c0 (LWP 14183)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0xb7bd88c0 (LWP 14183)]
lex_scan (zendlval=0xbfadd56c) at Zend/zend_language_scanner.c:919
919 if (yych != '<') goto yy4;
(gdb) bt
#0 lex_scan (zendlval=0xbfadd56c) at Zend/zend_language_scanner.c:919
#1 0x08299954 in zendlex (zendlval=0xbfadd568) at
/usr/src/olivier/php5.3-200906091030/Zend/zend_compile.c:4880
#2 0x08280c79 in zendparse () at
/usr/src/olivier/php5.3-200906091030/Zend/zend_language_parser.c:3280
#3 0x08286139 in compile_file (file_handle=0xbfadd77c, type=2) at
Zend/zend_language_scanner.l:343
#4 0x08181f75 in phar_compile_file (file_handle=0xbfadd77c, type=2) at
/usr/src/olivier/php5.3-200906091030/ext/phar/phar.c:3360
#5 0x08285c41 in compile_filename (type=2, filename=0xb7ba47dc) at
Zend/zend_language_scanner.l:386
#6 0x082f1e94 in ZEND_INCLUDE_OR_EVAL_SPEC_CONST_HANDLER
(execute_data=0xb7453028) at
/usr/src/olivier/php5.3-200906091030/Zend/zend_vm_execute.h:1914
#7 0x082daad2 in execute (op_array=0xb7ba44d0) at
/usr/src/olivier/php5.3-200906091030/Zend/zend_vm_execute.h:104
#8 0x082b4bcd in zend_execute_scripts (type=8, retval=0x0, file_count=3)
at /usr/src/olivier/php5.3-200906091030/Zend/zend.c:1188
#9 0x0825c4c9 in php_execute_script (primary_file=0xbfadfc68) at
/usr/src/olivier/php5.3-200906091030/main/main.c:2196
#10 0x08342101 in main (argc=2, argv=0xbfadfdc4) at
/usr/src/olivier/php5.3-200906091030/sapi/cli/php_cli.c:1188
--
Edit bug report at http://bugs.php.net/?id=48508&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=48508&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=48508&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=48508&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=48508&r=fixedcvs
Fixed in CVS and need be documented: http://bugs.php.net/fix.php?id=48508&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=48508&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=48508&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=48508&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=48508&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=48508&r=support
Expected behavior: http://bugs.php.net/fix.php?id=48508&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=48508&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=48508&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=48508&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=48508&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=48508&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=48508&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=48508&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=48508&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=48508&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=48508&r=mysqlcfg
Thread (7 messages)
- webmaster at ajeux dot com