Hello Experts,
On a Solaris 5.10 SPARC machine, i am getting a core dump file on executing a PHP file which uses PHPExcel libraries. Following is the snippet of truss for the execution:
open("/usr/local/apache/htdocs/SMART/Classes/PHPExcel/ReferenceHelper.php", O_RDONLY) = 3
fstat(3, 0x100F15590) = 0
fstat(3, 0x100F15590) = 0
fstat(3, 0x100F15590) = 0
mmap(0x00000000, 39952, PROT_READ, MAP_SHARED, 3, 0) = 0xFFFFFFFF7D400000
brk(0x101531280) = 0
brk(0x101571280) = 0
munmap(0xFFFFFFFF7D400000, 39952) = 0
close(3) = 0
access("/usr/local/apache/htdocs/SMART/Classes/PHPExcel/WorksheetIterator.php", F_OK) = 0
access("/usr/local/apache/htdocs/SMART/Classes/PHPExcel/WorksheetIterator.php", R_OK) = 0
time() = 1436799393
lstat("/usr/local/apache/htdocs/SMART/Classes/PHPExcel/WorksheetIterator.php", 0xFFFFFFFF7FFFB180) = 0
open("/usr/local/apache/htdocs/SMART/Classes/PHPExcel/WorksheetIterator.php", O_RDONLY) = 3
fstat(3, 0x100F15590) = 0
fstat(3, 0x100F15590) = 0
fstat(3, 0x100F15590) = 0
mmap(0x00000000, 2624, PROT_READ, MAP_SHARED, 3, 0) = 0xFFFFFFFF7D600000
munmap(0xFFFFFFFF7D600000, 2624) = 0
close(3) = 0
access("/usr/local/apache/htdocs/SMART/Classes/PHPExcel/Cell.php", F_OK) = 0
access("/usr/local/apache/htdocs/SMART/Classes/PHPExcel/Cell.php", R_OK) = 0
time() = 1436799393
lstat("/usr/local/apache/htdocs/SMART/Classes/PHPExcel/Cell.php", 0xFFFFFFFF7FFFB150) = 0
open("/usr/local/apache/htdocs/SMART/Classes/PHPExcel/Cell.php", O_RDONLY) = 3
fstat(3, 0x100F15590) = 0
fstat(3, 0x100F15590) = 0
fstat(3, 0x100F15590) = 0
mmap(0x00000000, 27136, PROT_READ, MAP_SHARED, 3, 0) = 0xFFFFFFFF7D400000
munmap(0xFFFFFFFF7D400000, 27136) = 0
close(3) = 0
access("/usr/local/apache/htdocs/SMART/Classes/PHPExcel/Cell/DataType.php", F_OK) = 0
access("/usr/local/apache/htdocs/SMART/Classes/PHPExcel/Cell/DataType.php", R_OK) = 0
time() = 1436799393
lstat("/usr/local/apache/htdocs/SMART/Classes/PHPExcel/Cell/DataType.php", 0xFFFFFFFF7FFFB150) = 0
lstat("/usr/local/apache/htdocs/SMART/Classes/PHPExcel/Cell", 0xFFFFFFFF7FFFAF50) = 0
open("/usr/local/apache/htdocs/SMART/Classes/PHPExcel/Cell/DataType.php", O_RDONLY) = 3
fstat(3, 0x100F15590) = 0
fstat(3, 0x100F15590) = 0
fstat(3, 0x100F15590) = 0
mmap(0x00000000, 3538, PROT_READ, MAP_SHARED, 3, 0) = 0xFFFFFFFF7D600000
munmap(0xFFFFFFFF7D600000, 3538) = 0
close(3) = 0
Alignwrite(1, " A l i g n", 5) = 5
2write(1, " 2", 1) = 1
Incurred fault #5, FLTACCESS %pc = 0x1000EAA0C
siginfo: SIGBUS BUS_ADRALN addr=0x10123274B
Received signal #10, SIGBUS [default]
siginfo: SIGBUS BUS_ADRALN addr=0x10123274B
The machine information is : SunOS orssdp7a 5.10 Generic_150400-17 sun4u sparc SUNW,Netra-T12
However when i run the same code on another similar machine (with different Hardware though) i am getting successful. The other machine is : SunOS bhasdp6n 5.10 Generic_150400-11 sun4u sparc SUNW,Sun-Fire
Kindly suggest what could be the cause of this?
I have reinstalled all the concerned packages of apache/php which my overall code uses many times and have also compared with that which works fine.
Finally to me it seems the issue is related to machine itself. Following is the pstack output from generated core file as well:
VIBHA SINGAL
core 'core' of 29992: php test_excel.php
00000001000eaa0c compare_opcodes (101232770, 0, ffffffff7fffdcd0, ffffffff7fffc9f0, 101232770, 101232785) + 85c
00000001000ec340 auto_possessify (1012326e0, 0, ffffffff7fffdcd0, ffffffff7fffddc4, 0, 0) + 3b0
00000001000fa3ec php_pcre_compile2 (101581a38, 1, 0, ffffffff7fffe030, ffffffff7fffe02c, 101232250) + 1944
00000001000f8a90 php_pcre_compile (101581a38, 1, ffffffff7fffe030, ffffffff7fffe02c, 101232250, 101010101010101) + 3c
000000010012ddd4 pcre_get_compiled_regex_cache (101581aa0, 54, ffffffff7fffe168, ffffffff7fffe15c, ffffffff7fffe160, ffffffff7fffe158) + 86c
000000010012e6f4 php_do_pcre_match (3, 10157c1e0, 0, 0, 1, 0) + dc
000000010012f838 zif_preg_match (3, 10157c1e0, 0, 0, 1, 100ee1d00) + 48
000000010072298c zend_do_fcall_common_helper_SPEC (100ee1ee0, 100f20070, b, c0c1e31caa7e607f, 100ee1ee8, b) + 578
000000010072b220 ZEND_DO_FCALL_SPEC_CONST_HANDLER (100ee1ee0, 8, ffffffffffffffff, fffffffffffffff8, 0, 100ee1f00) + 1b0
0000000100720ce8 execute_ex (100edf2b0, 8, ffffffffffffffff, 1, 0, 100edf210) + a20
00000001007217a0 zend_execute (100f12700, 100f126c0, 2e, ffffffff7fffe89c, 4, 0) + a00
00000001006d2818 zend_execute_scripts (8, 0, 3, 0, ffffffff7ffff620, 0) + 230
000000010060c544 php_execute_script (ffffffff7ffff620, 74, 2d, 746573745f657863, 38, 101010101010101) + 3bc
000000010084bba8 do_cli (2, 100ed56d0, 2, 82, ffffffff7d800200, 0) + e50
000000010084d378 main (2, ffffffff7ffff948, ffffffff7ffff960, 100ed2808, 100000000, ffffffff7d800200) + 7c0
00000001000608c4 _start (0, 0, 0, 0, 0, 0) + 7c
9:01 PM
core 'core' of 29992: php test_excel.php
00000001000...
Need your help urgently, kindly suggest.
BR
vG