Subject: Re: abort trap with custom php module
To: Zafer Aydogan <zafer@aydogan.de>
From: Tobias Nygren <tnn@NetBSD.org>
List: tech-pkg
Date: 10/06/2007 20:38:55
On Sat, 6 Oct 2007 18:20:52 +0200
"Zafer Aydogan" <zafer@aydogan.de> wrote:

> 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.
> 
> 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

Hi,

This looks like a typical pthread linkage problem. I guess you need
to compile your php binary with -pthread in CFLAGS/LDFLAGS in order
to use modules that use pthread. Another possible workaround is to set
LD_PRELOAD=/usr/lib/libpthread.so in the environment before running
php.

Kind regards,
-Tobias