[Mono-bugs] [Bug 705383] New: sigsegv running on mono exe, works fine on MS .NET
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Jul 13 06:54:15 EDT 2011
https://bugzilla.novell.com/show_bug.cgi?id=705383
https://bugzilla.novell.com/show_bug.cgi?id=705383#c0
Summary: sigsegv running on mono exe, works fine on MS .NET
Classification: Mono
Product: Mono: Runtime
Version: 2.10.x
Platform: Other
OS/Version: All
Status: NEW
Severity: Critical
Priority: P5 - None
Component: generics
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: ck at carlo-kok.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
Created an attachment (id=439621)
--> (http://bugzilla.novell.com/attachment.cgi?id=439621)
the testcase
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML,
like Gecko) Chrome/13.0.782.55 Safari/535.1
OS: All but windows. Testcase works on .NET.
In the attached testcase, running it ends up as a sigsegv in generic sharing.
Any ideas appreciated, workarounds preferred to fixes.
Mono JIT compiler version 2.10.2 (tarball Sat Apr 30 10:15:52 UTC 2011)
Reproducible: Always
Steps to Reproduce:
1. Open zip attached
2. run bin/Debug/RebirthDALicensing.exe
Actual Results:
[ck at buurtnet 1]$ mono --verify-all --debug bin/Debug/RebirthDALicensing.exe
Stacktrace:
Native stacktrace:
mono() [0x49134a]
mono() [0x4e0c3f]
mono() [0x41b187]
/lib64/libpthread.so.0() [0x3efa40eeb0]
[0x40591991]
Debug info from gdb:
Mono support loaded.
[Thread debugging using libthread_db enabled]
[New Thread 0x7fe89b2e0700 (LWP 4105)]
[New Thread 0x7fe89c19c700 (LWP 4104)]
0x0000003efa40dfdd in read () from /lib64/libpthread.so.0
Id Target Id Frame
3 Thread 0x7fe89c19c700 (LWP 4104) "mono" 0x0000003efa40b475 in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
2 Thread 0x7fe89b2e0700 (LWP 4105) "mono" 0x0000003efa40d520 in sem_wait
() from /lib64/libpthread.so.0
* 1 Thread 0x7fe8a25c0760 (LWP 4103) "mono" 0x0000003efa40dfdd in read ()
from /lib64/libpthread.so.0
Thread 3 (Thread 0x7fe89c19c700 (LWP 4104)):
#0 0x0000003efa40b475 in pthread_cond_wait@@GLIBC_2.3.2 () from
/lib64/libpthread.so.0
#1 0x00000000005dcf33 in ?? ()
#2 0x00000000005d715c in ?? ()
#3 0x00000000005db637 in ?? ()
#4 0x0000003efa407af1 in start_thread () from /lib64/libpthread.so.0
#5 0x0000003efa0dfddd in clone () from /lib64/libc.so.6
Thread 2 (Thread 0x7fe89b2e0700 (LWP 4105)):
#0 0x0000003efa40d520 in sem_wait () from /lib64/libpthread.so.0
#1 0x00000000005c1dd8 in mono_sem_wait ()
#2 0x000000000050fddb in ?? ()
#3 0x00000000005924e7 in ?? ()
#4 0x00000000005bc7d2 in ?? ()
#5 0x00000000005dc5ee in ?? ()
#6 0x0000003efa407af1 in start_thread () from /lib64/libpthread.so.0
#7 0x0000003efa0dfddd in clone () from /lib64/libc.so.6
Thread 1 (Thread 0x7fe8a25c0760 (LWP 4103)):
#0 0x0000003efa40dfdd in read () from /lib64/libpthread.so.0
#1 0x00000000004914e6 in ?? ()
#2 0x00000000004e0c3f in ?? ()
#3 0x000000000041b187 in ?? ()
#4 <signal handler called>
#5 0x0000000040591991 in ?? ()
#6 0x0000000040934700 in ?? ()
#7 0x0000000000000000 in ?? ()
=================================================================
Got a SIGSEGV 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 (core dumped)
Or with gshared disbled:
[ck at buurtnet 1]$ mono --verify-all --debug --optimize=-gshared
bin/Debug/RebirthDALicensing.exe
Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
at
System.Collections.Generic.Dictionary`2[System.String,RemObjects.DataAbstract.ROLicense].ContainsKey
(System.String key) [0x00016] in
/builddir/build/BUILD/mono-2.10.2/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:466
at RemObjects.DataAbstract.ROLicenseProvider.GetLicense
(System.ComponentModel.LicenseContext context, System.Type aType, System.Object
anInstance, Boolean aAllowExceptions) [0x00000] in <filename unknown>:0
at System.ComponentModel.LicenseManager.privateGetLicense (System.Type type,
System.Object instance, Boolean allowExceptions, System.ComponentModel.License&
license) [0x00048] in
/builddir/build/BUILD/mono-2.10.2/mcs/class/System/System.ComponentModel/LicenseManager.cs:191
at System.ComponentModel.LicenseManager.Validate (System.Type type,
System.Object instance) [0x00002] in
/builddir/build/BUILD/mono-2.10.2/mcs/class/System/System.ComponentModel/LicenseManager.cs:169
at RemObjects.DataAbstract.BaseDataAdapter..ctor (IContainer aContainer)
[0x00000] in <filename unknown>:0
at RemObjects.DataAbstract.DataAdapter..ctor (IContainer aContainer)
[0x00000] in <filename unknown>:0
at RemObjects.DataAbstract.RemoteDataAdapter..ctor (IContainer aContainer)
[0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check)
RemObjects.DataAbstract.RemoteDataAdapter:.ctor
(System.ComponentModel.IContainer)
at RebirthDALicensing.Component1.InitializeComponent () [0x00000] in
<filename unknown>:0
at (wrapper remoting-invoke-with-check)
RebirthDALicensing.Component1:InitializeComponent ()
at RebirthDALicensing.Component1..ctor () [0x00000] in <filename unknown>:0
at (wrapper remoting-invoke-with-check) RebirthDALicensing.Component1:.ctor
()
at RebirthDALicensing.Program.Main (System.String[] args) [0x00000] in
<filename unknown>:0
Expected Results:
Success.
--
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