[Mono-bugs] [Bug 80339][Maj] Changed - SIGSEGV in certain scenarios with ModuleBuilder.DefineResource and ModuleBuilder.DefineManifestResource

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Dec 21 21:18:43 EST 2006


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 rolfkvinge at ya.com.

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

--- shadow/80339	2006-12-21 21:18:01.000000000 -0500
+++ shadow/80339.tmp.19523	2006-12-21 21:18:42.000000000 -0500
@@ -46,6 +46,116 @@
 }
 
 ------- Additional Comments From rolfkvinge at ya.com  2006-12-21 21:18 -------
 The order of the DefineResource and DefineManifestResource is 
 important (otherwise I can't reproduce the crash), and they are both 
 necessary.
+
+------- Additional Comments From rolfkvinge at ya.com  2006-12-21 21:18 -------
+Stacktrace:
+
+  at (wrapper managed-to-native) 
+System.Reflection.Emit.ModuleBuilder.WriteToFile (intptr) <0x00004>
+  at (wrapper managed-to-native) 
+System.Reflection.Emit.ModuleBuilder.WriteToFile (intptr) <0xffffffff>
+  at System.Reflection.Emit.ModuleBuilder.Save () <0x004c3>
+  at System.Reflection.Emit.AssemblyBuilder.Save 
+(string,System.Reflection.PortableExecutableKinds,System.Reflection.ImageFileMachine) <0x004bb>
+  at System.Reflection.Emit.AssemblyBuilder.Save (string) <0x00014>
+  at vbnc_bugs.Main () <0x000b7>
+  at (wrapper runtime-invoke) System.Object.runtime_invoke_void 
+(object,intptr,intptr,intptr) <0xffffffff>
+
+Native stacktrace:
+
+        mono(mono_handle_native_sigsegv+0xd4) [0x8168df4]
+        mono [0x8130e68]
+        [0xffffe440]
+        mono(mono_image_create_pefile+0x114) [0x80d1454]
+        [0xb72f3379]
+        [0xb72e84c4]
+        [0xb796c70c]
+        [0xb796aad5]
+        [0xb795f9a0]
+        [0xb795f05e]
+        mono(mono_runtime_exec_main+0x62) [0x80e2c02]
+        mono(mono_runtime_run_main+0x1b9) [0x80e2ee9]
+        mono(mono_main+0xe5a) [0x805ef4a]
+        mono [0x805dbe2]
+        /lib/libc.so.6(__libc_start_main+0xdc) [0xb7cff87c]
+        mono [0x805db31]
+
+Debug info from gdb:
+
+Using host libthread_db library "/lib/libthread_db.so.1".
+[Thread debugging using libthread_db enabled]
+[New Thread -1211197120 (LWP 25615)]
+[New Thread -1220572256 (LWP 25617)]
+[New Thread -1209164896 (LWP 25616)]
+0xffffe410 in __kernel_vsyscall ()
+  3 Thread -1209164896 (LWP 25616)  0xffffe410 in __kernel_vsyscall ()
+  2 Thread -1220572256 (LWP 25617)  0xffffe410 in __kernel_vsyscall ()
+  1 Thread -1211197120 (LWP 25615)  0xffffe410 in __kernel_vsyscall ()
+
+Thread 3 (Thread -1209164896 (LWP 25616)):
+#0  0xffffe410 in __kernel_vsyscall ()
+#1  0xb7e3ba46 in __nanosleep_nocancel () from /lib/libpthread.so.0
+#2  0x0810a104 in collection_thread (unused=0x0) at collection.c:34
+#3  0xb7e352ab in start_thread () from /lib/libpthread.so.0
+#4  0xb7da775e in clone () from /lib/libc.so.6
+
+Thread 2 (Thread -1220572256 (LWP 25617)):
+#0  0xffffe410 in __kernel_vsyscall ()
+#1  0xb7e38726 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/
+libpthread.so.0
+#2  0x081145cf in timedwait_signal_poll_cond (cond=0xb78d21dc,
+    mutex=0xb78d21c4, timeout=0x0, alertable=0) at handles.c:1413
+#3  0x08116d8f in _wapi_handle_timedwait_signal_handle (handle=0x404,
+    timeout=0x0, alertable=0) at handles.c:1493
+#4  0x08116e0c in _wapi_handle_wait_signal_handle (handle=0x404, 
+alertable=0)
+    at handles.c:1453
+#5  0x08117b1f in WaitForSingleObjectEx (handle=0x404, 
+timeout=4294967295,
+    alertable=0) at wait.c:200
+#6  0x0816fbda in finalizer_thread (unused=0x0) at gc.c:819
+#7  0x080bd924 in start_wrapper (data=0x824eff8) at threads.c:313
+#8  0x0810e7ce in thread_start_routine (args=0xb7784b58) at 
+threads.c:253
+#9  0x08126eb5 in GC_start_routine (arg=0x22f40) at 
+pthread_support.c:1357
+#10 0xb7e352ab in start_thread () from /lib/libpthread.so.0
+#11 0xb7da775e in clone () from /lib/libc.so.6
+
+Thread 1 (Thread -1211197120 (LWP 25615)):
+#0  0xffffe410 in __kernel_vsyscall ()
+#1  0xb7da0e11 in ___newselect_nocancel () from /lib/libc.so.6
+#2  0xb7e969a0 in g_spawn_sync () from /opt/gnome/lib/libglib-2.0.so.0
+#3  0xb7e96d6c in g_spawn_command_line_sync ()
+   from /opt/gnome/lib/libglib-2.0.so.0
+#4  0x08168e8c in mono_handle_native_sigsegv (signal=11, 
+ctx=0xbf86f85c)
+    at mini-exceptions.c:1058
+#5  0x08130e68 in sigsegv_signal_handler (_dummy=11, info=0xbf86f7dc,
+    context=0xbf86f85c) at mini.c:10949
+#6  <signal handler called>
+#7  assembly_add_resource (mb=0x4df80, assembly=0x4c000, rsrc=0x5bfe8)
+    at reflection.c:3747
+#8  0x080d1454 in mono_image_create_pefile (mb=0x4df80, file=0x8)
+    at reflection.c:4764
+#9  0xb72f3379 in ?? ()
+#10 0x0004df80 in ?? ()
+#11 0x00000008 in ?? ()
+#12 0x0820f3d8 in ?? ()
+#13 0x0002ef00 in ?? ()
+#14 0x00000000 in ?? ()
+#0  0xffffe410 in __kernel_vsyscall ()
+
+
+=================================================================
+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
+


More information about the mono-bugs mailing list