[Mono-bugs] [Bug 421022] New: --trace causes SIGSEGV
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu Aug 28 06:18:31 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=421022
Summary: --trace causes SIGSEGV
Product: Mono: Runtime
Version: SVN
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: misc
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: rkvinge at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=235971)
--> (https://bugzilla.novell.com/attachment.cgi?id=235971)
zipped repro case
Repro:
mono --trace vbnc.exe
MS' peverify does not complain about the assembly.
Result:
(~150k lines of output)
[20] ENTER: (wrapper static-rgctx-invoke)
System.Collections.Generic.EqualityComparer`1<string>:static_rgctx_invoke_void
()()
[21] ENTER: System.Collections.Generic.EqualityComparer`1:.cctor ()()
Stacktrace:
at System.Collections.Generic.EqualityComparer`1<object>..cctor ()
<0xffffffff>
at System.Collections.Generic.EqualityComparer`1<object>..cctor () <0x00020>
at (wrapper static-rgctx-invoke)
System.Collections.Generic.EqualityComparer`1<string>.static_rgctx_invoke_void
() <0xffffffff>
at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
at System.Collections.Generic.Dictionary`2<stringint>.Init
(int,System.Collections.Generic.IEqualityComparer`1<string>) <0xffffffff>
at System.Collections.Generic.Dictionary`2<stringint>.Init
(int,System.Collections.Generic.IEqualityComparer`1<string>) <0x00044>
at System.Collections.Generic.Dictionary`2<stringint>..ctor (int) <0x0001d>
at Mono.Globalization.Unicode.MSCompatUnicodeTable.FillCJKCore
(string,Mono.Globalization.Unicode.CodePointIndexer&,byte*&,byte*&,Mono.Globalization.Unicode.CodePointIndexer&,byte*&)
<0x00065>
at Mono.Globalization.Unicode.MSCompatUnicodeTable.FillCJK
(string,Mono.Globalization.Unicode.CodePointIndexer&,byte*&,byte*&,Mono.Globalization.Unicode.CodePointIndexer&,byte*&)
<0x0003a>
at Mono.Globalization.Unicode.SimpleCollator.SetCJKTable
(System.Globalization.CultureInfo,Mono.Globalization.Unicode.CodePointIndexer&,byte*&,byte*&,Mono.Globalization.Unicode.CodePointIndexer&,byte*&)
<0x00035>
at Mono.Globalization.Unicode.SimpleCollator..ctor
(System.Globalization.CultureInfo) <0x0007d>
at Mono.Globalization.Unicode.SimpleCollator..cctor () <0x00055>
at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
at System.Globalization.CompareInfo..ctor (System.Globalization.CultureInfo)
<0xffffffff>
at System.Globalization.CompareInfo..ctor (System.Globalization.CultureInfo)
<0x000f3>
at System.Globalization.CultureInfo.get_CompareInfo () <0x0005e>
at System.CultureAwareComparer..ctor (System.Globalization.CultureInfo,bool)
<0x00024>
at System.StringComparer..cctor () <0x00035>
at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
at vbnc.Helper..cctor () <0xffffffff>
at vbnc.Helper..cctor () <0x00019>
at (wrapper runtime-invoke) object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
at vbnc.BaseObject..ctor (vbnc.BaseObject) <0xffffffff>
at vbnc.BaseObject..ctor (vbnc.BaseObject) <0x000cc>
at vbnc.Compiler..ctor () <0x0001f>
at vbnc.Main.Main (string[]) <0x0017c>
at (wrapper runtime-invoke) vbnc.Main.runtime_invoke_int_string[]
(object,intptr,intptr,intptr) <0xffffffff>
Native stacktrace:
mono [0x806ee69]
mono [0x80885bb]
[0xffffe410]
mono [0x811b420]
[0xb7c55474]
[0xb78cf1b3]
[0xb78c7a55]
mono [0x80f385e]
mono(mono_runtime_class_init+0x19) [0x80f3f19]
mono [0x81b8cee]
mono [0x8070e87]
[0xb7c55066]
[0xb78cf04e]
[0xb78cec8e]
[0xb78cebcb]
[0xb78ceace]
[0xb78ce726]
[0xb78ce646]
[0xb78c7a55]
mono [0x80f385e]
mono(mono_method_to_ir2+0x1404e) [0x81ddbfe]
mono [0x81b6aba]
mono [0x81b8b21]
mono [0x8070e87]
[0xb7c55066]
[0xb78cd8cf]
[0xb78cd825]
[0xb78cc136]
[0xb78c7a55]
mono [0x80f385e]
mono(mono_method_to_ir2+0x1404e) [0x81ddbfe]
mono [0x81b6aba]
mono [0x81b8b21]
mono [0x8070e87]
[0xb7c55066]
[0xb78c7a55]
mono [0x80f385e]
mono(mono_runtime_class_init+0x19) [0x80f3f19]
mono [0x81b8cee]
mono [0x8070e87]
[0xb7c55066]
[0xb78cbcd8]
[0xb78c74fd]
[0xb78c72c3]
mono(mono_runtime_exec_main+0x16f) [0x80eff2f]
mono(mono_runtime_run_main+0x16d) [0x80f061d]
mono(mono_main+0x17ac) [0x805cbfc]
mono [0x805aed2]
/lib/libc.so.6(__libc_start_main+0xe5) [0xb7da05f5]
mono [0x805ae11]
Cannot access memory at address 0x0
Debug info from gdb:
[Thread debugging using libthread_db enabled]
[New Thread 0xb7d886e0 (LWP 20451)]
[New Thread 0xb74d3b90 (LWP 20453)]
[New Thread 0xb78c6b90 (LWP 20452)]
0xffffe430 in __kernel_vsyscall ()
3 Thread 0xb78c6b90 (LWP 20452) 0xffffe430 in __kernel_vsyscall ()
2 Thread 0xb74d3b90 (LWP 20453) 0xffffe430 in __kernel_vsyscall ()
1 Thread 0xb7d886e0 (LWP 20451) 0xffffe430 in __kernel_vsyscall ()
Thread 3 (Thread 0xb78c6b90 (LWP 20452)):
#0 0xffffe430 in __kernel_vsyscall ()
#1 0xb7f003e6 in nanosleep () from /lib/libpthread.so.0
#2 0x0815eed8 in collection_thread (unused=0x0) at collection.c:34
#3 0xb7ef9175 in start_thread (arg=0xb78c6b90) at pthread_create.c:297
#4 0xb7e57dce in clone () from /lib/libc.so.6
Thread 2 (Thread 0xb74d3b90 (LWP 20453)):
#0 0xffffe430 in __kernel_vsyscall ()
#1 0xb7efcc15 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so0
#2 0x0815abe7 in timedwait_signal_poll_cond (cond=0x83139dc, mutex=0x83139c4,
timeout=0x0, alertable=0) at handles.c:1490
#3 0x0815d774 in _wapi_handle_timedwait_signal_handle (handle=0x404,
timeout=0x0, alertable=0) at handles.c:1570
#4 0x0815d7dc in _wapi_handle_wait_signal_handle (handle=0x404, alertable=0)
at handles.c:1530
#5 0x0814fcd2 in WaitForSingleObjectEx (handle=0x404, timeout=4294967295,
alertable=0) at wait.c:205
#6 0x0810695a in finalizer_thread (unused=0x0) at gc.c:905
#7 0x080dedd9 in start_wrapper (data=0x83251d0) at threads.c:621
#8 0x08154756 in thread_start_routine (args=0x8313c1c) at threads.c:279
#9 0x0818039a in GC_start_routine (arg=0x26f20) at pthread_support.c:1382
#10 0xb7ef9175 in start_thread (arg=0xb74d3b90) at pthread_create.c:297
#11 0xb7e57dce in clone () from /lib/libc.so.6
Thread 1 (Thread 0xb7d886e0 (LWP 20451)):
#0 0xffffe430 in __kernel_vsyscall ()
#1 0xb7e54757 in syscall () from /lib/libc.so.6
#2 0x0806eef6 in mono_handle_native_sigsegv (signal=11, ctx=0xb7c54d0c) at
mini-exceptions.c:1291
#3 0x080885bb in mono_arch_handle_altstack_exception (sigctx=0xb7c54d0c,
fault_addr=0x10, stack_ovf=0) at exceptions-x86.c:854
#4 <signal handler called>
#5 __pthread_mutex_lock (mutex=0x4) at pthread_mutex_lock.c:51
#6 0x0811b420 in mono_class_fill_runtime_generic_context
(class_vtable=0xb7eca0d0, slot=5) at generic-sharing.c:1152
#7 0xb7c55474 in ?? ()
#8 0xb78cf1b3 in ?? ()
#9 0xb78c7a55 in ?? ()
#10 0x080f385e in mono_runtime_class_init_full (vtable=0x83a9070,
raise_exception=1) at object.c:2166
#11 0x080f3f19 in mono_runtime_class_init (vtable=0x83a9070) at object.c:226
#12 0x081b8cee in mono_jit_compile_method (method=0x83a1118) at mini.c:13302
#13 0x08070e87 in mono_magic_trampoline (regs=0xbfb2ae10, code=0xb78cf0b4
"\211E�\213M�\213E�\211H(�\n", m=0x83a1118, tramp=0x0) at
mini-trampolines.c:262
#14 0xb7c55066 in ?? ()
#15 0xb78cf04e in ?? ()
#16 0xb78cec8e in ?? ()
#17 0xb78cebcb in ?? ()
#18 0xb78ceace in ?? ()
#19 0xb78ce726 in ?? ()
#20 0xb78ce646 in ?? ()
#21 0xb78c7a55 in ?? ()
#22 0x080f385e in mono_runtime_class_init_full (vtable=0x833051c,
raise_exception=0) at object.c:2166
#23 0x081ddbfe in mono_method_to_ir2 (cfg=0x8388098, method=0x839a29c,
start_bblock=0x83922e4, end_bblock=0x839237c, return_var=0x0,
dont_inline=0x838a870, inline_args=0x0, inline_offset=0, is_virtual_call=0) at
method-to-ir.c:7769
#24 0x081b6aba in mini_method_compile (method=0x839a29c, opts=30501375,
domain=0x25ea0, run_cctors=<value optimized out>, compile_aot=<value optimized
out>, parts=0) at mini.c:12469
#25 0x081b8b21 in mono_jit_compile_method (method=0x839a29c) at mini.c:13156
#26 0x08070e87 in mono_magic_trampoline (regs=0xbfb2b57c, code=0xb78ce34b
"\203�\b\213E�\211F\034\213\005��\002", m=0x839a29c, tramp=0x0) at
mini-trampolines.c:262
#27 0xb7c55066 in ?? ()
#28 0xb78cd8cf in ?? ()
#29 0xb78cd825 in ?? ()
#30 0xb78cc136 in ?? ()
#31 0xb78c7a55 in ?? ()
#32 0x080f385e in mono_runtime_class_init_full (vtable=0x832f478,
raise_exception=0) at object.c:2166
#33 0x081ddbfe in mono_method_to_ir2 (cfg=0x8346400, method=0x835292c,
start_bblock=0x8382cec, end_bblock=0x8382d84, return_var=0x0,
dont_inline=0x837f480, inline_args=0x0, inline_offset=0, is_virtual_call=0) at
method-to-ir.c:7769
#34 0x081b6aba in mini_method_compile (method=0x835292c, opts=30501375,
domain=0x25ea0, run_cctors=<value optimized out>, compile_aot=<value optimized
out>, parts=0) at mini.c:12469
#35 0x081b8b21 in mono_jit_compile_method (method=0x835292c) at mini.c:13156
#36 0x08070e87 in mono_magic_trampoline (regs=0xbfb2bc3c, code=0xb78cc099
"\213ȸ\030\237\002", m=0x835292c, tramp=0x0) at mini-trampolines.c:262
#37 0xb7c55066 in ?? ()
#38 0xb78c7a55 in ?? ()
#39 0x080f385e in mono_runtime_class_init_full (vtable=0x832efd4,
raise_exception=1) at object.c:2166
#40 0x080f3f19 in mono_runtime_class_init (vtable=0x832efd4) at object.c:226
#41 0x081b8cee in mono_jit_compile_method (method=0x836e294) at mini.c:13302
#42 0x08070e87 in mono_magic_trampoline (regs=0xbfb2bdf8, code=0xb78cbedc
"Y\213F\b\205�\017\224�\017��\205�\017\224�\017��\205�t\033V\213\006�PdY\205�\017\224�\017��\205�\017\224�\017��\205�u\t�E�",
m=0x836e294, tramp=0x0)
at mini-trampolines.c:262
#43 0xb7c55066 in ?? ()
#44 0xb78cbcd8 in ?? ()
#45 0xb78c74fd in ?? ()
#46 0xb78c72c3 in ?? ()
#47 0x080eff2f in mono_runtime_exec_main (method=0x0, args=0x2ce70, exc=0x0) at
object.c:2166
#48 0x080f061d in mono_runtime_run_main (method=0x82f80e4, argc=1,
argv=0xbfb2c20c, exc=0x0) at object.c:2848
#49 0x0805cbfc in mono_main (argc=3, argv=0xbfb2c204) at driver.c:957
#50 0x0805aed2 in main (argc=) at main.c:30
#0 0xffffe430 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
--
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