[Mono-bugs] [Bug 718973] New: Mono crashes on file locking with multiple threads accessing the same file

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Sep 19 15:29:54 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=718973

https://bugzilla.novell.com/show_bug.cgi?id=718973#c0


           Summary: Mono crashes on file locking with multiple threads
                    accessing the same file
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.10.x
          Platform: i386
        OS/Version: Linux
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: io-layer
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: el at rantek.dk
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=451774)
 --> (http://bugzilla.novell.com/attachment.cgi?id=451774)
Repro code including my stacktraces.

User-Agent:       Mozilla/5.0 (Windows NT 5.1; rv:7.0) Gecko/20100101
Firefox/7.0

My app started crashing with a SIGABRT while using a 3rd party logging lib
after some hours, we think we have nailed it down to the way that mono locks
(oplock) the file.

I am using mono 2.6.7 on a Debian Squeeze, we have tried to reproduce the exact
error that we got, but I have unfortunately been unable reproduce it exactly.
The error that mono 2.6.7 prints on my repro is not very informative and I
though that I try a newer version, unfortunately its much worse in 2.10.5
(tested with ubuntu 11.10) there my repro code crashes after just a few writes.

Please let me know if there is anything that you need to fix this as it quite a
big deal for me and mono in general..

I hope that severity is correct as mono crashes..

Cheers

Esben

Reproducible: Always

Steps to Reproduce:
I have attached my repro code, its not the exact stacktrace that I get in my
app, but there is some problem anyways.

Just compile and run it. With v2.10.5 it fails after a few writes with 10
threads, with v2.6.7 it can be a while, but forcing the threads to 50 speeds it
up.
Actual Results:  
It crashes, with a SIGABRT..

Expected Results:  
It should continue in a endless loop writing to the same file..

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list