[Mono-bugs] [Bug 57545][Cri] Changed - mono/test pinvoke3.exe fails (crash in strlen)

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Tue, 11 May 2004 10:17:19 -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 umuff@quark.com.

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

--- shadow/57545	2004-04-23 18:28:05.000000000 -0400
+++ shadow/57545.tmp.19963	2004-05-11 10:17:19.000000000 -0400
@@ -56,6 +56,135 @@
 #24 0x01038df4 in mono_jit_exec (domain=0xc24bc195, assembly=0x1, argc=1, 
 argv=0xbffffd50) at driver.c:466
 #25 0x01038eb4 in main_thread_handler (user_data=0xc24bc195) at driver.c:500
 #26 0x0109254c in start_wrapper (data=0x53b5b0) at threads.c:239
 #27 0x010eda88 in timed_thread_start_routine (args=0x53b450) at timed-thread.c:129
 #28 0x900247e8 in _pthread_body ()
+
+------- Additional Comments From umuff@quark.com  2004-05-11 10:17 -------
+(gdb) r
+Starting program: /usr/local/mono/bin/mono --debug -v --trace --breakonex 
+pinvoke3.exe
+Reading symbols for shared libraries ++++++++. done
+Method (wrapper managed-to-native) System.Object:__icall_wrapper_mono_ldftn (intptr) 
+emitted at 0xc9918 to 0xc9a24 [pinvoke3.exe]
+Method (wrapper managed-to-native) System.Object:
+__icall_wrapper_mono_thread_get_pending_exception () emitted at 0xc9a28 to 0xc9b2c 
+[pinvoke3.exe]
+Method (wrapper runtime-invoke) System.OutOfMemoryException:.ctor 
+(object,intptr,intptr) emitted at 0xc9b30 to 0xc9c40 [pinvoke3.exe]
+Method System.OutOfMemoryException:.ctor (string) emitted at 0xc9c90 to 0xc9ce8 
+[pinvoke3.exe]
+Method System.SystemException:.ctor (string) emitted at 0xc9dc8 to 0xc9e20 
+[pinvoke3.exe]
+Method System.Exception:.ctor (string) emitted at 0xc9eb8 to 0xc9f6c [pinvoke3.exe]
+Method System.Object:.ctor () emitted at 0xca000 to 0xca030 [pinvoke3.exe]
+Method System.MonoType:get_FullName () emitted at 0xca038 to 0xca07c [pinvoke3.exe]
+Method (wrapper managed-to-native) System.MonoType:getFullName () emitted at 
+0xca110 to 0xca21c [pinvoke3.exe]
+Method System.Exception:set_HResult (int) emitted at 0xca220 to 0xca260 [pinvoke3.exe]
+Method (wrapper runtime-invoke) System.NullReferenceException:.ctor 
+(object,intptr,intptr) emitted at 0xca268 to 0xca378 [pinvoke3.exe]
+Method System.NullReferenceException:.ctor (string) emitted at 0xca3c8 to 0xca420 
+[pinvoke3.exe]
+Method (wrapper runtime-invoke) System.StackOverflowException:.ctor 
+(object,intptr,intptr) emitted at 0xca428 to 0xca538 [pinvoke3.exe]
+Method System.StackOverflowException:.ctor (string) emitted at 0xca588 to 0xca5c8 
+[pinvoke3.exe]
+Method (wrapper runtime-invoke) System.AppDomain:DoAssemblyLoad 
+(object,intptr,intptr) emitted at 0xcad68 to 0xcae78 [pinvoke3.exe]
+Method (wrapper managed-to-native) System.Object:
+__icall_wrapper_mono_object_new_fast (intptr) emitted at 0xcaec8 to 0xcafd4 
+[pinvoke3.exe]
+Method System.AppDomain:DoAssemblyLoad (System.Reflection.Assembly) emitted at 
+0xcafd8 to 0xcb08c [pinvoke3.exe]
+Method System.MulticastDelegate:op_Equality 
+(System.MulticastDelegate,System.MulticastDelegate) emitted at 0xcb168 to 0xcb1e8 
+[pinvoke3.exe]
+Method (wrapper runtime-invoke) Tests:Main (object,intptr,intptr) emitted at 0x585240 to 
+0x58538c [pinvoke3.exe]
+ENTER: (wrapper runtime-invoke) Tests:Main (object,intptr,intptr)() ip: 0x105c16c
+Method Tests:Main () emitted at 0x5853d8 to 0x585454 [pinvoke3.exe]
+. ENTER: Tests:Main ()() ip: 0x5852b4
+Method TestDriver:RunTests (System.Type) emitted at 0x5854f8 to 0x585578 
+[pinvoke3.exe]
+. . ENTER: TestDriver:RunTests (System.Type)() ip: 0x585414
+Method (wrapper managed-to-native) System.Object:__icall_wrapper_helper_stelem_ref 
+(System.Array,int,object) emitted at 0x585618 to 0x585764 [pinvoke3.exe]
+Method (wrapper managed-to-native) System.Object:
+__icall_wrapper_mono_array_new_specific (intptr,int) emitted at 0x585768 to 0x5858bc 
+[pinvoke3.exe]
+Method TestDriver:RunTests (System.Type,string[]) emitted at 0x5858c0 to 0x586090 
+[pinvoke3.exe]
+. . . ENTER: TestDriver:RunTests (System.Type,string[])() ip: 0x585538
+Method System.DateTime:get_Now () emitted at 0x586428 to 0x5864f8 [pinvoke3.exe]
+Method (wrapper runtime-invoke) System.DateTime:.cctor (object,intptr,intptr) emitted at 
+0x586c18 to 0x586d48 [pinvoke3.exe]
+. . . . ENTER: (wrapper runtime-invoke) System.DateTime:.cctor (object,intptr,intptr)() ip: 
+0x1059d78
+Method System.DateTime:.cctor () emitted at 0x586d98 to 0x587088 [pinvoke3.exe]
+. . . . . ENTER: System.DateTime:.cctor ()() ip: 0x586c8c
+Method System.DateTime:.ctor (bool,long) emitted at 0x5872e8 to 0x5875c0 
+[pinvoke3.exe]
+. . . . . . ENTER: System.DateTime:.ctor (bool,long)() ip: 0x586de8
+Method System.TimeSpan:.ctor (long) emitted at 0x587788 to 0x58781c [pinvoke3.exe]
+Method (wrapper runtime-invoke) System.TimeSpan:.cctor (object,intptr,intptr) emitted at 
+0x587940 to 0x587a70 [pinvoke3.exe]
+. . . . . . . ENTER: (wrapper runtime-invoke) System.TimeSpan:.cctor (object,intptr,intptr)() 
+ip: 0x1059d78
+Method System.TimeSpan:.cctor () emitted at 0x587ac0 to 0x587b68 [pinvoke3.exe]
+. . . . . . . . ENTER: System.TimeSpan:.cctor ()() ip: 0x5879b4
+. . . . . . . . . ENTER: System.TimeSpan:.ctor (long)() ip: 0x587b08
+. . . . . . . . . LEAVE: System.TimeSpan:.ctor (long)
+. . . . . . . . . ENTER: System.TimeSpan:.ctor (long)() ip: 0x587b20
+. . . . . . . . . LEAVE: System.TimeSpan:.ctor (long)
+. . . . . . . . . ENTER: System.TimeSpan:.ctor (long)() ip: 0x587b38
+. . . . . . . . . LEAVE: System.TimeSpan:.ctor (long)
+. . . . . . . . LEAVE: System.TimeSpan:.cctor ()
+. . . . . . . LEAVE: (wrapper runtime-invoke) System.TimeSpan:.cctor 
+(object,intptr,intptr)[OBJECT:0x0]
+. . . . . . . ENTER: System.TimeSpan:.ctor (long)() ip: 0x587354
+. . . . . . . LEAVE: System.TimeSpan:.ctor (long)
+Method System.TimeSpan:get_Ticks () emitted at 0x587b70 to 0x587c04 [pinvoke3.exe]
+. . . . . . . ENTER: System.TimeSpan:get_Ticks ()() ip: 0x587438
+. . . . . . . LEAVE: System.TimeSpan:get_Ticks ()lresult=0x2bca2875f4373fff
+Method System.DateTime:get_Ticks () emitted at 0x587c08 to 0x587cb4 [pinvoke3.exe]
+. . . . . . . ENTER: System.DateTime:get_Ticks ()() ip: 0x587490
+. . . . . . . . ENTER: System.TimeSpan:get_Ticks ()() ip: 0x587c48
+. . . . . . . . LEAVE: System.TimeSpan:get_Ticks ()lresult=0x               0
+. . . . . . . LEAVE: System.DateTime:get_Ticks ()lresult=0x               0
+. . . . . . . ENTER: System.TimeSpan:get_Ticks ()() ip: 0x5874d4
+. . . . . . . LEAVE: System.TimeSpan:get_Ticks ()lresult=0x2bca2875f4373fff
+. . . . . . . ENTER: System.DateTime:get_Ticks ()() ip: 0x58752c
+. . . . . . . . ENTER: System.TimeSpan:get_Ticks ()() ip: 0x587c48
+. . . . . . . . LEAVE: System.TimeSpan:get_Ticks ()lresult=0x2bca2875f4373fff
+. . . . . . . LEAVE: System.DateTime:get_Ticks ()lresult=0x               0
+. . . . . . LEAVE: System.DateTime:.ctor (bool,long)
+. . . . . . ENTER: System.DateTime:.ctor (bool,long)() ip: 0x586e00
+. . . . . . . ENTER: System.TimeSpan:.ctor (long)() ip: 0x587354
+. . . . . . . LEAVE: System.TimeSpan:.ctor (long)
+. . . . . . . ENTER: System.TimeSpan:get_Ticks ()() ip: 0x587438
+. . . . . . . LEAVE: System.TimeSpan:get_Ticks ()lresult=0x               0
+. . . . . . . ENTER: System.DateTime:get_Ticks ()() ip: 0x587490
+. . . . . . . . ENTER: System.TimeSpan:get_Ticks ()() ip: 0x587c48
+. . . . . . . . LEAVE: System.TimeSpan:get_Ticks ()lresult=0x               0
+. . . . . . . LEAVE: System.DateTime:get_Ticks ()lresult=0x               0
+. . . . . . . ENTER: System.TimeSpan:get_Ticks ()() ip: 0x5874d4
+. . . . . . . LEAVE: System.TimeSpan:get_Ticks ()lresult=0x               0
+. . . . . . . ENTER: System.DateTime:get_Ticks ()() ip: 0x58752c
+. . . . . . . . ENTER: System.TimeSpan:get_Ticks ()() ip: 0x587c48
+. . . . . . . . LEAVE: System.TimeSpan:get_Ticks ()lresult=0x2bca2875f4373fff
+. . . . . . . LEAVE: System.DateTime:get_Ticks ()lresult=0x               0
+. . . . . . LEAVE: System.DateTime:.ctor (bool,long)
+. . . . . . ENTER: (wrapper managed-to-native) System.Object:
+__icall_wrapper_mono_array_new_specific (intptr,int)() ip: 0x586e10
+. . . . . . LEAVE: (wrapper managed-to-native) System.Object:
+__icall_wrapper_mono_array_new_specific (intptr,int)[System.String[]:0x33e10]
+. . . . . . ENTER: (wrapper managed-to-native) System.Object:
+__icall_wrapper_helper_stelem_ref (System.Array,int,object)() ip: 0x586e30
+
+Program received signal EXC_BAD_ACCESS, Could not access memory.
+[Switching to process 17034 thread 0x2403]
+helper_stelem_ref (array=0x0, index=0, val=0x44ad38) at jit-icalls.c:80
+80              if (index >= array->max_length)
+(gdb) 
+