Edit report at https://bugs.php.net/bug.php?id=65118&edit=1
ID: 65118
Comment by: howard dot allison at pva dot sozvers dot at
Reported by: howard dot allison at chello dot at
Summary: Building with IBM xlc phar enabled or make test
results in segmentation fault
Status: Open
Type: Bug
Package: Compile Failure
Operating System: AIX 6.1
PHP Version: 5.4.16
Block user comment: N
Private report: N
New Comment:
try changing your optimizer flag from -O to -O1
Previous Comments:
------------------------------------------------------------------------
[2013-06-25 06:45:41] howard dot allison at chello dot at
Description:
------------
Using IBM xlc with the following environment:
LDFLAGS=-L/opt/pware/lib -Wl,-blibpath:/opt/pware/lib:/usr/lib
-Wl,-bmaxdata:0x80000000
CFLAGS=-qmaxmem=-1 -DSYSV -D_AIX -D_AIX32 -D_AIX41 -D_AIX43 -D_AIX51 -D_AIX52
-D_AIX53 -D_AIX61 -D_ALL_SOURCE -DFUNCPROTO=15 -O -I/opt/pware/include
on AIX 6.1 cannot build PHP with phar , and even if built without phar
generates a core dump on make test.
Test script:
---------------
./configure --with-iconv=/opt/pware --with-libxml-dir=/opt/pware --enable-debug
make
Expected result:
----------------
successful make
Actual result:
--------------
Segmentation fault in zend_mm_panic at line 92 in file
"/app/RpmBuild/Work/php-5.4.16/Zend/zend_alloc.c" ($t1)
92 kill(getpid(), SIGSEGV);
(dbx) where
zend_mm_panic(message = "\200A"), line 92 in "zend_alloc.c"
_zend_mm_alloc_int(heap = (nil), size = 297, __zend_filename = (nil),
__zend_lineno = 273675100, __zend_orig_filename = warning: Unable to access
address 0x178 from core
(invalid char ptr (0x00000178)), __zend_orig_lineno = 0), line 2014 in
"zend_alloc.c"
_emalloc(size = 273743976, __zend_filename = warning: Unable to access address
0x185 from core
(invalid char ptr (0x00000185)), __zend_lineno = 1, __zend_orig_filename = "",
__zend_orig_lineno = 273743976), line 2425 in "zend_alloc.c"
_zend_hash_index_update_or_next_insert(ht = (nil), h = 805991784, pData =
0x2ff20660, nDataSize = 273727512, pDest = 0x100231b4, flag = 805816404,
__zend_filename = "/\362^G^P0^G\244\324^P^Q^H ", __zend_lineno = 805807316),
line 412 in "zend_hash.c"
ZEND_ADD_ARRAY_ELEMENT_SPEC_CONST_UNUSED_HANDLER(execute_data = 0x0000017c),
line 5633 in "zend_vm_execute.h"
ZEND_INIT_ARRAY_SPEC_CONST_UNUSED_HANDLER(execute_data = (nil)), line 5653 in
"zend_vm_execute.h"
unnamed block in zend_execute.execute(op_array = 0x2ff21e60), line 409 in
"zend_vm_execute.h"
zend_execute.execute(op_array = 0x2ff21e60), line 409 in "zend_vm_execute.h"
zend_execute_scripts(type = 8, retval = (nil), file_count = 3, ... = 0x0,
0x2ff21e60, 0x0, 0x75696c64, 0x5f707265), line 1315 in "zend.c"
unnamed block in php_execute_script(primary_file = 0x2ff21e60), line 2494 in
"main.c"
unnamed block in php_execute_script(primary_file = 0x2ff21e60), line 2494 in
"main.c"
php_execute_script(primary_file = 0x2ff21e60), line 2494 in "main.c"
unnamed block in do_cli(argc = 13, argv = 0x2ff22690), line 988 in "php_cli.c"
do_cli(argc = 13, argv = 0x2ff22690), line 988 in "php_cli.c"
unnamed block in php_cli.main(argc = 13, argv = 0x2ff22690), line 1364 in
"php_cli.c"
php_cli.main(argc = 13, argv = 0x2ff22690), line 1364 in "php_cli.c"
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65118&edit=1