[Mono-bugs] [Bug 24257] New - mint segfault on linux/ppc

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
6 May 2002 01:31:11 -0000


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 al2000@udev.org.

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

--- shadow/24257	Sun May  5 21:31:11 2002
+++ shadow/24257.tmp.17574	Sun May  5 21:31:11 2002
@@ -0,0 +1,119 @@
+Bug#: 24257
+Product: Mono/Runtime
+Version: unspecified
+OS: 
+OS Details: debian sid, kernel 2.4.19pre4
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: al2000@udev.org               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: mint segfault on linux/ppc
+
+mint interp.c(1.173 2002-05-04) segfault on pcc
+
+hello.exe has been compiled with mcs on a x86 and run fine with mono on x86.
+When i run mint hello.exe on ppc, it actually print Hello World on stdout but
+then segfault.
+
+When i run mint mcs.exe it segfault at the same place (line 1449) except that
+ves_exec_method has more recursion levels than hello world.  I can provide a
+bt for mint mcs.exe if needed.
+
+platform:
+---------
+Linux 2.4.19-pre4-ben0v6 #1 Fri Mar 29 05:02:42 CET 2002 ppc unknown
+Debian GNU/Linux sid
+
+version of mint:
+----------------
+/interp.c/1.173/Wed May  1 14:04:59 2002//
+cvs up mono was done the 2002-05-04
+
+dependency of mint:
+-------------------
+libgmodule-1.3.so.15 => /usr/lib/libgmodule-1.3.so.15 (0x0ffdd000)
+libdl.so.2 => /lib/libdl.so.2 (0x0ffba000)
+libglib-1.3.so.15 => /usr/lib/libglib-1.3.so.15 (0x0ff1a000)
+libm.so.6 => /lib/libm.so.6 (0x0fe83000)
+libpthread.so.0 => /lib/libpthread.so.0 (0x0fe4d000)
+libnsl.so.1 => /lib/libnsl.so.1 (0x0fe17000)
+librt.so.1 => /lib/librt.so.1 (0x0fde6000)
+libc.so.6 => /lib/libc.so.6 (0x0fc8b000)
+/lib/ld.so.1 => /lib/ld.so.1 (0x30000000)
+
+version of libc6 is 2.2.5-5
+
+version of corlib.dll and System.*.dll:
+---------------------------------------
+2002-04-25, from the mono-0.11 release.
+
+content of hello.cs:
+--------------------
+class HelloWorld
+{
+        public static void Main() 
+        {
+                System.Console.WriteLine("Hello World");
+        }
+}
+
+tail of the output of mint and gdb:
+-----------------------------------
+(...)
+PInvoke [start emiting] get_ConsoleInput
+      stack size: 32 (20)
+       code size: 72
+           align: 0x10144428 (0)
+emited code size: 72
+PInvoke [end emiting]
+
+PInvoke [start emiting] IConvGetBytes
+      stack size: 32 (20)
+       code size: 96
+           align: 0x1014d288 (0)
+emited code size: 96
+PInvoke [end emiting]
+
+PInvoke [start emiting] IConvReset
+      stack size: 32 (20)
+       code size: 68
+           align: 0x1014d2f0 (0)
+emited code size: 68
+PInvoke [end emiting]
+
+PInvoke [start emiting] Write
+      stack size: 32 (20)
+       code size: 88
+           align: 0x1014d978 (0)
+emited code size: 88
+PInvoke [end emiting]
+Hello World
+PInvoke [start emiting] .ctor
+      stack size: 32 (20)
+       code size: 72
+           align: 0x1014da00 (0)
+emited code size: 72
+PInvoke [end emiting]
+
+Program received signal SIGSEGV, Segmentation fault.
+[Switching to Thread 1024 (LWP 24463)]
+0x1000ff7c in ves_exec_method (frame=0x7ffff148) at interp.c:1449
+1449                            if (csignature->hasthis && sp->type == VAL_OBJ &&
+(gdb) bt
+#0  0x1000ff7c in ves_exec_method (frame=0x7ffff148) at interp.c:1449
+#1  0x10010110 in ves_exec_method (frame=0x7ffff338) at interp.c:1483
+#2  0x10010110 in ves_exec_method (frame=0x7ffff4f8) at interp.c:1483
+#3  0x10010110 in ves_exec_method (frame=0x7ffff638) at interp.c:1483
+#4  0x1000d0fc in interp_mono_runtime_invoke (method=0x100f20e0, obj=0x0, params=0x7ffff6f0) at interp.c:1008
+#5  0x10027fc8 in mono_runtime_invoke (method=0x100f20e0, obj=0x0, params=0x7ffff6f0) at object.c:309
+#6  0x10028284 in mono_runtime_exec_main (method=0x100f20e0, args=0x0) at object.c:367
+#7  0x1001aecc in ves_exec (domain=0x1009a900, assembly=0x100c8520, argc=0, argv=0x7ffff7dc) at interp.c:3835
+#8  0x1001b47c in main (argc=2, argv=0x7ffff7d4) at interp.c:3971
+#9  0x0fcb0c30 in __libc_start_main () from /lib/libc.so.6