Subject: abort trap with custom php module
To: None <tech-pkg@netbsd.org>
From: Zafer Aydogan <zafer@aydogan.de>
List: tech-pkg
Date: 10/06/2007 18:20:52
hello list,

I'm trying to use a custom php module called php-gtk. (http://gtk.php.net)

I can compile and install it. But whenever I run php with the gtk
module enabled php dumps core.

# php -m
Abort trap (core dumped)

# gdb php php.core
...
Core was generated by `php'.
Program terminated with signal 6, Aborted.
#0  0xbb8467c7 in kill () from /usr/lib/libc.so.12
(gdb) where
#0  0xbb8467c7 in kill () from /usr/lib/libc.so.12
#1  0xbb8496f3 in __libc_mutex_unlock () from /usr/lib/libc.so.12
#2  0xbb89ddbb in malloc () from /usr/lib/libc.so.12
#3  0x08197b58 in _zend_hash_add_or_update ()
#4  0x08193d61 in zend_register_module_ex ()
#5  0x08102c77 in php_dl ()
#6  0x0815c11a in php_ini_register_extensions ()
#7  0x08185969 in zend_llist_apply ()
#8  0x0815c0e6 in php_ini_register_extensions ()
#9  0x0815755c in php_module_startup ()
#10 0x081f86ce in zend_get_zval_ptr ()
#11 0x081f8cce in main ()
(gdb)

libc has no debugging symbols.

I'm running current (4.99.31). Kernel is from yesterday and userland
from last week.

What can I do to get this module working ?

Cheers, Zafer.

:wq!