[Mono-bugs] [Bug 49499][Cri] New - mono:: segfaults under Fedora Linux

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 9 Oct 2003 17:13:25 -0400 (EDT)


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 raphael.schmid@gmx.de.

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

--- shadow/49499	2003-10-09 17:13:25.000000000 -0400
+++ shadow/49499.tmp.6026	2003-10-09 17:13:25.000000000 -0400
@@ -0,0 +1,176 @@
+Bug#: 49499
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: Fedora Linux 0.94 (Severn)
+Status: NEW   
+Resolution: 
+Severity: 001 One hour
+Priority: Critical
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: raphael.schmid@gmx.de               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mono:: segfaults under Fedora Linux
+
+Description of Problem:
+When trying to execute any .exe with mono::, it gives a Segmentation Fault.
+Calling `mono' with no parameters at all correctly displays the usage
+information.
+
+Steps to reproduce the problem:
+1. Install Fedora Linux 0.94 (Severn)
+2. Compile mono:: (mono-0.28)
+3. Try something like mono /usr/bin/mcs.exe
+
+How often does this happen?
+Every time.
+
+Additional Information:
+My machine is an AMD Duron. This Severn installation has been enhanced with
+diverse Multimedia applications, but no core packages have been updated. Here
+is a backtrace with gdb:
+
+---< snip >---
+[root@proactivity mcs-0.28]#  gdb --args mono /usr/bin/mcs.exe
+GNU gdb Red Hat Linux (5.3.90-0.20030710.21rh)
+Copyright 2003 Free Software Foundation, Inc.
+GDB is free software, covered by the GNU General Public License, and you are
+welcome to change it and/or distribute copies of it under certain conditions.
+Type "show copying" to see the conditions.
+There is absolutely no warranty for GDB.  Type "show warranty" for details.
+This GDB was configured as "i386-redhat-linux-gnu"...Using host
+libthread_db lib rary "/lib/tls/libthread_db.so.1".
+ 
+(gdb) run
+Starting program: /usr/bin/mono /usr/bin/mcs.exe
+[Thread debugging using libthread_db enabled]
+[New Thread -1084512640 (LWP 23751)]
+[New Thread 5434288 (LWP 23753)]
+ 
+Program received signal SIGSEGV, Segmentation fault.
+[Switching to Thread -1084512640 (LWP 23751)]
+0x001408d1 in mono_jit_runtime_invoke (method=0x82ad460, obj=0x0, params=0x0,
+    exc=0xbfeede44) at mini.c:7239
+7239            return runtime_invoke (obj, params, exc);
+(gdb) up
+#1  0x0018e642 in mono_runtime_invoke (method=0x82ad460, obj=0x0, params=0x0,
+    exc=0xbfeede44) at object.c:711
+711             return default_mono_runtime_invoke (method, obj, params, exc);
+(gdb) up
+#2  0x0018d3c3 in mono_runtime_class_init (vtable=0x82a9ec4) at object.c:108
+108                     mono_runtime_invoke (method, NULL, NULL,
+(MonoObject **) &exc);
+(gdb) up
+#3  0x00140822 in mono_jit_compile_method (method=0x83471f8) at mini.c:7214
+7214            mono_runtime_class_init (mono_class_vtable (target_domain,
+method->klass));
+(gdb) up
+#4  0x0018d5e0 in mono_compile_method (method=0x83471f8) at object.c:180
+180             return default_mono_compile_method (method);
+(gdb) up
+#5  0x001405ce in mono_jit_compile_method (method=0x8345f68) at mini.c:7160
+7160                                    method->info = mono_compile_method
+(nm);
+(gdb) up
+#6  0x0018d5e0 in mono_compile_method (method=0x8345f68) at object.c:180
+180             return default_mono_compile_method (method);
+(gdb) up
+#7  0x0017e657 in mono_arch_create_jit_trampoline (method=0x8345f68)
+    at tramp-x86.c:405
+405                     method->info = mono_compile_method (method);
+(gdb) up
+#8  0x0018dfcc in mono_class_vtable (domain=0x82ecf80, class=0x82c34f8)
+    at object.c:515
+515                             vt->vtable [i] = arch_create_jit_trampoline
+(cm);
+(gdb) up
+#9  0x0018fea1 in mono_string_new_size (domain=0x82ecf80, len=5)
+    at object.c:1601
+1601            vtable = mono_class_vtable (domain,
+mono_defaults.string_class);
+(gdb) up
+#10 0x0018fe19 in mono_string_new_utf16 (domain=0x82ecf80, text=0x833cd58,
+    len=5) at object.c:1580
+1580            s = mono_string_new_size (domain, len);
+(gdb) up
+#11 0x0018ffd2 in mono_string_new (domain=0x82ecf80, text=0x2164c0 "dummy")
+    at object.c:1663
+1663                    o = mono_string_new_utf16 (domain, ut, items_written);
+(gdb) up
+#12 0x0019002f in mono_string_new_wrapper (text=0x2164c0 "dummy")
+    at object.c:1686
+1686                    return mono_string_new (domain, text);
+(gdb) up
+#13 0x001a2d35 in mono_marshal_get_runtime_invoke (method=0x831a730)
+    at marshal.c:1728
+1728                    string_dummy = mono_string_new_wrapper ("dummy");
+(gdb) up
+#14 0x001408ab in mono_jit_runtime_invoke (method=0x831a730, obj=0x82f7fc0,
+    params=0xbfeee190, exc=0x0) at mini.c:7237
+7237            invoke = mono_marshal_get_runtime_invoke (method);
+(gdb) up
+#15 0x0018e642 in mono_runtime_invoke (method=0x831a730, obj=0x82f7fc0,
+    params=0xbfeee190, exc=0x0) at object.c:711
+711             return default_mono_runtime_invoke (method, obj, params, exc);
+(gdb) up
+#16 0x001b1829 in mono_domain_fire_assembly_load (assembly=0x8328ed8,
+    user_data=0x0) at appdomain.c:458
+458             mono_runtime_invoke (method, domain->domain, params, NULL);
+(gdb) up
+#17 0x001bcdca in mono_assembly_invoke_load_hook (ass=0x8328ed8)
+    at assembly.c:235
+235                     hook->func (ass, hook->user_data);
+(gdb) up
+#18 0x001bd6c1 in mono_assembly_open (
+    filename=0x8325e98 "/usr/lib/System.Xml.dll", status=0xbfeee4c4)
+    at assembly.c:562
+562             mono_assembly_invoke_load_hook (ass);
+(gdb) up
+#19 0x001bd869 in mono_assembly_load (aname=0xbfeee2a0,
+    basedir=0x8323e48 "/usr/lib", status=0xbfeee4c4) at assembly.c:603
+603                     result = mono_assembly_open (fullpath, status);
+(gdb) up
+#20 0x001bccc3 in mono_assembly_load_references (image=0x8322ae0,
+    status=0xbfeee4c4) at assembly.c:204
+204                     image->references [i] = mono_assembly_load (&aname,
+image->assembly->basedir, status);
+(gdb) up
+#21 0x001bd4f8 in mono_assembly_open (
+    filename=0x8322950 "/usr/lib/System.dll", status=0xbfeee4c4)
+    at assembly.c:520
+520             mono_assembly_load_references (image, status);
+(gdb) up
+#22 0x001bcb15 in load_in_path (basename=0x8321a98 "System.dll",
+    search_path=0x240f4c, status=0xbfeee4c4) at assembly.c:125
+125                     result = mono_assembly_open (fullpath, status);
+(gdb) up
+#23 0x001bd8ed in mono_assembly_load (aname=0xbfeee420,
+    basedir=0x8321960 "/usr/bin", status=0xbfeee4c4) at assembly.c:617
+617             result = load_in_path (filename, default_path, status);
+(gdb) up
+#24 0x001bccc3 in mono_assembly_load_references (image=0x8320d90,
+    status=0xbfeee4c4) at assembly.c:204
+204                     image->references [i] = mono_assembly_load (&aname,
+image->assembly->basedir, status);
+(gdb) up
+#25 0x001bd4f8 in mono_assembly_open (filename=0xbff40ad5 "/usr/bin/mcs.exe",
+    status=0xbfeee4c4) at assembly.c:520
+520             mono_assembly_load_references (image, status);
+(gdb) up
+#26 0x00162d36 in mono_main (argc=2, argv=0xbfeee674) at driver.c:685
+685             assembly = mono_assembly_open (aname, NULL);
+(gdb) up
+#27 0x08048722 in main (argc=2, argv=0xbfeee674) at main.c:6
+6               return mono_main (argc, argv);
+(gdb) up
+Initial frame selected; you cannot go up.
+(gdb)
+---< snap >---
+
+If I can further assist in resolving this problem, please drop me a mail.
+
+- Raphael