[Mono-bugs] [Bug 385633] InvalidProgramException on unverifiable code where . net executes the code
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu May 1 12:06:13 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=385633
User jbevain at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=385633#c1
--- Comment #1 from Jb Evain <jbevain at novell.com> 2008-05-01 10:06:13 MST ---
Also when run with mono --verify-all I get:
[mono] ~/Desktop @ mono --verify-all repro.exe
** ERROR **: file loader.c: line 676 (mono_method_get_signature_full):
assertion failed: (!(method->flags & METHOD_ATTRIBUTE_PINVOKE_IMPL) &&
!(method->iflags & METHOD_IMPL_ATTRIBUTE_INTERNAL_CALL) &&
mono_method_signature (method))
aborting...
Stacktrace:
at InternalEnumerator`1.get_Current () <0xffffffff>
at InternalEnumerator`1.get_Current () <0x00027>
at Enumerable.Sum (System.Collections.Generic.IEnumerable`1,System.Func`3)
<0x0005d>
at Enumerable.Sum (System.Collections.Generic.IEnumerable`1,System.Func`2)
<0x0004c>
at Repro.Main () <0x000ac>
at (wrapper runtime-invoke) System.Object.runtime_invoke_void
(object,intptr,intptr,intptr) <0xffffffff>
Native stacktrace:
mono [0x81874ef]
[0xffffe440]
/lib/libc.so.6(abort+0x101) [0xb7cc31e1]
/usr/lib/libglib-2.0.so.0(g_logv+0x47a) [0xb7e753fa]
/usr/lib/libglib-2.0.so.0(g_log+0x29) [0xb7e75439]
/usr/lib/libglib-2.0.so.0(g_assert_warning+0x70) [0xb7e754b0]
mono(mono_method_get_signature_full+0x79) [0x80add89]
mono(mono_method_verify+0x1821) [0x80cd7e1]
mono [0x815161e]
mono [0x817265f]
mono [0x8174288]
mono [0x806bd3b]
[0xb7b67066]
[0xb78ab55e]
[0xb78ab4dd]
[0xb78ab2e5]
[0xb78ab1ae]
mono(mono_runtime_exec_main+0xeb) [0x8103e0b]
mono(mono_runtime_run_main+0x173) [0x8104123]
mono(mono_main+0x6be) [0x805b1be]
mono [0x805a592]
/lib/libc.so.6(__libc_start_main+0xe0) [0xb7cadfe0]
mono [0x805a501]
Debug info from gdb:
Using host libthread_db library "/lib/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread 0xb7c97b80 (LWP 7286)]
[New Thread 0xb74edb90 (LWP 7288)]
[New Thread 0xb7511b90 (LWP 7287)]
0xffffe410 in __kernel_vsyscall ()
3 Thread 0xb7511b90 (LWP 7287) 0xffffe410 in __kernel_vsyscall ()
2 Thread 0xb74edb90 (LWP 7288) 0xffffe410 in __kernel_vsyscall ()
1 Thread 0xb7c97b80 (LWP 7286) 0xffffe410 in __kernel_vsyscall ()
Thread 3 (Thread 0xb7511b90 (LWP 7287)):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7dfc846 in nanosleep () from /lib/libpthread.so.0
#2 0x0811ea81 in collection_thread (unused=0x0) at collection.c:34
#3 0xb7df5192 in start_thread () from /lib/libpthread.so.0
#4 0xb7d5b02e in clone () from /lib/libc.so.6
Thread 2 (Thread 0xb74edb90 (LWP 7288)):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7df9566 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2 0x0812415f in timedwait_signal_poll_cond (cond=0x82923ac, mutex=0x8292394,
timeout=0x0, alertable=0) at handles.c:1492
#3 0x08126e39 in _wapi_handle_timedwait_signal_handle (handle=0x404,
timeout=0x0, alertable=0) at handles.c:1572
#4 0x08126eac in _wapi_handle_wait_signal_handle (handle=0x404, alertable=0)
at handles.c:1532
#5 0x0812f1fd in WaitForSingleObjectEx (handle=0x404, timeout=4294967295,
alertable=0) at wait.c:200
#6 0x0818e5fa in finalizer_thread (unused=0x0) at gc.c:894
#7 0x080a954f in start_wrapper (data=0x82a6548) at threads.c:587
#8 0x0811b9e2 in thread_start_routine (args=0x829261c) at threads.c:285
#9 0x0813e365 in GC_start_routine (arg=0x27f40) at pthread_support.c:1369
#10 0xb7df5192 in start_thread () from /lib/libpthread.so.0
#11 0xb7d5b02e in clone () from /lib/libc.so.6
Thread 1 (Thread 0xb7c97b80 (LWP 7286)):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb7dfbffb in read () from /lib/libpthread.so.0
#2 0x08187652 in mono_handle_native_sigsegv (signal=6, ctx=0xbff499dc)
at mini-exceptions.c:1182
#3 <signal handler called>
#4 0xffffe410 in __kernel_vsyscall ()
#5 0xb7cc18f5 in raise () from /lib/libc.so.6
#6 0xb7cc31e1 in abort () from /lib/libc.so.6
#7 0xb7e753fa in g_logv () from /usr/lib/libglib-2.0.so.0
#8 0xb7e75439 in g_log () from /usr/lib/libglib-2.0.so.0
#9 0xb7e754b0 in g_assert_warning () from /usr/lib/libglib-2.0.so.0
#10 0x080add89 in mono_method_get_signature_full (method=0xb7edcff4,
image=0x826e7f8, token=721420291, context=0x828626c) at loader.c:674
#11 0x080cd7e1 in mono_method_verify (method=0x828624c, level=32)
at verify.c:2928
#12 0x0815161e in mono_method_to_ir (cfg=0x82cb548, method=0x828624c,
start_bblock=0x0, end_bblock=0x0, locals_offset=2, return_var=0x0,
dont_inline=0x0, inline_args=0x0, inline_offset=0, is_virtual_call=0)
at mini.c:4562
#13 0x0817265f in mini_method_compile (method=0x82bda48, opts=13724159,
domain=0x25f00, run_cctors=<value optimized out>,
compile_aot=<value optimized out>, parts=0) at mini.c:11777
#14 0x08174288 in mono_jit_compile_method (method=0x82bda48) at mini.c:12246
#15 0x0806bd3b in mono_magic_trampoline (regs=0xbff4aad4,
code=0xb78ab877 "\203�\b\215e�_��hr1",
m=0x82bda48, tramp=0x0)
at mini-trampolines.c:231
#16 0xb7b67066 in ?? ()
#17 0xbff4aad4 in ?? ()
#18 0xb78ab877 in ?? ()
#19 0x082bda48 in ?? ()
#20 0x00000000 in ?? ()
#0 0xffffe410 in __kernel_vsyscall ()
=================================================================
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.
=================================================================
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