[Mono-list] Thread 802600 has exited with leftover thread-specific data after 4 destructor iterations exception

Robert Jordan robertj at gmx.net
Mon May 18 15:07:00 EDT 2009


Hi Andrus,

Andrus Moor wrote:
>  If I call this web service repeatedly, sometimes it succeeds. So it
>  certainly can compile scripts sometimes.

Oops, I've understood this sentence

> Every second csscript Compile() method call causes exception

as "every second" (like minutes) ;)

It seems to be an io-layer issue. Try to run this test a few
times in a row to see if you can reproduce the error:

---
using System;
using System.Diagnostics;
using System.Threading;

class Test
{
	static void Main ()
	{
		while (true) {
			// adjust gmcs's path according to your system
			Process.Start ("gmcs").WaitForExit ();
			Thread.Sleep (100);
		}
	}
}
---

>>> How to enable line numbers in stack trace ?
>> Add  `MonoDebug true' to your mod_mono config.
> 
>  This line is present in mod_mono.config.

Do you have this in web.config (for the case the offending
code is in some aspx/App_Code file)?

<system.web>
	<compilation debug="true">
	</compilation>
</system.web>

Another reason for missing line numbers is a missing
.mdb file for the offending assembly. If it was compiled with
MS CSC it likely doesn't have one.

Robert



More information about the Mono-list mailing list