[Mono-list] Getting pull request 1665 into Mono 4.2 release

Karl Grzeszczak karlgrz at gmail.com
Mon Jul 27 13:59:27 UTC 2015


Hey all,

My apologies if this is the wrong venue or if it's already been discussed,
I'm new to the mailing list.

I was inquiring about getting the following PR into the Mono 4.2 release,
as this is causing me a lot of problems running test suites on Ubuntu
Desktop 15.04:

https://github.com/mono/mono/commit/ffd38a0fa4c1dc09db2ac3277dc642707ba3f474

When I run my tests which contain a Rhino.Mock Stub or Expect for a generic
method that test SIGSEVs right now, with the following stack trace:

karl at deathstar:~/test-project/build$ mono
~/workspace/nunit-2.6.3/bin/nunit-console.exe ./*.Tests.dll
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319
NUnit-Console version 2.6.3.13283
Copyright (C) 2002-2012 Charlie Poole.
Copyright (C) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A.
Vorontsov.
Copyright (C) 2000-2002 Philip Craig.
All Rights Reserved.

Runtime Environment -
   OS Version: Unix 3.19.0.23
  CLR Version: 4.0.30319.17020 ( Mono 4.0 ( 4.0.2 (Stable 4.0.2.5/c99aa0c
Wed Jun 24 10:04:37 UTC 2015) ) )

ProcessModel: Default    DomainUsage: Multiple
Execution Runtime: mono-4.0
...........................N......................................................................................................................................................*
Assertion at sgen-alloc.c:460, condition `*p == NULL' not met

Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native)
System.Reflection.MonoMethod.InternalInvoke
(System.Reflection.MonoMethod,object,object[],System.Exception&)
<0xffffffff>
  at System.Reflection.MonoMethod.Invoke
(object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
<0x000f2>
  at System.Reflection.MethodBase.Invoke (object,object[]) <0x0002a>
  at NUnit.Core.Reflect.InvokeMethod
(System.Reflection.MethodInfo,object,object[]) <0x0005d>
  at NUnit.Core.TestMethod.RunTestMethod () <0x00053>
  at NUnit.Core.TestMethod.RunTestCase (NUnit.Core.TestResult) <0x0002f>
  at NUnit.Core.TestMethod.RunTest () <0x00133>
  at NUnit.Core.NUnitTestMethod.RunTest () <0x0000f>
  at NUnit.Core.TestMethod.RunRepeatedTest () <0x000d5>
  at NUnit.Core.TestMethod.RunTestInContext () <0x006bb>
  at NUnit.Core.TestMethod.Run
(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x000bf>
  at NUnit.Core.TestSuite.RunAllTests
(NUnit.Core.TestResult,NUnit.Core.EventListener,NUnit.Core.ITestFilter)
<0x00345>
  at NUnit.Core.TestSuite.RunSuite
(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x004b3>
  at NUnit.Core.TestSuite.RunSuiteInContext
(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x00083>
  at NUnit.Core.TestSuite.Run
(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x00087>
  at NUnit.Core.TestFixture.Run
(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x00087>
  at NUnit.Core.TestSuite.RunAllTests
(NUnit.Core.TestResult,NUnit.Core.EventListener,NUnit.Core.ITestFilter)
<0x00345>
  at NUnit.Core.TestSuite.RunSuite
(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x004b3>
  at NUnit.Core.TestSuite.RunSuiteInContext
(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x00083>
  at NUnit.Core.TestSuite.Run
(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x00087>
  at NUnit.Core.TestSuite.RunAllTests
(NUnit.Core.TestResult,NUnit.Core.EventListener,NUnit.Core.ITestFilter)
<0x00345>
  at NUnit.Core.TestSuite.RunSuite
(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x004b3>
  at NUnit.Core.TestSuite.RunSuiteInContext
(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x00083>
  at NUnit.Core.TestSuite.Run
(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x00087>
  at NUnit.Core.TestSuite.RunAllTests
(NUnit.Core.TestResult,NUnit.Core.EventListener,NUnit.Core.ITestFilter)
<0x00345>
  at NUnit.Core.TestSuite.RunSuite
(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x004b3>
  at NUnit.Core.TestSuite.RunSuiteInContext
(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x00083>
  at NUnit.Core.TestSuite.Run
(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x00087>
  at NUnit.Core.TestSuite.RunAllTests
(NUnit.Core.TestResult,NUnit.Core.EventListener,NUnit.Core.ITestFilter)
<0x00345>
  at NUnit.Core.TestSuite.RunSuite
(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x004b3>
  at NUnit.Core.TestSuite.RunSuiteInContext
(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x00083>
  at NUnit.Core.TestSuite.Run
(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x00087>
  at NUnit.Core.TestSuite.RunAllTests
(NUnit.Core.TestResult,NUnit.Core.EventListener,NUnit.Core.ITestFilter)
<0x00345>
  at NUnit.Core.TestSuite.RunSuite
(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x004b3>
  at NUnit.Core.TestSuite.RunSuiteInContext
(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x00083>
  at NUnit.Core.TestSuite.Run
(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x00087>
  at NUnit.Core.TestSuite.RunAllTests
(NUnit.Core.TestResult,NUnit.Core.EventListener,NUnit.Core.ITestFilter)
<0x00345>
  at NUnit.Core.TestSuite.RunSuite
(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x004b3>
  at NUnit.Core.TestSuite.RunSuiteInContext
(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x00083>
  at NUnit.Core.TestSuite.Run
(NUnit.Core.EventListener,NUnit.Core.ITestFilter) <0x00087>
  at NUnit.Core.SimpleTestRunner.Run
(NUnit.Core.EventListener,NUnit.Core.ITestFilter,bool,NUnit.Core.LoggingThreshold)
<0x00128>
  at NUnit.Core.TestRunnerThread.TestRunnerThreadProc () <0x00060>
  at System.Threading.Thread.StartInternal () <0x00071>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__
(object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:

mono() [0x4b20bc]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x10d10) [0x7fd9f8202d10]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x37) [0x7fd9f7e5d267]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x16a) [0x7fd9f7e5eeca]
mono() [0x6294f9]
mono() [0x629707]
mono() [0x629856]
mono() [0x5e68cf]
mono() [0x5e6ff0]
mono(mono_object_new_alloc_specific+0x1a) [0x5a9f8a]
mono(mono_object_new_specific+0x88) [0x5aa068]
mono(mono_exception_from_token+0x42) [0x52dde2]
[0x41d7dd90]

Debug info from gdb:

Could not attach to process.  If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user.  For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No threads.

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Aborted

If I run those same tests in a mono 3.10 container, they succeed. Also, if
I build mono from source using the master branch (as of a few hours ago)
they also succeed. I'd be happy to provide more information if necessary,
or if this is not the correct venue I'd be happy to take the conversation
elsewhere.

Thanks!
Karl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20150727/c41274a0/attachment.html>


More information about the Mono-list mailing list