You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rivet-dev@tcl.apache.org by "David N. Welton" <da...@dedasys.com> on 2003/06/24 11:48:06 UTC

Rivet, Tcl, Threads

Ok, we have a winner:

If you are using an apache that is not linked against libpthread[*],
and that loads up Rivet dynamically, and Rivet is linked against a
threaded Tcl...

[*]
@ashland [~] $ ldd /usr/sbin/apache
        libm.so.6 => /lib/libm.so.6 (0x0ff6a000)
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x0ff1e000)
        libdb2.so.2 => /lib/libdb2.so.2 (0x0feb0000)
        libexpat.so.1 => /usr/lib/libexpat.so.1 (0x0fe6b000)
        libdl.so.2 => /lib/libdl.so.2 (0x0fe48000)
        libc.so.6 => /lib/libc.so.6 (0x0fcef000)
        /lib/ld.so.1 => /lib/ld.so.1 (0x30000000)

... you need to make sure that you do LD_PRELOAD=/lib/libpthread.so.0
or the equivalent on your system, so that pthread handles apache's
forks correctly.

Ciao,
-- 
David N. Welton
   Consulting: http://www.dedasys.com/
     Personal: http://www.dedasys.com/davidw/
Free Software: http://www.dedasys.com/freesoftware/
   Apache Tcl: http://tcl.apache.org/

---------------------------------------------------------------------
To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org
For additional commands, e-mail: rivet-dev-help@tcl.apache.org