[Mono-bugs] [Bug 648228] New: Bad call to mono_mutex_lock

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Oct 21 01:26:02 EDT 2010


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

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


           Summary: Bad call to mono_mutex_lock
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.8.x
          Platform: 64bit
        OS/Version: SLES 11
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: io-layer
        AssignedTo: lupus at novell.com
        ReportedBy: maciej.paszta at secpl.cs.put.poznan.pl
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.41 Safari/534.7

Occasionally my software crashes with the following exception:


Bad call to mono_mutex_lock result 22
* Assertion at handles.c:1714, condition `ret == 0' not met

Stacktrace:

  at (wrapper managed-to-native) System.IO.MonoIO.Open
(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,System.IO.FileOptions,System.IO.MonoIOError&)
<0x00058>
  at (wrapper managed-to-native) System.IO.MonoIO.Open
(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,System.IO.FileOptions,System.IO.MonoIOError&)
<0x00058>
  at System.IO.FileStream..ctor
(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool,System.IO.FileOptions)
<0x001f3>
  at System.IO.FileStream..ctor
(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int)
<0x0004f>
  at (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor
(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int)
<0x00077>
  at NLog.Internal.FileAppenders.BaseFileAppender.TryCreateFileStream (bool)
<0x0012b>
  at NLog.Internal.FileAppenders.BaseFileAppender.CreateFileStream (bool)
<0x00113>
  at NLog.Internal.FileAppenders.RetryingMultiProcessFileAppender.Write
(byte[]) <0x00027>
  at NLog.Targets.FileTarget.WriteToFile (string,byte[],bool) <0x0082a>
  at NLog.Targets.FileTarget.Write (NLog.LogEventInfo) <0x000ab>
  at NLog.LoggerImpl.Write
(System.Type,NLog.Internal.TargetWithFilterChain,NLog.LogEventInfo,NLog.LogFactory)
<0x0065b>
  at NLog.Logger.WriteToTargets (NLog.LogLevel,string,object[]) <0x00093>
  at NLog.Logger.Fatal (string,object[]) <0x00047>
  at SecPL.Return.Core.Logging.NLogLogger.Fatal (string,object[]) <0x00037>
  at SecPL.Return.Core.Server.LogUnhandledException
(object,System.UnhandledExceptionEventArgs) <0x00066>
  at (wrapper runtime-invoke)
<Module>.runtime_invoke_void__this___object_object
(object,intptr,intptr,intptr) <0x00054>

Native stacktrace:

    /usr/bin/mono [0x4949f8]
    /lib64/libpthread.so.0 [0x7fae6fe30a90]
    /lib64/libc.so.6(gsignal+0x35) [0x7fae6fafb645]
    /lib64/libc.so.6(abort+0x183) [0x7fae6fafcc33]
    /usr/bin/mono [0x5dd4bf]
    /usr/bin/mono [0x5dd557]
    /usr/bin/mono [0x5b95e0]
    /usr/bin/mono [0x5c7a9a]
    /usr/bin/mono [0x5c7d84]
    /usr/bin/mono [0x56bf18]

I haven't experienced this behavior on previous mono versions. This bug happens
quite often. I'm not sure If I'm able to reproduce it on a small scale. I will
give it a try though and post code here. 

Reproducible: Didn't try

-- 
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