Re: POSIX Threads
| From: | Sascha Schumann | Date: | Mon, 17 Apr 2000 15:09:20 +0000 |
| Subject: | Re: POSIX Threads | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-17970@lists.php.net to get a copy of this message | ||
On Mon, Apr 17, 2000 at 03:28:32PM +0200, adam@indexdata.dk wrote:
> I'm developing a Z39.50 client (origin) interface for PHP using
> sources PHP4.0-RC1 and apache 1.3.11 on Linux. I'm depending on a
> library that uses POSIX threads. The loading of the shared php4
> object fails with no obvious reason and apache dies. gdb and
> httpd -X trace doesn't help much:
>
> Starting program: /home/adam/proj/apache/bin/./httpd -X
> Cannot access memory at address 0x40335874.
> (gdb) bt
> #0 0x4000a6d1 in _dl_debug_state () at dl-debug.c:56
> #1 0x401424e6 in _dl_close (map=0x80d2d00) at dl-close.c:195
> #2 0x400630c0 in dlclose_doit (handle=0x80d2d00) at dlclose.c:26
> #3 0x4000a3eb in _dl_catch_error (errstring=0x40064d00,
> operate=0x400630a8 <dlclose_doit>, args=0x80d2d00) at dl-error.c:141
> #4 0x40063549 in _dlerror_run (operate=0x400630a8 <dlclose_doit>,
> args=0x80d2d00) at dlerror.c:125
> #5 0x4006308e in dlclose (handle=0x80d2d00) at dlclose.c:32
> #6 0x8086ec0 in ap_os_dso_unload (handle=0x80d2d00) at os.c:133
> #7 0x80663b0 in unload_module (modi=0x80cae5c) at mod_so.c:181
> #8 0x80688ee in run_cleanups (c=0x80cc174) at alloc.c:1706
> #9 0x806711d in ap_clear_pool (a=0x80caa8c) at alloc.c:531
> #10 0x80770b3 in standalone_main (argc=2, argv=0xbffffc84) at http_main.c:4611
> #11 0x8077953 in main (argc=2, argv=0xbffffc84) at http_main.c:4973
>
> The behaviour is similar to the bug described in bug report
> 4147 which reports that threading is a (known) problem. Is there
> any way I can make threading work?
Try compiling PHP and Apache using CPPFLAGS=-D_REENTRANT
If that does not work, report is a bug to the C library guys
and/or try their mailing lists.
http://www-gnats.gnu.org:8080/cgi-bin/wwwgnats.pl
http://sourceware.cygnus.com/glibc/
- Sascha