[Mono-bugs] [Bug 642985] New: Deadlock in io-layer when accessing files from multiple threads

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Sep 30 17:17:32 EDT 2010


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

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


           Summary: Deadlock in io-layer when accessing files from
                    multiple threads
    Classification: Mono
           Product: Mono: Runtime
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: io-layer
        AssignedTo: lupus at novell.com
        ReportedBy: rkvinge at novell.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=392434)
 --> (http://bugzilla.novell.com/attachment.cgi?id=392434)
stacktrace.txt

User-Agent:       Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.6.30
Version/10.60

There is a lock ordering causing a deadlock in io-layer.

_wapi_handle_share_release locks the noshm lock #_WAPI_SHARED_SEM_FILESHARE
then #_WAPI_SHARED_SEM_SHARED_HANDLES

_wapi_handle_get_or_set_share locks the nosm lock
#_WAPI_SHARED_SEM_SHARED_HANDLES then #_WAPI_SHARED_SEM_FILESHARE

The commit that caused this is 5c2e3bf7.

See the attached stack trace for more details, the involved threads are #3 and
#4.

Reproducible: Always

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


More information about the mono-bugs mailing list