ext/fileinfo still crashes on AIX =(
Does it work on MacOSX or is this some endianness issue?

-------
Starting program: /fastemp/tony/5_3/sapi/cli/php -r '$f = finfo_open();'

Program received signal SIGSEGV, Segmentation fault.
0x10343244 in bs1 (m=0x103ef708) at 
/fastemp/tony/5_3/ext/fileinfo/libmagic/apprentice.c:2065
2065            m->cont_level = swap2(m->cont_level);
(gdb) bt
#0  0x10343244 in bs1 (m=0x103ef708) at 
/fastemp/tony/5_3/ext/fileinfo/libmagic/apprentice.c:2065
#1  0x10342f84 in byteswap (magic=0x103ef708, nmagic=8476) at 
/fastemp/tony/5_3/ext/fileinfo/libmagic/apprentice.c:1995
#2  0x10342b48 in apprentice_map (ms=0x20065d60, magicp=0x2ff21ff8, 
nmagicp=0x2ff21ffc, fn=0x0)
   at /fastemp/tony/5_3/ext/fileinfo/libmagic/apprentice.c:1897
#3  0x1033d97c in apprentice_1 (ms=0x20065d60, fn=0x0, action=0, 
mlist=0x200651a8) at /fastemp/tony/5_3/ext/fileinfo/libmagic/apprentice.c:239
#4  0x1033dc70 in file_apprentice (ms=0x20065d60, fn=0x0, action=0) at 
/fastemp/tony/5_3/ext/fileinfo/libmagic/apprentice.c:307
#5  0x1033cbb0 in magic_load (ms=0x20065d60, magicfile=0x0) at 
/fastemp/tony/5_3/ext/fileinfo/libmagic/magic.c:180
#6  0x1033b98c in zif_finfo_open (ht=0, return_value=0x200651e8, 
return_value_ptr=0x0, this_ptr=0x0, return_value_used=1)
   at /fastemp/tony/5_3/ext/fileinfo/fileinfo.c:341
#7  0x1009858c in zend_do_fcall_common_helper_SPEC (execute_data=0x20161c28) at 
/fastemp/tony/5_3/Zend/zend_vm_execute.h:315
#8  0x1009d9a8 in ZEND_DO_FCALL_SPEC_CONST_HANDLER (execute_data=0x20161c28) at 
/fastemp/tony/5_3/Zend/zend_vm_execute.h:1574
#9  0x100977cc in execute (op_array=0x2006593c) at 
/fastemp/tony/5_3/Zend/zend_vm_execute.h:65
#10 0x10037844 in zend_eval_string (str=0x2ff22bf2 "$f = finfo_open();", retval_ptr=0x0, 
string_name=0x10368a18 "Command line code")
   at /fastemp/tony/5_3/Zend/zend_execute_API.c:1112
#11 0x10037a80 in zend_eval_string_ex (str=0x2ff22bf2 "$f = finfo_open();", 
retval_ptr=0x0, string_name=0x10368a18 "Command line code",
   handle_exceptions=1) at /fastemp/tony/5_3/Zend/zend_execute_API.c:1147
#12 0x10002c0c in main (argc=3, argv=0x2ff22b40) at 
/fastemp/tony/5_3/sapi/cli/php_cli.c:1169
-------

--
Wbr, Antony Dovgal

--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to