[Mono-bugs] [Bug 414446] Pressing Ctrl+C in MessageBox causes appl exit

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Aug 5 05:36:53 EDT 2008


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

User andyhume32 at yahoo.co.uk added comment
https://bugzilla.novell.com/show_bug.cgi?id=414446#c3


Andy Hume <andyhume32 at yahoo.co.uk> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |andyhume32 at yahoo.co.uk




--- Comment #3 from Andy Hume <andyhume32 at yahoo.co.uk>  2008-08-05 03:36:52 MDT ---
[sorry for the long comment, I haven't time to shorten it]

I see the crash one time out of ten (say) on my 2.0-branch Win32 build on
WinXP, like:
[[
$ mono BCL/TypeConvFont_bug-414445.exe
Stacktrace:


This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
]]

Ctrl+C in a MessageBox copies the contents to the Clipboard (bug 325235).  On
Windows that uses COM which requires STA Threading, thus this (and all)
WinForms apps need "[STAThread]" on the Main method.  I suspected that some
fault was occuring in the native COM interface as that is missing.  However I
still can repro the crash after that attribute is applied.

When caught in a VS debugger I got:
[[
Unhandled exception at 0x7c911e58 in mono.exe: 0xC0000005: Accesss violation
reading location 0x47202c31.
]]
There was a stack trace too, but copy-and-paste was bust...


OK, so under windbg, on hitting Ctrl+four times I got the following output
[[
0:003> g
Heap corruption detected at 01D19E60
Heap corruption detected at 01F090E8
Heap corruption detected at 00BEA080
Heap corruption detected at 00BEA220
Heap corruption detected at 01D8B760
Heap corruption detected at 026E1AB8
Heap corruption detected at 026E1C58
Heap corruption detected at 01D105F0
Heap corruption detected at 0268D1C0
Heap corruption detected at 0268D360
]]


-- 
Configure bugmail: https://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