[Mono-dev] mono crash when multiple threads tries to lock files on Linux

Esben Laursen el at rantek.dk
Sun Sep 18 07:36:07 EDT 2011

Hi All,

I have a problem that then I try and open close the same file multiple threads it eventually crashes with a SIGSEGV.

The problem that I have in my app actually happens on the Dispose method, but I have managed to write a repro  that fails when on the open (I do not know if they are related, but it still crashes so it must also be a bug).

With mono-2.6.7 it does not happen after a while (depending on how many threads that are started), and the stack trace is not very informative, but with mono-2.10.5 it happens almost  immediately and the stacktrace gives a lot more output.

My Question, do you guys think it would be best to create 2 bug reports, one for 2.10.x and one for 2.6.x branch or would it be better to just create one?

If someone is interested I have uploaded the files in question to my dropbox if someone are interested..

I have compiled the source with "mcs -debug+ FileLockRepro_monoDevelop.cs" or debugged it directly from MonoDevelop.


Do you think you guys need more information to debug it? As I don't really have any idea where to start :-)

Ohh yes, do you think the orginal stacktrace could be compared to the repro one?

Many thanks for your help..



More information about the Mono-devel-list mailing list