From: howard dot allison at chello dot at Operating system: AIX 6.1 PHP version: 5.4.16 Package: Compile Failure Bug Type: Bug Bug description:Building with IBM xlc phar enabled or make test results in segmentation fault
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 bug report at https://bugs.php.net/bug.php?id=65118&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65118&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65118&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65118&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=65118&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=65118&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=65118&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=65118&r=needscript Try newer version: https://bugs.php.net/fix.php?id=65118&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=65118&r=support Expected behavior: https://bugs.php.net/fix.php?id=65118&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=65118&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=65118&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=65118&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65118&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=65118&r=dst IIS Stability: https://bugs.php.net/fix.php?id=65118&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=65118&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=65118&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=65118&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=65118&r=mysqlcfg