[Mono-devel-list] Threading, NPTL, libgc (beta2)

Paolo Molaro lupus at ximian.com
Sun Jun 6 05:37:51 EDT 2004


On 06/04/04 Peter Johanson wrote:
> After upgrading to beta2, I've started running into some very erratic
> behavior from blam and muine. In particular with blam, I was getting
> frequent hangs. After struggling with trying to pinpoint things a bit, i
> tried exporting GC_DONT_GC, and lo and behold, blam worked *perfectly*.
> Muine is randomly segfaulting on me, and unfortunately disabling GC
> didn't fix that. BUT, i noticed that with a non-NPTL glibc, blam was
> having fewer/no issues.

Can you try the recently released Muine version? The one you used was
probably not dealing with the fact now mono frees strings from pinvoked
functions. Exporting MALLOC_CHECK_=2 would trigger that instantly.
The Blam hang seems completely unrelated. Yesterday I fixed a bug in
libgc which could cause hangs with some allocations, so you may want to
try mono from cvs and report details (the hang was really an infinite
loop, so you should have your cpu usage at 100% if it was this issue)).
When you get hangs, the best thing to do is to run gdb.
Run:
	ps aux | grep mono
to find the pid of the hanging process.
Then run:
	gdb /path/to/mono pid
And inside gdb:
	thread all apply bt
and post all the output you get in a bugzilla bug report.

lupus

-- 
-----------------------------------------------------------------
lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better



More information about the Mono-devel-list mailing list