[Starkit] TclKit segfault when using an extension

Jeff Hobbs jeffh at activestate.com
Tue May 23 13:57:25 CEST 2006


Trevor Davel wrote:
> I am using TclKit 8.4.13 on Linux (Fedora Core 4) in 
> conjunction with an in-house extension (which is stubs 
> enabled).  I have already struggled through problems with the 
> static TclKit, and am now using the dynamic one ... but still 
> having issues with segfaults.  Any advice would be appreciated.
	...
> The possibilities I haven't managed to look into yet are:
>   - Possible pthreads / -D_REENTRANT conflict when both the 
> tcl interpreter and extension use libstdc++.  Is there any 
> way I can compile TclKit with threads enabled?

Yes, but you should be able to grab the dqkit, which has threaded builds
already.  This would be my first guess for a problem area.

>   - TclKit seems to use .a libraries of zlib, tclvfs and mk 
> when it links -- could these have statically linked 
> pthreads/C++ code that is causing a conflict?

mk could, but it's unlikely since the ldd shows a dynamic link to C++, and
it's the only thing that uses C++.

Jeff



More information about the Starkit mailing list