[Mono-bugs] [Bug 650546] New: MonoMac crash with a binding using a callback

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 1 15:21:34 EDT 2010


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

https://bugzilla.novell.com/show_bug.cgi?id=650546#c0


           Summary: MonoMac crash with a binding using a callback
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Mono.Cairo
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: me at ermau.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=398029)
 --> (http://bugzilla.novell.com/attachment.cgi?id=398029)
Test project

User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US)
AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.41 Safari/534.7

Calling NSEvent.AddGlobalMonitorForEventsMatchingMask (NSEventMask.KeyUp,
KeyUp); crashes, details in actual results.

Reproducible: Always

Steps to Reproduce:
1. Open the test project
2. Start the test project
3. Click "Start" on the application
Actual Results:  
Stacktrace:

  at (wrapper managed-to-native)
MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend_UInt32_IntPtr
(intptr,intptr,uint,intptr) <0x00003>
  at (wrapper managed-to-native)
MonoMac.ObjCRuntime.Messaging.IntPtr_objc_msgSend_UInt32_IntPtr
(intptr,intptr,uint,intptr) <0x00003>
  at MonoMac.AppKit.NSEvent.AddGlobalMonitorForEventsMatchingMask
(MonoMac.AppKit.NSEventMask,MonoMac.AppKit.GlobalEventHandler) <0x00077>
  at TestMacAudio.MainWindowController.Start (MonoMac.AppKit.NSButton)
<0x0003e>
  at (wrapper dynamic-method) object.8a54ff77-59e3-4226-b822-5db1461469b9
(MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.AppKit.NSButton)
<0x00013>
  at (wrapper native-to-managed) object.8a54ff77-59e3-4226-b822-5db1461469b9
(MonoMac.Foundation.NSObject,MonoMac.ObjCRuntime.Selector,MonoMac.AppKit.NSButton)
<0x000df>
  at (wrapper managed-to-native) MonoMac.AppKit.NSApplication.NSApplicationMain
(int,string[]) <0x00003>
  at (wrapper managed-to-native) MonoMac.AppKit.NSApplication.NSApplicationMain
(int,string[]) <0x00003>
  at MonoMac.AppKit.NSApplication.Main (string[]) <0x00015>
  at TestMacAudio.MainClass.Main (string[]) <0x00015>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object
(object,intptr,intptr,intptr) <0x00073>

Native stacktrace:

    0   TestKeyBindings                     0x000c8b62
mono_handle_native_sigsegv + 343
    1   TestKeyBindings                     0x00010446
mono_sigsegv_signal_handler + 306
    2   libSystem.B.dylib                   0x940fe1fb _sigtramp + 43
    3   ???                                 0xffffffff 0x0 + 4294967295
    4   AppKit                              0x94d31165 -[_NSGlobalEventObserver
initMatchingEvents:handler:] + 73
    5   AppKit                              0x94d32c59 +[NSEvent
addGlobalMonitorForEventsMatchingMask:handler:] + 81
    6   ???                                 0x007ff30e 0x0 + 8385294
    7   ???                                 0x007fec00 0x0 + 8383488
    8   ???                                 0x007fe497 0x0 + 8381591
    9   ???                                 0x007d3b64 0x0 + 8207204
    10  ???                                 0x007f8348 0x0 + 8356680
    11  AppKit                              0x949f2f1e -[NSApplication
sendAction:to:from:] + 112
    12  AppKit                              0x94ad2699 -[NSControl
sendAction:to:] + 108
    13  AppKit                              0x94ace146 -[NSCell
_sendActionFrom:] + 169
    14  AppKit                              0x94acd43d -[NSCell
trackMouse:inRect:ofView:untilMouseUp:] + 1808
    15  AppKit                              0x94b22a61 -[NSButtonCell
trackMouse:inRect:ofView:untilMouseUp:] + 524
    16  AppKit                              0x94acbe93 -[NSControl mouseDown:]
+ 812
    17  AppKit                              0x94ac9e9c -[NSWindow sendEvent:] +
5549
    18  AppKit                              0x949e2aff -[NSApplication
sendEvent:] + 6431
    19  AppKit                              0x949765bb -[NSApplication run] +
917
    20  AppKit                              0x9496e5ed NSApplicationMain + 574
    21  ???                                 0x007f8b1e 0x0 + 8358686
    22  ???                                 0x007f8a6e 0x0 + 8358510
    23  ???                                 0x004c6cf6 0x0 + 5008630
    24  ???                                 0x004c6d8c 0x0 + 5008780
    25  TestKeyBindings                     0x00010211 mono_jit_runtime_invoke
+ 1339
    26  TestKeyBindings                     0x001e09fd mono_runtime_invoke +
138
    27  TestKeyBindings                     0x001e2ba8 mono_runtime_exec_main +
669
    28  TestKeyBindings                     0x001e1f92 mono_runtime_run_main +
814
    29  TestKeyBindings                     0x0009c806 mono_jit_exec + 200
    30  TestKeyBindings                     0x0009ca40 main_thread_handler +
558
    31  TestKeyBindings                     0x0009edad mono_main + 7631
    32  TestKeyBindings                     0x00003f99 mono_main_with_options +
539
    33  TestKeyBindings                     0x00004020 main + 49
    34  TestKeyBindings                     0x00003d52 start + 54
    35  ???                                 0x00000002 0x0 + 2

Debug info from gdb:

/tmp/mono-gdb-commands.fwjRHd:1: Error in sourced command file:
unable to debug self

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

The application was terminated by a signal: SIGIOT

Expected Results:  
Added a global monitor to listen for KeyUp.

-- 
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