[Mono-list] Mono segfault on Hello world

Vivek Haldar vhaldar@uci.edu
Fri, 12 Sep 2003 13:10:42 -0700


Just compiled and installed the mono snapshot mono-0.26.20030912, and when I 
try to run a simple hello world executable it segfaults. For the same reason 
I can't run mcs either.

Using: gcc 3.3, glibc 2.3.2. (Redhat 9.0.93 beta)

Backtrace from gdb:
#0  0x0039cc67 in mono_jit_runtime_invoke (method=0x8540fe8, obj=0x0,
    params=0x0, exc=0xbfeff4a4) at mini.c:7137
#1  0x003e9fd6 in mono_runtime_invoke (method=0x8540fe8, obj=0x0, params=0x0,
    exc=0xbfeff4a4) at object.c:711
#2  0x003e8d57 in mono_runtime_class_init (vtable=0x84d4ecc) at object.c:108
#3  0x0039cc10 in mono_jit_compile_method (method=0x854acf0) at mini.c:7118
#4  0x003e8f74 in mono_compile_method (method=0x854acf0) at object.c:180
#5  0x0039c9bc in mono_jit_compile_method (method=0x8549e48) at mini.c:7065
#6  0x003e8f74 in mono_compile_method (method=0x8549e48) at object.c:180
#7  0x003da35b in mono_arch_create_jit_trampoline (method=0x8549e48)
    at tramp-x86.c:340
#8  0x003e9960 in mono_class_vtable (domain=0x8507f80, class=0x84ee598)
    at object.c:515
#9  0x003eb835 in mono_string_new_size (domain=0x8507f80, len=5)
    at object.c:1601
#10 0x003eb7ad in mono_string_new_utf16 (domain=0x8507f80, text=0x852bdd0,
    len=5) at object.c:1580
#11 0x003eb966 in mono_string_new (domain=0x8507f80, text=0x4623c0 "dummy")
    at object.c:1663
#12 0x003eb9c3 in mono_string_new_wrapper (text=0x4623c0 "dummy")
    at object.c:1686
#13 0x003fe5df in mono_marshal_get_runtime_invoke (method=0x85356c8)
    at marshal.c:1703
#14 0x0039cc41 in mono_jit_runtime_invoke (method=0x85356c8, obj=0x8512fc0,
    params=0xbfeff7f0, exc=0x0) at mini.c:7135
---Type <return> to continue, or q <return> to quit---
#15 0x003e9fd6 in mono_runtime_invoke (method=0x85356c8, obj=0x8512fc0,
    params=0xbfeff7f0, exc=0x0) at object.c:711
#16 0x0040d0b9 in mono_domain_fire_assembly_load (assembly=0x853c918,
    user_data=0x0) at appdomain.c:458
#17 0x0041865a in mono_assembly_invoke_load_hook (ass=0x853c918)
    at assembly.c:235
#18 0x00418f51 in mono_assembly_open (
    filename=0xbffb5868 "/home/haldar/Hello.exe", status=0xbfeff854)
    at assembly.c:562
#19 0x003bf024 in mono_main (argc=2, argv=0xbfeffa04) at driver.c:653
#20 0x08048742 in main (argc=2, argv=0xbfeffa04) at main.c:6
#21 0x00126678 in __libc_start_main () from /lib/tls/libc.so.6
 
-- 
Vivek Haldar
vhaldar@uci.edu
http://www.ics.uci.edu/~vhaldar