Bug 314468 (MONO57545) - PPC: mono/test pinvoke3.exe fails (crash in strlen)
Summary: PPC: mono/test pinvoke3.exe fails (crash in strlen)
Status: RESOLVED MOVED
Alias: MONO57545
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: unspecified
Hardware: Other Mac OS X 10.3
: P3 - Medium : Critical
Target Milestone: ---
Assignee: Paolo Molaro
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-24 01:27 UTC by Urs C. Muff
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 18:34:53 UTC


---- Reported by umuff@quark.com 2004-04-23 18:27:12 MST ----

(gdb) bt
#0  0x90006f70 in strlen ()
#1  0x01069c34 in mono_string_new (domain=0x97f18, text=0xc24bc195 <Address 
0xc24bc195 out of bounds>) at object.c:2040
#2  0x01069ce8 in mono_string_new_wrapper (text=0xc24bc195 <Address 0xc24bc195 out of 
bounds>) at object.c:2068
#3  0x002fab34 in offset 0x9c of method (wrapper managed-to-native) System.Object:
__icall_wrapper_mono_string_new_wrapper (intptr) (0x2faa98 0x2faba4)
#4  0x002faf2c in offset 0x164 of method (wrapper native-to-managed) Tests:
delegate_test_struct (Tests/SimpleStruct) (0x2fadc8 0x2fb0d4)
#5  0x0049adac in mono_test_marshal_delegate2 (delegate=0xc24bc195) at libtest.c:469
#6  0x002faa1c in ?? ()
#7  0x002fa718 in ?? ()
#8  0x002fa4d8 in ?? ()
#9  0x0101e1ec in mono_jit_runtime_invoke (method=0xc24bc195, obj=0x0, params=0x0, 
exc=0x0) at mini.c:8082
#10 0x01067488 in mono_runtime_invoke (method=0x53ccb0, obj=0x0, params=0x0, 
exc=0x0) at object.c:957
#11 0x01068dc8 in mono_runtime_invoke_array (method=0x53ccb0, obj=0x0, params=0x0, 
exc=0x0) at object.c:1529
#12 0x01073528 in ves_icall_InternalInvoke (method=0xace88, this=0x0, params=0x0) at 
icall.c:2147
#13 0x002fa414 in ?? ()
#14 0x002f97e0 in ?? ()
#15 0x002f96bc in ?? ()
#16 0x000f4c3c in ?? ()
#17 0x000f4478 in ?? ()
#18 0x000f43a0 in ?? ()
#19 0x000f4280 in ?? ()
#20 0x0101e1ec in mono_jit_runtime_invoke (method=0xc24bc195, obj=0x0, 
params=0xf0401ca4, exc=0x0) at mini.c:8082
#21 0x01067488 in mono_runtime_invoke (method=0x53bdf0, obj=0x0, params=0xf0401ca4, 
exc=0x0) at object.c:957
#22 0x0106891c in mono_runtime_exec_main (method=0x53bdf0, args=0xa0f60, exc=0x0) at 
object.c:1439
#23 0x01068450 in mono_runtime_run_main (method=0x53bdf0, argc=0, argv=0xbffffd54, 
exc=0x0) at object.c:1313
#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:19 MST ----

(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) 




---- Additional Comments From miguel@ximian.com 2004-05-25 15:58:19 MST ----

Update, this no longer crashes, but now we get:

mac$ mono pinvoke3.exe
test_0_marshal_struct_delegate failed: got 1, expected 0
Regression tests: 7 ran, 1 failed in Tests




---- Additional Comments From grompf@sublimeintervention.com 2004-10-15 13:40:16 MST ----



*** This bug has been marked as a duplicate of https://bugzilla.novell.com/show_bug.cgi?id=MONO57543 ***


This bug was marked DUPLICATE in the database it was moved from.
    Changing resolution to "MOVED"