[Mono-bugs] [Bug 319921] [PPC] StackFrame is invalid on Mono but not in Windows

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jun 5 02:25:30 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=319921

User macro at hotmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=319921#c1





--- Comment #1 from piss off <macro at hotmail.com>  2008-06-05 00:25:30 MDT ---
Created an attachment (id=220293)
 --> (https://bugzilla.novell.com/attachment.cgi?id=220293)
Additional testcase demonstrating the bug

Not only does StackFrame() not return the right frame, it triggers an exception
if called high enough up the stack.  Both cases are demonstrated in the
attached testcase, which works properly on gentoo x86 but breaks on gentoo ppc.

My feeling is that the StackFrame mechanism should work reliably, period.  I've
been using it for a long time on MS frameworks, and on Mono (x86 and ppc), and
it's always worked, regardless of optimisation levels etc.


x86 results:
Calling A()
Result 'B', should be 'B'
Calling B()
Result 'B', should be 'B'


PPC results:
Calling A()
Result 'Main', should be 'B'
Calling B()

Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
  at Test.Test.B () [0x00000] 
  at Test.Test.Main () [0x00000] 


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list