[Mono-bugs] [Bug 58279][Nor] Changed - 0.91: PowerPC JIT SIGILLs when building libs

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 14 May 2004 12:55:56 -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 lupus@ximian.com.

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

--- shadow/58279	2004-05-14 12:40:33.000000000 -0400
+++ shadow/58279.tmp.8446	2004-05-14 12:55:56.000000000 -0400
@@ -409,6 +409,15 @@
 thread, so I can't see where the incriminated instruction resides. I 
 tried qemu-ppc, but it's not good enough to run mono yet. Any other 
 suggestions on how it may be possible to find out the address? 
  
 Lowering MIN_CACHE_LINE did not help, nor did trying a CVS snapshot; 
 same problem there. 
+
+------- Additional Comments From lupus@ximian.com  2004-05-14 12:55 -------
+Uhm, if gdb doesn't work on your system, it's a bit hard.
+You may change sigill_signal_handler() in mini/mini.c
+to print to a file the contents of the ucontext. You need to
+cast the ctx pointer to a struct ucontext *uc and then dump the
+registers inside the uc->uc_mcontext.uc_regs->gregs array.
+Take the value of uc->uc_mcontext.uc_regs->gregs [PT_NIP]
+and dump also the memory at that address (+/- about 64 bytes).