[Mono-bugs] [Bug 54068][Wis] Changed - The xsp server crash with bus error.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 17 Feb 2004 03:49:49 -0500 (EST)


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 ztashev@openlinksw.co.uk.

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

--- shadow/54068	2004-02-11 11:37:30.000000000 -0500
+++ shadow/54068.tmp.10731	2004-02-17 03:49:49.000000000 -0500
@@ -273,6 +273,186 @@
 (gdb)
 
 
 ------- Additional Comments From ztashev@openlinksw.co.uk  2004-02-11 11:37 -------
 The xsp server is not work on Linux from today CVS. I’m will repeat 
 test when this usage is fixed.
+
+------- Additional Comments From ztashev@openlinksw.co.uk  2004-02-17 03:49 -------
+Tested with mono 0.30.1:
+
+mono:
+
+GNU gdb 5.3-20030128 (Apple version gdb-309) (Thu Dec  4 15:41:30 GMT 
+2003)
+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 "powerpc-apple-darwin".
+Reading symbols for shared libraries ......... done
+(gdb) r ../server/xsp.exe 
+Starting 
+program: /Users/virtdev/portspace/virt_bin/mono_inst/bin/mono ../serve
+r/xsp.exe
+Reading symbols for shared libraries ++++++. done
+
+** ERROR **: file tramp-ppc.c: line 485 
+(mono_arch_create_jump_trampoline): should not be reached
+aborting...
+
+Program received signal SIGABRT, Aborted.
+0x90042aac in kill ()
+(gdb) t a a bt
+
+Thread 1 (process 16937 local thread 0xd03):
+#0  0x90042aac in kill ()
+#1  0x9009ec5c in abort ()
+#2  0x002d315c in g_logv ()
+#3  0x002d3234 in g_log ()
+#4  0x01073610 in mono_arch_create_jump_trampoline (method=0x42c000) 
+at tramp-ppc.c:485
+#5  0x01026950 in mono_create_jump_trampoline (domain=0xb8f00, 
+method=0x42c000, add_sync_wrapper=1) at mini.c:6142
+#6  0x01008a20 in mono_ldftn (method=0x42c000) at jit-icalls.c:20
+#7  0x01802ac0 in ?? ()
+#8  0x01802d74 in ?? ()
+#9  0x0102b854 in mono_jit_runtime_invoke (method=0x42c000, 
+obj=0xc0f88, params=0x0, exc=0x0) at mini.c:7779
+#10 0x0108f708 in mono_runtime_invoke (method=0x42c000, obj=0xc0f88, 
+params=0x0, exc=0x0) at object.c:757
+#11 0x0108d5d4 in mono_runtime_object_init (this=0xc0f88) at 
+object.c:58
+#12 0x010c0f5c in mono_exception_from_name_domain (domain=0xb8f00, 
+image=0x1805600, name_space=0x1137f68 "System", 
+name=0x114001c "OutOfMemoryException") at exception.c:49
+#13 0x010c0ea0 in mono_exception_from_name (image=0x1805600, 
+name_space=0x1137f68 "System", name=0x114001c "OutOfMemoryException") 
+at exception.c:32
+#14 0x010c241c in mono_runtime_init (domain=0xb8f00, 
+start_cb=0x102788c <mono_thread_start_cb>, attach_cb=0x1027974 
+<mono_thread_attach_cb>) at appdomain.c:97
+#15 0x0102c974 in mini_init (filename=0xbffffd6d "../server/xsp.exe") 
+at mini.c:8110
+#16 0x01059fc0 in mono_main (argc=2, argv=0xbffffca8) at driver.c:677
+#17 0x00001dc8 in main (argc=2, argv=0xbffffca8) at main.c:6
+(gdb)
+
+
+mint:
+
+GNU gdb 5.3-20030128 (Apple version gdb-309) (Thu Dec  4 15:41:30 GMT 
+2003)
+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 "powerpc-apple-darwin".
+Reading symbols for shared libraries ......... done
+(gdb) r ../server/xsp.exe 
+Starting 
+program: /Users/virtdev/portspace/virt_bin/mono_inst/bin/mint ../serve
+r/xsp.exe
+Reading symbols for shared libraries ++++++. done
+
+** (../server/xsp.exe:16943): WARNING **: The handle daemon didnt 
+start up properly
+
+** (../server/xsp.exe:16943): WARNING **: Failed to attach shared 
+memory! Falling back to non-shared handles
+Listening on port: 8080
+Listening on address: 0.0.0.0
+Root directory: /Users/virtdev/portspace/virt_bin/mono_cvs/xsp/test
+
+Program received signal EXC_BAD_ACCESS, Could not access memory.
+[Switching to process 16943 thread 0x2803]
+0x0048d544 in ves_exec_method_with_context (frame=0x0, 
+context=0xf06029b0) at interp.c:1607
+1607            frame->ex = NULL;
+(gdb) t a a bt
+
+Thread 4 (process 16943 thread 0x2803):
+#0  0x0048d544 in ves_exec_method_with_context (frame=0x0, 
+context=0xf06029b0) at interp.c:1607
+#1  0x0049d3c0 in ves_exec_method (frame=0x0) at interp.c:4855
+#2  0x01863458 in ?? ()
+#3  0x004e55e8 in start_wrapper (data=0x273d9c0) at threads.c:232
+#4  0x0053cdd0 in timed_thread_start_routine (args=0x273da20) at 
+timed-thread.c:115
+#5  0x900247e8 in _pthread_body ()
+
+Thread 3 (process 16943 thread 0x2303):
+#0  0x90002210 in pthread_mutex_lock ()
+#1  0x0052aad4 in EnterCriticalSection (section=0x57209c) at critical-
+sections.c:140
+#2  0x0051f3f8 in mono_get_method (image=0x1805600, token=100673831, 
+klass=0x0) at loader.c:765
+#3  0x0048ff60 in ves_exec_method_with_context (frame=0xf04004d0, 
+context=0xf0401bb0) at interp.c:1944
+#4  0x004907c4 in ves_exec_method_with_context (frame=0xf04008f0, 
+context=0xf0401bb0) at interp.c:2048
+#5  0x004907c4 in ves_exec_method_with_context (frame=0xf0400d00, 
+context=0xf0401bb0) at interp.c:2048
+#6  0x004907c4 in ves_exec_method_with_context (frame=0xf0401100, 
+context=0xf0401bb0) at interp.c:2048
+#7  0x004907c4 in ves_exec_method_with_context (frame=0xf04017f0, 
+context=0xf0401bb0) at interp.c:2048
+#8  0x004907c4 in ves_exec_method_with_context (frame=0xf0401b30, 
+context=0xf0401bb0) at interp.c:2048
+#9  0x0048d1dc in interp_mono_runtime_invoke (method=0x113f780, 
+obj=0x0, params=0xf0401c84, exc=0xf0401d5c) at interp.c:1504
+#10 0x004bc51c in mono_runtime_invoke (method=0x113f780, obj=0x0, 
+params=0xf0401c84, exc=0xf0401d5c) at object.c:757
+#11 0x004bd9b0 in mono_runtime_exec_main (method=0x113f780, 
+args=0xc4f78, exc=0xf0401d5c) at object.c:1239
+#12 0x004bd4e4 in mono_runtime_run_main (method=0x113f780, argc=0, 
+argv=0xbffffcb0, exc=0xf0401d5c) at object.c:1113
+#13 0x0049d508 in ves_exec (domain=0xb8f00, assembly=0x1133690, 
+argc=1, argv=0xbffffcac) at interp.c:4884
+#14 0x0049d8d8 in main_thread_handler (user_data=0xbffffb70) at 
+interp.c:5020
+#15 0x004e55e8 in start_wrapper (data=0x1132dc0) at threads.c:232
+#16 0x0053cdd0 in timed_thread_start_routine (args=0x1132c60) at 
+timed-thread.c:115
+#17 0x900247e8 in _pthread_body ()
+
+Thread 2 (process 16943 thread 0xf03):
+#0  0x90018ce8 in semaphore_timedwait_signal_trap ()
+#1  0x9000e888 in _pthread_cond_wait ()
+#2  0x005308c0 in _wapi_handle_wait_signal_handle (handle=0x3) at 
+handles.c:1446
+#3  0x0053d3f0 in WaitForSingleObject (handle=0x3, 
+timeout=4294967295) at wait.c:95
+#4  0x004d5f50 in finalizer_thread (unused=0x0) at gc.c:524
+#5  0x004e55e8 in start_wrapper (data=0x112f740) at threads.c:232
+#6  0x0053cdd0 in timed_thread_start_routine (args=0x112f750) at 
+timed-thread.c:115
+#7  0x900247e8 in _pthread_body ()
+
+Thread 1 (process 16943 local thread 0xd03):
+#0  0x90018ce8 in semaphore_timedwait_signal_trap ()
+#1  0x9000e888 in _pthread_cond_wait ()
+#2  0x005308c0 in _wapi_handle_wait_signal_handle (handle=0x8) at 
+handles.c:1446
+#3  0x0053d3f0 in WaitForSingleObject (handle=0x8, 
+timeout=4294967295) at wait.c:95
+#4  0x0053d698 in WaitForMultipleObjects (numobjects=1, 
+handles=0x1814800, waitall=1, timeout=4294967295) at wait.c:325
+#5  0x004e6f50 in wait_for_tids (wait=0x1814800, timeout=4294967295) 
+at threads.c:1095
+#6  0x004e719c in mono_thread_manage () at threads.c:1188
+#7  0x004bd8b4 in mono_runtime_exec_managed_code (domain=0xb8f00, 
+main_func=0x49d778 <main_thread_handler>, main_args=0xbffffb70) at 
+object.c:1212
+#8  0x0049e008 in mono_main (argc=2, argv=0xbffffca8) at interp.c:5163
+#9  0x00001dc8 in main (argc=2, argv=0xbffffca8) at main.c:7
+0x0048d544      1607            frame->ex = NULL;
+(gdb)
+