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

> hello list,
> I'm trying to use a custom php module called php-gtk. (
> 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/
> (gdb) where
> #0  0xbb8467c7 in kill () from /usr/lib/
> #1  0xbb8496f3 in __libc_mutex_unlock () from /usr/lib/
> #2  0xbb89ddbb in malloc () from /usr/lib/


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/ in the environment before running

Kind regards,