[Mono-bugs] [Bug 442027] Loop causes unmanaged crash instead of StackOverFlow managed exception

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 21 12:31:50 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=442027

User aaragoneses at novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=442027#c8


Andrés G. Aragoneses <aaragoneses at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |




--- Comment #8 from Andrés G. Aragoneses <aaragoneses at novell.com>  2009-05-21 10:31:49 MDT ---
Hugh, forgot about comment#3.

Actually, running the above repro with --trace I get:


1f60[TestTest.Program Test.exe], )
[0xb7cd4900: 289.60612 261761] ENTER: TestTest.Program:OnRefStateSet
()(this:0x41f60[TestTest.Program Test.exe], )
[0xb7cd4900: 289.60613 261762] ENTER: TestTest.Program:OnRefStateSet
()(this:0x41f60[TestTest.Program Test.exe], )
[0xb7cd4900: 289.60617 261763] ENTER: TestTest.Program:OnRefStateSet
()(this:0x41f60[TestTest.Program Test.exe], )
[0xb7cd4900: 289.60618 261764] ENTER: TestTest.Program:OnRefStateSet
()(this:0x41f60[TestTest.Program Test.exe], )
[0xb7cd4900: 289.60619 261765] ENTER: TestTest.Program:OnRefStateSet
()(this:0x41f60[TestTest.Program Test.exe], )
[0xb7cd4900: 289.60620 261766] ENTER: TestTest.Program:OnRefStateSet
()(this:0x41f60[TestTest.Program Test.exe], )
[0xb7cd4900: 289.60621 261767] ENTER: TestTest.Program:OnRefStateSet
()(this:0x41f60[TestTest.Program Test.exe], )
Stack overflow: IP: 0xb7d101fc, fault addr: 0xbf683ff8
At Unmanaged

Which I guess is the bug?

Anyway, running the normal StackOverflow repro (without the unmanaged function
scenario) I also get the bug.

With trace:

[0xb7db4900: 275.45391 523308] ENTER: TestTest.Program:Main ()()
[0xb7db4900: 275.45392 523309] ENTER: TestTest.Program:Main ()()
[0xb7db4900: 275.45393 523310] ENTER: TestTest.Program:Main ()()
[0xb7db4900: 275.45394 523311] ENTER: TestTest.Program:Main ()()
[0xb7db4900: 275.45395 523312] ENTER: TestTest.Program:Main ()()
[0xb7db4900: 275.45396 523313] ENTER: TestTest.Program:Main ()()
[0xb7db4900: 275.45397 523314] ENTER: TestTest.Program:Main ()()
[0xb7db4900: 275.45398 523315] ENTER: TestTest.Program:Main ()()
[0xb7db4900: 275.45399 523316] ENTER: TestTest.Program:Main ()()
[0xb7db4900: 275.45400 523317] ENTER: TestTest.Program:Main ()()
[0xb7db4900: 275.45401 523318] ENTER: TestTest.Program:Main ()()
Stack overflow: IP: 0xb7df01fc, fault addr: 0xbf063ff8
At Unmanaged


Without trace: I get the correct exception but some debug information is
written in the console which I guess is not needed, right?:

Stack overflow in unmanaged: IP: 0xb7d65f54, fault addr: 0xbf4ddfd8
Stack overflow in unmanaged: IP: 0x8074a88, fault addr: 0xbf4dddf8
Stack overflow in unmanaged: IP: 0xb7d65f00, fault addr: 0xbf4ddf00
Stack overflow in unmanaged: IP: 0x81d1a89, fault addr: 0xbf4dce98
Stack overflow in unmanaged: IP: 0xb7e99509, fault addr: 0xbf4ddffc
Stack overflow in unmanaged: IP: 0xb7d54377, fault addr: 0xbf4ddffc
Stack overflow in unmanaged: IP: 0x8074a88, fault addr: 0xbf4ddea8
Stack overflow in unmanaged: IP: 0xb7d65f00, fault addr: 0xbf4ddae0
Stack overflow in unmanaged: IP: 0x818a783, fault addr: 0xbf4ddffc
Stack overflow in unmanaged: IP: 0x819996f, fault addr: 0xbf4ddffc
Stack overflow in unmanaged: IP: 0xb7d54377, fault addr: 0xbf4ddffc
Stack overflow in unmanaged: IP: 0xb7e99509, fault addr: 0xbf4ddfcc
Stack overflow in unmanaged: IP: 0xb7e99509, fault addr: 0xbf4ddfcc
Stack overflow in unmanaged: IP: 0x81737a4, fault addr: 0xbf4ddeac
Stack overflow in unmanaged: IP: 0xb7d65f00, fault addr: 0xbf4ddb10
Stack overflow in unmanaged: IP: 0x8103645, fault addr: 0xbf4ddffc
Stack overflow in unmanaged: IP: 0xb7e99509, fault addr: 0xbf4ddfcc
Stack overflow in unmanaged: IP: 0x819996c, fault addr: 0xbf4ddfd0
Stack overflow in unmanaged: IP: 0xb7e99505, fault addr: 0xbf4ddffc
Stack overflow in unmanaged: IP: 0xb7d96129, fault addr: 0xbf4ddfc8
Stack overflow in unmanaged: IP: 0xb7f38b9c, fault addr: 0xbf4ddfbc
Stack overflow in unmanaged: IP: 0xb7e99509, fault addr: 0xbf4ddfdc
Stack overflow in unmanaged: IP: 0x8074a88, fault addr: 0xbf4ddf78
Stack overflow in unmanaged: IP: 0x8074a88, fault addr: 0xbf4ddec8
Stack overflow in unmanaged: IP: 0x8074a88, fault addr: 0xbf4ddec8
Stack overflow in unmanaged: IP: 0x8074a88, fault addr: 0xbf4dded8
Stack overflow in unmanaged: IP: 0x8074a88, fault addr: 0xbf4dde88
Stack overflow in unmanaged: IP: 0x8074a88, fault addr: 0xbf4dded8
Stack overflow in unmanaged: IP: 0x8074a88, fault addr: 0xbf4dded8
Stack overflow in unmanaged: IP: 0x81d1ac5, fault addr: 0xbf4ddf4c
Stack overflow in unmanaged: IP: 0x8074a88, fault addr: 0xbf4dded8
Stack overflow in unmanaged: IP: 0xb7f97e4c, fault addr: 0xbf4ddffc
Stack overflow in unmanaged: IP: 0xb7d65f54, fault addr: 0xbf4dcff8
Stack overflow in unmanaged: IP: 0xb7f38b9c, fault addr: 0xbf4ddfbc
Stack overflow in unmanaged: IP: 0x8103fce, fault addr: 0xbf4ddffc
Stack overflow in unmanaged: IP: 0x816666c, fault addr: 0xbf4ddffc
Stack overflow in unmanaged: IP: 0x819996c, fault addr: 0xbf4ddfc0
Stack overflow in unmanaged: IP: 0x81737a4, fault addr: 0xbf4ddd3c
Stack overflow in unmanaged: IP: 0x819996c, fault addr: 0xbf4ddfc0
Stack overflow in unmanaged: IP: 0x81d1a89, fault addr: 0xbf4dcfe8
Stack overflow in unmanaged: IP: 0x81d1a89, fault addr: 0xbf4dbe68
Stack overflow in unmanaged: IP: 0xb7f38b9c, fault addr: 0xbf4ddfbc

Unhandled Exception: System.StackOverflowException: The requested operation
caused a stack overflow.
  at (wrapper managed-to-native) System.MonoType:getFullName (bool,bool)
  at System.MonoType.ToString () [0x00000] 
  at System.Exception.get_ClassName () [0x00000] 
  at System.Exception.ToString () [0x00000]

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


More information about the mono-bugs mailing list