[Mono-list] Segfault when using threads

Christophe VG mono@baselabs.org
19 Apr 2002 10:33:19 +0200


On Fri, 2002-04-19 at 00:27, Gonzalo Paniagua Javier wrote:

> * [ Richard Torkar <richard.torkar@htu.se>
> > http://bugzilla.ximian.com/show_bug.cgi?id=23637

As this seems to influence the mono.baselabs.org RPMs I looked into the
problem ... This is what I see (but don't understand (if the problem was
indeed fixed yesterday))

> 	I think that Dick solved it yesterday. Does it happen to you in
> 	linux? Solution: get the current mono-build.sh and build mono
> 	with it.

Looking at the libgc library from the RPMs we provide seems to tell me
that it has pthreads enabled.

[root@taurus ntt]# ldd /usr/lib/libgc.so     
	libc.so.6 => /lib/libc.so.6 (0x40038000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x4016e000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
 
> 	The problem was that the libgc must be compiled with
> 	--enable-threads.

Nevertheless, I recompiled the gc6 library with --enable-threads=pthread
and this resulting lib gives me ...

[root@build gc6.0]# ldd .libs/libgc.so
        libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40031000)
        libc.so.6 => /lib/i686/libc.so.6 (0x40046000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x2aaaa000)

Which seems to contain the same references.

So I'm puzzled, because when I try the example Richard provided in the
bugreport ... it (still) fails.

Any ideas (probably on what I'm overlooking ?

thanks,
Christophe

-- 
Supporting the Mono project, and helping you...

  http://mono.baselabs.org              http://mono.baselabs.org/CSAM
             ***                                     ***
"First steps" building guides,        CSAM the C Sharp Archived Modules
daily Mono RPMS, C# tutorial,...