[Mono-bugs] [Bug 81498][Nor] New - SIGABRT in GetCustomAttributes when assembly of attribute type cannot be loaded

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Apr 30 15:28:04 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gert.driesen at pandora.be.

http://bugzilla.ximian.com/show_bug.cgi?id=81498

--- shadow/81498	2007-04-30 15:28:04.000000000 -0400
+++ shadow/81498.tmp.15762	2007-04-30 15:28:04.000000000 -0400
@@ -0,0 +1,113 @@
+Bug#: 81498
+Product: Mono: Runtime
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: gert.driesen at pandora.be               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: SIGABRT in GetCustomAttributes when assembly of attribute type cannot be loaded
+
+When the assembly holding the attribute type which is applied to a given 
+type, then invoke GetCustomAttributes on that type results in a SIGABRT.
+
+To reproduce:
+1. extract the attached gzipped tar archive.
+2. run 'make'.
+
+Expected result:
+Successful execution.
+
+Actual result:
+
+** (test.exe:9424): WARNING **: The following assembly referenced 
+from /home/monohead/mono-test-projects/bugs/standalone/sigabrt/liba.dll 
+could not be loaded:
+     Assembly:   libb    (assemblyref_index=1)
+     Version:    0.0.0.0
+     Public Key: (none)
+The assembly was not found in the Global Assembly Cache, a path listed in 
+the MONO_PATH environment variable, or in the location of the executing 
+assembly (/home/monohead/mono-test-projects/bugs/standalone/sigabrt).
+
+
+** (test.exe:9424): WARNING **: Could not load file or assembly 'libb, 
+Version=0.0.0.0, Culture=neutral' or one of its dependencies.
+
+** (test.exe:9424): WARNING **: Missing method .ctor in 
+assembly /home/monohead/mono-test-
+projects/bugs/standalone/sigabrt/liba.dll, type Mono.Design.NameAttribute
+
+** ERROR **: Can't find custom attr constructor image: /home/monohead/mono-
+test-projects/bugs/standalone/sigabrt/liba.dll mtoken: 0x0a000002
+aborting...
+Stacktrace:
+
+  at (wrapper managed-to-native) 
+System.MonoCustomAttrs.GetCustomAttributesInternal 
+(System.Reflection.ICustomAttributeProvider,System.Type,bool) <0x00004>
+  at (wrapper managed-to-native) 
+System.MonoCustomAttrs.GetCustomAttributesInternal 
+(System.Reflection.ICustomAttributeProvider,System.Type,bool) <0xffffffff>
+  at System.MonoCustomAttrs.GetCustomAttributesBase 
+(System.Reflection.ICustomAttributeProvider,System.Type) <0x0001e>
+  at System.MonoCustomAttrs.GetCustomAttributes 
+(System.Reflection.ICustomAttributeProvider,System.Type,bool) <0x0001d>
+  at System.MonoCustomAttrs.GetCustomAttributes 
+(System.Reflection.ICustomAttributeProvider,bool) <0x00084>
+  at System.MonoType.GetCustomAttributes (bool) <0x0000f>
+  at Program.Main () <0x00071>
+  at (wrapper runtime-invoke) System.Object.runtime_invoke_int 
+(object,intptr,intptr,intptr) <0xffffffff>
+
+Native stacktrace:
+
+	mono [0x81695be]
+	[0xffffe440]
+	/lib/tls/libc.so.6(abort+0xeb) [0xb7d93353]
+	/usr/lib/libglib-2.0.so.0(g_log+0) [0xb7ee3ad4]
+
+Debug info from gdb:
+
+Using host libthread_db library "/lib/tls/libthread_db.so.1".
+[Thread debugging using libthread_db enabled]
+[New Thread -1210677568 (LWP 9424)]
+[New Thread -1218761808 (LWP 9426)]
+[New Thread -1213060176 (LWP 9425)]
+0xffffe410 in ?? ()
+  3 Thread -1213060176 (LWP 9425)  0xffffe410 in ?? ()
+  2 Thread -1218761808 (LWP 9426)  0xffffe410 in ?? ()
+  1 Thread -1210677568 (LWP 9424)  0xffffe410 in ?? ()
+
+Thread 3 (Thread -1213060176 (LWP 9425)):
+#0  0xffffe410 in ?? ()
+#1  0xb7b22458 in ?? ()
+#2  0x081f9694 in ?? ()
+#3  0x00000000 in ?? ()
+
+Thread 2 (Thread -1218761808 (LWP 9426)):
+#0  0xffffe410 in ?? ()
+#1  0xb75b2288 in ?? ()
+#2  0x00000001 in ?? ()
+#3  0x00000000 in ?? ()
+
+Thread 1 (Thread -1210677568 (LWP 9424)):
+#0  0xffffe410 in ?? ()
+#1  0xbf98404c in ?? ()
+#2  0x00000000 in ?? ()
+#0  0xffffe410 in ?? ()
+
+
+=================================================================
+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.
+=================================================================


More information about the mono-bugs mailing list