[BSD] php+imagick
Székvölgyi Péter
szekvolgyi.peter at kataqua.hu
2010. Sze. 19., V, 23:42:10 CEST
On 09/19/2010 09:51 PM, Gabor HALASZ wrote:
> Ha minden mondatodba irnal targyat is, akkor sokkal pontosabban
> ertenem, mit mondasz :) Ha jol ertem, a php-cli a pecl-imagick nelkul
> nem segfaultol, ezert megprobalnam portmaster -t-vel ujrarakni a
> pecl-imagick-et, hogy ujraforditson mindent, amire dependel.
> Esetleg gdb-vel ranezni a coredumpra, hol allt meg.
Újratelepíteni mindenestül már próbáltam, sajnos nem segített.
Most csináltam az egésznek egy teljesen tiszta jail-t, ezzel sem lett jobb.
Apache modulként rendben fut a php. Konzolból cgi-vel vagy cli-vel
megpróbálok egy scriptet futtatni imagick-al elhasal miután kiadta a
helyes eredményt. Ha nincs betöltve az imagick gond nélkül lefut.
Pepe
GDB-vel PHP 5.3:
moon# echo "<?php echo 'asd'; ?>" | php
asdSegmentation fault (core dumped)
moon# gdb php php.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols
found)...
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.4...(no debugging symbols
found)...done.
Loaded symbols for /lib/libcrypt.so.4
Reading symbols from /lib/libz.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.4
Reading symbols from /usr/local/lib/libpcre.so.0...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libpcre.so.0
Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/local/lib/libxml2.so.5...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libxml2.so.5
Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols
found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x292ff739 in ?? ()
(gdb) bt
#0 0x292ff739 in ?? ()
#1 0x28641ac6 in pthread_mutex_destroy () from /lib/libc.so.7
#2 0x283ec94f in xmlFreeMutex () from /usr/local/lib/libxml2.so.5
#3 0x283ec28c in xmlCleanupGlobals () from /usr/local/lib/libxml2.so.5
#4 0x2838227f in xmlCleanupParser () from /usr/local/lib/libxml2.so.5
#5 0x080925a5 in php_libxml_shutdown ()
#6 0x080925c8 in zm_shutdown_libxml ()
#7 0x08192a56 in module_destructor ()
#8 0x0819956a in zend_hash_apply_deleter ()
#9 0x08199789 in zend_hash_graceful_reverse_destroy ()
#10 0x0818e748 in zend_shutdown ()
#11 0x0813f4d6 in php_module_shutdown ()
#12 0x0820ad30 in main ()
#13 0x28706080 in ?? ()
#14 0x00000007 in ?? ()
#15 0x082aba00 in HARDCODED_INI ()
#16 0x082c2820 in zend_user_opcode_handlers ()
#17 0x082af380 in zend_user_opcodes ()
#18 0x00000000 in ?? ()
#19 0x00000002 in ?? ()
#20 0x282b2711 in dlopen () from /libexec/ld-elf.so.1
#21 0x0805ac73 in _start ()
#22 0x00000001 in ?? ()
GDB-vel PHP 5.2-vel:
moon-jail1# echo "<?php echo 'asd'; ?>" | php
asdSegmentation fault (core dumped)
moon-jail1# gdb php php.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-marcel-freebsd"...(no debugging symbols
found)...
Core was generated by `php'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.4...(no debugging symbols
found)...done.
Loaded symbols for /lib/libcrypt.so.4
Reading symbols from /usr/lib/librt.so.1...(no debugging symbols
found)...done.
Loaded symbols for /usr/lib/librt.so.1
Reading symbols from /lib/libm.so.5...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/local/lib/libxml2.so.5...(no debugging symbols
found)...done.
Loaded symbols for /usr/local/lib/libxml2.so.5
Reading symbols from /lib/libz.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.4
Reading symbols from /usr/local/lib/libiconv.so.3...(no debugging
symbols found)...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /lib/libc.so.7...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols
found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x292e9739 in ?? ()
(gdb) bt
#0 0x292e9739 in ?? ()
#1 0x285baac6 in pthread_mutex_destroy () from /lib/libc.so.7
#2 0x2834f028 in xmlFreeMutex () from /usr/local/lib/libxml2.so.5
#3 0x2834e8a4 in xmlCleanupGlobals () from /usr/local/lib/libxml2.so.5
#4 0x282e0a0a in xmlCleanupParser () from /usr/local/lib/libxml2.so.5
#5 0x080865eb in php_libxml_shutdown ()
#6 0x0808661b in zm_shutdown_libxml ()
#7 0x0814e41e in module_destructor ()
#8 0x08154a24 in zend_hash_apply_deleter ()
#9 0x08154c68 in zend_hash_graceful_reverse_destroy ()
#10 0x0814ac9e in zend_shutdown ()
#11 0x08108d9f in php_module_shutdown ()
#12 0x081c7260 in main ()
További információk a(z) BSD levelezőlistáról