[Mono-dev] SIGSEGV fault - System.MulticastDelegate

Cory Foy usergroup at cornetdesign.com
Sat May 27 23:17:47 EDT 2006


We're seeing a strange behavior when running some of our tests where we 
are getting a SIGSEGV fault. We only get it when we are running all of 
the tests in the same AppDomain. Changing the tests so that a new 
AppDomain is loaded everytime, or running the suite in it's own 
AppDomain doesn't cause the problem. The Stacktrace is below.

The code being executed is a Mock test which is passing a by ref 
parameter to a Mock object through a proxy generated from a class 
implementing RealProxy.

I hate sending this out, because I want to provide more information 
(like a test that easily reproduces this), but I'm not sure where to 
start. I'll be more than happy to try whatever is needed, and can file a 
bug report if this seems to be a new issue for you all.

What do you think?

Cory


      [exec] Stacktrace:
      [exec]
      [exec] in (wrapper managed-to-native) 
System.Object:__icall_wrapper_mono_remoting_wrapper (intptr,intptr) <0x4>
      [exec] in (wrapper managed-to-native) 
System.Object:__icall_wrapper_mono_remoting_wrapper (intptr,intptr) 
<0xff7773d9>
      [exec] in (wrapper remoting-invoke) IStuff:Increment (int&) <0xca7>
      [exec] in NUnit.Mocks.Tests.DynamicMockTests:RefParameter () <0x3f>
      [exec] in (wrapper runtime-invoke) 
System.Object:runtime_invoke_void (object,intptr,intptr,intptr) <0x5171071f>
      [exec] in (wrapper managed-to-native) 
System.Reflection.MonoMethod:InternalInvoke (object,object[]) <0x4>
      [exec] in (wrapper managed-to-native) 
System.Reflection.MonoMethod:InternalInvoke (object,object[]) <0xffe4f75d>
      [exec] in System.Reflection.MonoMethod:Invoke 
(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo) 
<0x8d>
      [exec] in System.Reflection.MethodBase:Invoke (object,object[]) <0x1a>
      [exec] in NUnit.Core.Reflect:InvokeMethod 
(System.Reflection.MethodInfo,object) <0x2d>
      [exec] in NUnit.Core.TestMethod:RunTestMethod 
(NUnit.Core.TestCaseResult) <0x21>
      [exec] in NUnit.Core.TestMethod:doTestCase 
(NUnit.Core.TestCaseResult) <0x1b>
      [exec] in NUnit.Core.TestMethod:doRun (NUnit.Core.TestCaseResult) 
<0x6e>
      [exec] in NUnit.Core.TestMethod:Run (NUnit.Core.TestCaseResult) <0xf6>
      [exec] in NUnit.Core.NUnitTestMethod:Run 
(NUnit.Core.TestCaseResult) <0x11>     [exec] in NUnit.Core.TestCase:Run 
(NUnit.Core.EventListener) <0x12e>
      [exec] in NUnit.Core.TestCase:Run 
(NUnit.Core.EventListener,NUnit.Core.TestFilter) <0x11>
      [exec] in NUnit.Core.TestSuite:RunAllTests 
(NUnit.Core.TestSuiteResult,NUnit.Core.EventListener,NUnit.Core.TestFilter) 
<0x17f>
      [exec] in NUnit.Core.TestSuite:Run 
(NUnit.Core.EventListener,NUnit.Core.TestFilter) <0x166>
      [exec] in NUnit.Core.TestFixture:Run 
(NUnit.Core.EventListener,NUnit.Core.TestFilter) <0x95>
      [exec] in NUnit.Core.TestSuite:RunAllTests 
(NUnit.Core.TestSuiteResult,NUnit.Core.EventListener,NUnit.Core.TestFilter) 
<0x17f>
      [exec] in NUnit.Core.TestSuite:Run 
(NUnit.Core.EventListener,NUnit.Core.TestFilter) <0x166>
      [exec] in NUnit.Core.TestSuite:RunAllTests 
(NUnit.Core.TestSuiteResult,NUnit.Core.EventListener,NUnit.Core.TestFilter) 
<0x17f>
      [exec] in NUnit.Core.TestSuite:Run 
(NUnit.Core.EventListener,NUnit.Core.TestFilter) <0x166>
      [exec] in NUnit.Core.TestSuite:RunAllTests 
(NUnit.Core.TestSuiteResult,NUnit.Core.EventListener,NUnit.Core.TestFilter) 
<0x17f>
      [exec] in NUnit.Core.TestSuite:Run 
(NUnit.Core.EventListener,NUnit.Core.TestFilter) <0x166>
      [exec] in NUnit.Core.TestSuite:RunAllTests 
(NUnit.Core.TestSuiteResult,NUnit.Core.EventListener,NUnit.Core.TestFilter) 
<0x17f>
      [exec] in NUnit.Core.TestSuite:Run 
(NUnit.Core.EventListener,NUnit.Core.TestFilter) <0x166>
      [exec] in NUnit.Core.TestSuite:RunAllTests 
(NUnit.Core.TestSuiteResult,NUnit.Core.EventListener,NUnit.Core.TestFilter) 
<0x17f>
      [exec] in NUnit.Core.TestSuite:Run 
(NUnit.Core.EventListener,NUnit.Core.TestFilter) <0x166>
      [exec] in NUnit.Core.SimpleTestRunner:Run 
(NUnit.Core.EventListener,NUnit.Core.TestFilter) <0x96>
      [exec] in NUnit.Core.TestRunnerThread:TestRunnerThreadProc () <0x36>
      [exec] in (wrapper delegate-invoke) 
System.MulticastDelegate:invoke_void () <0x60138>
      [exec] in (wrapper runtime-invoke) 
System.Object:runtime_invoke_void (object,intptr,intptr,intptr) <0x50e530bf>
      [exec]
      [exec] Native stacktrace:
      [exec]
      [exec] 
/home/foyc/mono-1.1.15/bin/mono(mono_handle_native_sigsegv+0xbb) [0x8153d0b]
      [exec]  /home/foyc/mono-1.1.15/bin/mono [0x813e66f]
      [exec]  /lib/libpthread.so.0 [0xb7eea089]
      [exec]  [0xffffe440]
      [exec]  /home/foyc/mono-1.1.15/bin/mono [0x80ac506]
      [exec]  [0xb72b70bf]
      [exec]  [0xb6a2e472]
      [exec]  [0xb6a2f0e0]
      [exec]  [0xb6a2de29]
      [exec]  /home/foyc/mono-1.1.15/bin/mono [0x813e520]
      [exec]  /home/foyc/mono-1.1.15/bin/mono(mono_runtime_invoke+0x27) 
[0x80d7b67]
      [exec] 
/home/foyc/mono-1.1.15/bin/mono(mono_runtime_invoke_array+0x270) [0x80d9050]
      [exec]  /home/foyc/mono-1.1.15/bin/mono [0x80c7490]
      [exec]  [0xb72fb02a]
      [exec]  [0xb714a75e]
      [exec]  [0xb72a1123]
      [exec]  [0xb70e0a4e]
      [exec]  [0xb70e0a12]
      [exec]  [0xb70e092c]
      [exec]  [0xb70e07cf]
      [exec]  [0xb70e04af]
      [exec]  [0xb70e0382]
      [exec]  [0xb70e00a7]
      [exec]  [0xb70dff62]
      [exec]  [0xb70dacf8]
      [exec]  [0xb70da12f]
      [exec]  [0xb70db21e]
      [exec]  [0xb70dacf8]
      [exec]  [0xb70da12f]
      [exec]  [0xb70dacf8]
      [exec]  [0xb70da12f]
      [exec]  [0xb70dacf8]
      [exec]  [0xb70da12f]
      [exec]  [0xb70dacf8]
      [exec]  [0xb70da12f]
      [exec]  [0xb70dacf8]
      [exec]  [0xb70da12f]
      [exec]  [0xb70d983f]
      [exec]  [0xb70d977f]
      [exec]  [0xb728b380]
      [exec]  [0xb72eb489]
      [exec]  /home/foyc/mono-1.1.15/bin/mono [0x813e520]
      [exec]  /home/foyc/mono-1.1.15/bin/mono(mono_runtime_invoke+0x27) 
[0x80d7b67]
      [exec] 
/home/foyc/mono-1.1.15/bin/mono(mono_runtime_delegate_invoke+0x3b) 
[0x80d85bb]
      [exec]  /home/foyc/mono-1.1.15/bin/mono [0x809a96b]
      [exec]  /home/foyc/mono-1.1.15/bin/mono [0x80f6ef7]
      [exec]  /home/foyc/mono-1.1.15/bin/mono [0x8115ba5]
      [exec]  /lib/libpthread.so.0 [0xb7ee418e]
      [exec]  /lib/libc.so.6(__clone+0x5a) [0xb7e449ca]


-- 
Cory Foy
http://www.cornetdesign.com



More information about the Mono-devel-list mailing list