# Using MacOS X 10.7 and LO 4.3 for hardware reasons. # LO 4.3 had tdf#49853 already. MyMac:core peter$ git checkout libreoffice-4-3 MyMac:core peter$ git rev-parse HEAD 2d13cf60ecdab83997c9cd7275c799ddd96617cd MyMac:core peter$ git branch * libreoffice-4-3 # I'm using build-nocheck, because ooxmlimport and ooxmlexport unit # tests are always failing in my setup (not related to this bug). MyMac:core peter$ ./autogen.sh MyMac:core peter$ make build-nocheck # Debug build of VCL module: MyMac:core peter$ ./autogen.sh --enable-debug --enable-selective-debuginfo="vcl/" MyMac:core peter$ make vcl.clean MyMac:core peter$ make vcl debug=t MyMac:core peter$ make build-nocheck # Not sure if necessary # Start Calc: MyMac:core peter$ instdir/LibreOfficeDev.app/Contents/MacOS/soffice --calc # Press Cmd+F to open Find box. # Start the debugger from another terminal window: MyMac:core peter$ lldb (lldb) process attach --pid 48687 Process 48687 stopped Executable module set to "/Users/peter/lo/core/instdir/LibreOfficeDev.app/Contents/MacOS/soffice". Architecture set to: i386-apple-macosx. (lldb) breakpoint set -M KeyCode::GetFunction Breakpoint 1: where = libvcllo.dylib`KeyCode::GetFunction() const + 17 at keycod.cxx:104, address = 0x019b1be1 (lldb) thread continue Resuming thread 0x1f03 in process 48687 Process 48687 resuming # In Calc, pressing Cmd+V does not trigger the breakpoint. # Pressing the letter 'a' does trigger the breakpoint: Process 48687 stopped * thread #1: tid = 0x1f03, 0x019b1be1 libvcllo.dylib`KeyCode::GetFunction(this=0xbfffdae0) const + 17 at keycod.cxx:104, stop reason = breakpoint 1.1 frame #0: 0x019b1be1 libvcllo.dylib`KeyCode::GetFunction(this=0xbfffdae0) const + 17 at keycod.cxx:104 101 102 KeyFuncType KeyCode::GetFunction() const 103 { -> 104 if ( eFunc != KEYFUNC_DONTKNOW ) 105 return eFunc; 106 107 sal_uInt16 nCompCode = GetModifier() | GetCode(); (lldb) thread backtrace * thread #1: tid = 0x1f03, 0x019b1be1 libvcllo.dylib`KeyCode::GetFunction(this=0xbfffdae0) const + 17 at keycod.cxx:104, stop reason = breakpoint 1.1 frame #0: 0x019b1be1 libvcllo.dylib`KeyCode::GetFunction(this=0xbfffdae0) const + 17 at keycod.cxx:104 frame #1: 0x01aea0ab libvcllo.dylib`Edit::ImplHandleKeyEvent(this=0x0f7cb470, rKEvt=0xbfffdae0) + 91 at edit.cxx:1413 frame #2: 0x01aeba44 libvcllo.dylib`Edit::KeyInput(this=0x0f7cb470, rKEvt=0xbfffdae0) + 148 at edit.cxx:1745 frame #3: 0x01ab57ac libvcllo.dylib`ImplHandleKey(pWindow=0x0a5df8a0, nSVEvent=4, nKeyCode=512, nCharCode=97, nRepeat=0, bForward=true) + 1980 at winproc.cxx:1034 frame #4: 0x01ab47de libvcllo.dylib`ImplWindowFrameProc(pWindow=0x0a5df8a0, nEvent=5, pEvent=0xbfffddc0) + 814 at winproc.cxx:2323 frame #5: 0x01fa0b66 libvcllo.dylib`SalFrame::CallCallback(this=0x0a5de370, nEvent=5, pEvent=0xbfffddc0) const + 86 at salframe.hxx:243 frame #6: 0x0202c9fb libvcllo.dylib`-[SalFrameView sendKeyToFrameDirect:character:modifiers:](self=0x0a5e2630, _cmd=0x020f412f, nKeyCode=512, aChar=97, nMod=256) + 235 at salframeview.mm:1511 frame #7: 0x0202c8c4 libvcllo.dylib`-[SalFrameView sendKeyInputAndReleaseToFrame:character:modifiers:](self=0x0a5e2630, _cmd=0x020f40f1, nKeyCode=512, aChar=97, nMod=256) + 116 at salframeview.mm:1495 frame #8: 0x0202aa07 libvcllo.dylib`-[SalFrameView insertText:replacementRange:](self=0x0a5e2630, _cmd=0x92262d20, aString=0x183c5520) + 1079 at salframeview.mm:1085 frame #9: 0x920e6903 AppKit`-[NSTextInputContext insertText:replacementRange:] + 430 frame #10: 0x920e3fdd AppKit`-[NSTextInputContext handleTSMEvent:] + 2654 frame #11: 0x920e32aa AppKit`_NSTSMEventHandler + 214 frame #12: 0x9beecc0c HIToolbox`_InvokeEventHandlerUPP(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*, long (*)(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)) + 36 frame #13: 0x9bd68313 HIToolbox`DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1602 frame #14: 0x9bd67790 HIToolbox`SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) + 482 frame #15: 0x9bd7c571 HIToolbox`SendEventToEventTarget + 76 frame #16: 0x9bff066e HIToolbox`SendTSMEvent + 74 frame #17: 0x9bff0f69 HIToolbox`SendUnicodeTextAEToUnicodeDoc + 753 frame #18: 0x9bfefe86 HIToolbox`TSMKeyEvent + 1007 frame #19: 0x9bd91061 HIToolbox`TSMProcessRawKeyEvent + 2795 frame #20: 0x920e715a AppKit`-[NSTextInputContext handleEvent:] + 1257 frame #21: 0x91f8a57e AppKit`-[NSView interpretKeyEvents:] + 220 frame #22: 0x0202a1fa libvcllo.dylib`-[SalFrameView keyDown:](self=0x0a5e2630, _cmd=0x9221ec94, pEvent=0x183cd540) + 394 at salframeview.mm:973 frame #23: 0x91951aeb AppKit`-[NSWindow sendEvent:] + 10891 frame #24: 0x918e9f77 AppKit`-[NSApplication sendEvent:] + 4788 frame #25: 0x0201272b libvcllo.dylib`-[VCL_NSApplication sendEvent:](self=0x05809f00, _cmd=0x922cba08, pEvent=0x183cd540) + 2123 at vclnsapp.mm:206 frame #26: 0x01f9e460 libvcllo.dylib`AquaSalInstance::Yield(this=0x0582b440, bWait=true, bHandleAllCurrentEvents=false) + 1280 at salinst.cxx:640 frame #27: 0x01ebd9ae libvcllo.dylib`ImplYield(i_bWait=true, i_bAllEvents=false) + 206 at svapp.cxx:359 frame #28: 0x01eb923a libvcllo.dylib`Application::Yield() + 42 at svapp.cxx:391 frame #29: 0x01eb91f7 libvcllo.dylib`Application::Execute() + 55 at svapp.cxx:340 frame #30: 0x00065617 libsofficeapp.dylib`desktop::Desktop::Main() + 7143 frame #31: 0x01ec1c71 libvcllo.dylib`ImplSVMain() + 65 at svmain.cxx:155 frame #32: 0x01f9d9f6 libvcllo.dylib`AquaSalInstance::handleAppDefinedEvent(pEvent=0x0582b4a0) + 262 at salinst.cxx:466 frame #33: 0x02011f3f libvcllo.dylib`-[VCL_NSApplication sendEvent:](self=0x05809f00, _cmd=0x922cba08, pEvent=0x0582b4a0) + 95 at vclnsapp.mm:82 frame #34: 0x9187bb21 AppKit`-[NSApplication run] + 1007 frame #35: 0x91b0cac5 AppKit`NSApplicationMain + 1054 frame #36: 0x01f9c828 libvcllo.dylib`ImplSVMainHook(pnInit=0xbffffa70) + 440 at salinst.cxx:205 frame #37: 0x01ec310e libvcllo.dylib`SVMain() + 30 at svmain.cxx:185 frame #38: 0x000900ed libsofficeapp.dylib`soffice_main + 237 frame #39: 0x00001f4e soffice`main + 30