Bugzilla – Bug 314467
[PATCH] PPC: mono/test pinvoke2.exe fails
Last modified: 2007-09-15 21:24:46 UTC
---- Reported by umuff@quark.com 2004-04-23 18:06:29 MST ---- Program received signal: "EXC_BAD_ACCESS". (gdb) bt #0 0x002f5ce4 in ?? () #1 0x002f5c2c in ?? () #2 0x002f5818 in ?? () #3 0x0101e1ec in mono_jit_runtime_invoke (method=0x3000038, obj=0x0, params=0x0, exc=0x0) at mini.c:8082 #4 0x01067488 in mono_runtime_invoke (method=0x53d2d0, obj=0x0, params=0x0, exc=0x0) at object.c:957 #5 0x01068dc8 in mono_runtime_invoke_array (method=0x53d2d0, obj=0x0, params=0x0, exc=0x0) at object.c:1529 #6 0x01073528 in ves_icall_InternalInvoke (method=0xacd08, this=0x0, params=0x0) at icall.c:2147 #7 0x002f5414 in ?? () #8 0x002f47e0 in ?? () #9 0x002f46bc in ?? () #10 0x000f4c3c in ?? () #11 0x000f4478 in ?? () #12 0x000f43a0 in ?? () #13 0x000f4280 in ?? () #14 0x0101e1ec in mono_jit_runtime_invoke (method=0x3000038, obj=0x0, params=0xf0401ca4, exc=0x0) at mini.c:8082 #15 0x01067488 in mono_runtime_invoke (method=0x53bdf0, obj=0x0, params=0xf0401ca4, exc=0x0) at object.c:957 #16 0x0106891c in mono_runtime_exec_main (method=0x53bdf0, args=0xa0f60, exc=0x0) at object.c:1439 #17 0x01068450 in mono_runtime_run_main (method=0x53bdf0, argc=0, argv=0xbffffd54, exc=0x0) at object.c:1313 #18 0x01038df4 in mono_jit_exec (domain=0x3000038, assembly=0x20, argc=1, argv=0xbffffd50) at driver.c:466 #19 0x01038eb4 in main_thread_handler (user_data=0x3000038) at driver.c:500 #20 0x0109254c in start_wrapper (data=0x53b5b0) at threads.c:239 #21 0x010eda88 in timed_thread_start_routine (args=0x53b450) at timed-thread.c:129 #22 0x900247e8 in _pthread_body () (gdb) p print_method_from_ip(0x002f5ce4) IP 0x2f5ce4 at offset 0x22c of method (wrapper managed-to-native) Tests: mono_test_marshal_char_array (char[]) (0x2f5ab8 0x2f5d74) ---- Additional Comments From bmaurer@users.sf.net 2004-04-26 09:29:45 MST ---- This fails on x86 too, so it is probably not implemented ---- Additional Comments From bmaurer@users.sf.net 2004-04-26 09:32:48 MST ---- well, the failure on ppc is different than x86. But, better to report bugs on tests that work on x86 :-). ---- Additional Comments From massi@ximian.com 2004-05-21 07:50:19 MST ---- It works for me on x86! Could somebody re-test it om ppc, too? ---- Additional Comments From grompf@sublimeintervention.com 2004-10-14 23:30:52 MST ---- junglist:~/Documents/Development/mono/CVS/Sources/mono/mono/tests plasma$ mono pinvoke2.exe test_0_marshal_struct failed: got 1, expected 0 Regression tests: 42 ran, 1 failed in Tests junglist:~/Documents/Development/mono/CVS/Sources/mono/mono/tests plasma$ echo $? 1 -kangaroo ---- Additional Comments From grompf@sublimeintervention.com 2004-10-15 01:50:13 MST ---- lupus, I've attached a patch that resolves this issue on ppc. Included in this patch is a minor optimization for OP_MUL_IMM which will save a temp using of ppc_r11 for imm16's. Output of runtime tests (mono/tests) without patch: Failed tests: pinvoke2.exe pinvoke3.exe pinvoke11.exe cattr-object.exe appdomain-unload.exe vararg.exe With patch: Failed tests: pinvoke11.exe cattr-object.exe appdomain-unload.exe vararg.exe This patch also fixed #57545 (dupe of this?) Ok to commit? -kangaroo ---- Additional Comments From grompf@sublimeintervention.com 2004-10-15 01:51:18 MST ---- Created an attachment (id=165920) proposed patch ---- Additional Comments From lupus@ximian.com 2004-10-15 07:16:40 MST ---- Thanks for the patch, please commit to both branches. ---- Additional Comments From grompf@sublimeintervention.com 2004-10-15 13:39:55 MST ---- commited to both branches. ---- Additional Comments From grompf@sublimeintervention.com 2004-10-15 13:40:16 MST ---- *** https://bugzilla.novell.com/show_bug.cgi?id=MONO57545 has been marked as a duplicate of this bug. *** Imported an attachment (id=165920) Unknown operating system other. Setting to default OS "Other".