Bugzilla – Bug 316045
[AMD64] Delegate tests fail with unhandled exceptions
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by czimman@bloomberg.com 2004-09-16 11:39:14 MST ---- None of the delegate tests are working reliably: (gdb) file mono Reading symbols from mono...done. Using host libthread_db library "/lib64/tls/libthread_db.so.1". (gdb) set args --debug delegate1.exe (gdb) run Starting program: /usr/local/bin/mono --debug delegate1.exe [Thread debugging using libthread_db enabled] [New Thread 182906996992 (LWP 29774)] Detaching after fork from child process 29777. [New Thread 1077934432 (LWP 29778)] [New Thread 1082128736 (LWP 29779)] [New Thread 1086323040 (LWP 29780)] [New Thread 1090517344 (LWP 29781)] [New Thread 1094711648 (LWP 29782)] [New Thread 1098905952 (LWP 29783)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1098905952 (LWP 29783)] 0x0000002a96804750 in ?? () Unfortunately, it seems to be trashing the stack as well, so backtraces aren't very useful: (gdb) where #0 0x0000002a96804750 in ?? () #1 0x000000000077a1b8 in ?? () #2 0x0000002a9666d9f0 in ?? () #3 0x0000002a9666da29 in ?? () #4 0x0000002a9666aa08 in ?? () #5 0x0000000000741cd0 in ?? () #6 0x00000000417ff520 in ?? () #7 0x0000002a9666b61c in ?? () #8 0x0000000000000004 in ?? () #9 0x0000000000741eb0 in ?? () #10 0x00000000417ff560 in ?? () #11 0x0000002a9666b506 in ?? () #12 0x00000000006beea0 in ?? () #13 0x0000000000761590 in ?? () #14 0x00000000417ff630 in ?? () #15 0x0000000000742d40 in ?? () #16 0x0000000000741eb0 in ?? () #17 0x0000002a9666b2b0 in ?? () #18 0x00000000417ff5e0 in ?? () #19 0x0000002a9666b2f7 in ?? () #20 0x0000002a9666b470 in ?? () #21 0x0000000000742d40 in ?? () #22 0x00000000417ff630 in ?? () #23 0x0000000000741eb0 in ?? () #24 0x00000000006beea0 in ?? () #25 0x0000000000000000 in ?? () #26 0x00000000006842d0 in ?? () #27 0x0000000000000000 in ?? () #28 0x0000000000000000 in ?? () #29 0x0000002a9666b2b0 in ?? () #30 0x0000000000761b30 in ?? () #31 0x0000000000741eb0 in ?? () #32 0x0000000000742d40 in ?? () #33 0x00000000417ff630 in ?? () #34 0x0000000000761b30 in ?? () #35 0x00000000004ba1f0 in mono_jit_runtime_invoke (method=0x417ff500, obj=0x741eb0, params=0x741cd0, exc=0x0) at mini.c:8116 #36 0x000000000044394a in mono_runtime_invoke (method=Variable "method" is not available. ) at object.c:987 #37 0x00000000004471ec in mono_runtime_invoke_array (method=0x761b30, obj=0x741eb0, params=0x6c8e88, exc=0x742d40) at object.c:1674 #38 0x000000000044734c in mono_message_invoke (target=0x741eb0, msg=0x742d00, exc=0x742d40, out_args=0x6c4f10) at object.c:2824 #39 0x00000000004642c2 in async_invoke_thread (data=0x6c9ba0) at threadpool.c:70 #40 0x0000000000463a77 in start_wrapper (data=Variable "data" is not available. ) at threads.c:266 #41 0x000000000049d7a5 in timed_thread_start_routine (args=Variable "args" is not available. ) at timed-thread.c:135 #42 0x00000000004b1a43 in GC_start_routine (arg=Variable "arg" is not available. ) at pthread_support.c:1226 #43 0x0000002a95c258e2 in start_thread () from /lib64/tls/libpthread.so.0 #44 0x0000002a9604b863 in thread_start () from /lib64/tls/libc.so.6 #45 0x0000000000000000 in ?? () #46 0x0000000000000000 in ?? () #47 0x0000000000000000 in ?? () #48 0x0000000000000000 in ?? () #49 0x0000000000000000 in ?? () #50 0x0000000000000000 in ?? () #51 0x0000000000000000 in ?? () #52 0x0000000000000000 in ?? () #53 0x0000000000000000 in ?? () #54 0x0000002a96198820 in _nl_C_locobj () from /lib64/tls/libc.so.6 #55 0x00000000417ffdc0 in ?? () #56 0x0000000000000000 in ?? () #57 0x0000000000000000 in ?? () #58 0x0000000000000000 in ?? () #59 0x0000000000000000 in ?? () #60 0x0000002a961b0660 in __malloc_initialize_hook () from /lib64/tls/libc.so.6 #61 0x0000000000000000 in ?? () #62 0x0000000000000000 in ?? () #63 0x0000000000000000 in ?? () ...etc... It's pretty much the same state for the rest of the threads. From outside the debugger, when delegate1.exe is invoked, it usually shows: ~/Mono/mono-1.1.1.20040915/mono/tests> mono --debug delegate1.exe Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object Sometimes it'll show: :~/Mono/mono-1.1.1.20040915/mono/tests> mono --debug delegate1.exe Test.F from delegate: 1 Test.F from delegate: 4 Test.F from delegate: 2 Test.F from delegate: 3 Async Callback STATE1 Async Callback STATE4 Result = 1 cant execute EndInvoke twice ... OK Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object Versions: ~/Mono/mono-1.1.1.20040915/mono/tests> mono --version Mono JIT compiler version 1.1.1.20040915, (C) 2002-2004 Novell, Inc and Contributors. www.go-mono.com TLS: __thread GC: Included Boehm (with typed GC) SIGSEGV : normal Globalization: none ~/Mono/mono-1.1.1.20040915/mono/tests> mcs --version Mono C# compiler version 1.1.1.0 ---- Additional Comments From vargaz@freemail.hu 2004-09-25 12:05:29 MST ---- Should be fixed in CVS. Unknown bug field "cf_op_sys_details" encountered while moving bug <cf_op_sys_details>delegate tests fail</cf_op_sys_details> Unknown operating system SUSE 9.1. Setting to default OS "Other".