#3017 Tk-Cocoa crashes on copy operation in text widget

obsolete: 8.6b3
closed
Jeffrey Hobbs
5
2012-09-28
2012-09-28
Torsten Berg
No

Make a text widget in a fresh Wish 8.6b3 in Tk-Cocoa on a Mac (I used OS X 10.8.2 here):

text .t
pack .t

Then do the following:
1. type some text into the text widget
2. mark some text and do either cm+c to copy it or cmd+x to cut it out

Tk will then crash with the following info:

0 Tk 0x000cbb6d TkpMakeWindow + 271
1 Tk 0x0003a27b Tk_MakeWindowExist + 135
2 Tk 0x0001515d TkClipInit + 152
3 Tk 0x00014f8e Tk_ClipboardClear + 54
4 Tk 0x000159f0 0x8000 + 55792
5 Tcl 0x0014c4f0 TclNREvalObjv + 2256
6 Tcl 0x001a1cc3 0x13d000 + 412867
7 Tcl 0x00149753 TclNRRunCallbacks + 70
8 Tcl 0x0014cde0 0x13d000 + 64992
9 Tcl 0x0014d266 Tcl_EvalEx + 58
10 Tk 0x0001300c Tk_BindEvent + 3740
11 Tk 0x00018a65 TkBindEventProc + 306
12 Tk 0x0001e0b5 Tk_HandleEvent + 1448
13 Tk 0x0001daab 0x8000 + 88747
14 Tcl 0x001d5b82 Tcl_ServiceEvent + 268
15 Tcl 0x001d5c6e Tcl_ServiceAll + 186
16 Tcl 0x002240a6 0x13d000 + 946342
17 com.apple.CoreFoundation 0x970f1dfe __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30
18 com.apple.CoreFoundation 0x970f1d3d __CFRunLoopDoObservers + 381
19 com.apple.CoreFoundation 0x970cbecf __CFRunLoopRun + 1071
20 com.apple.CoreFoundation 0x970cb63a CFRunLoopRunSpecific + 378
21 com.apple.CoreFoundation 0x970cb4ab CFRunLoopRunInMode + 123
22 com.apple.AppKit 0x93935edc _NSUnhighlightCarbonMenu + 185
23 com.apple.AppKit 0x93ceae7f -[NSCarbonMenuImpl performMenuAction:withTarget:] + 378
24 com.apple.AppKit 0x93c62f1b -[NSMenu _performKeyEquivalentWithDelegate:] + 389
25 com.apple.AppKit 0x93c62fd6 -[NSMenu _performKeyEquivalentWithDelegate:] + 576
26 com.apple.AppKit 0x93c62abb -[NSMenu performKeyEquivalent:] + 72
27 com.apple.AppKit 0x93c61f5c -[NSApplication _handleKeyEquivalent:] + 915
28 com.apple.AppKit 0x93b17ee1 -[NSApplication sendEvent:] + 5512
29 Tk 0x000d7823 0x8000 + 849955
30 Tk 0x000d7bab 0x8000 + 850859
31 Tcl 0x001d5d70 Tcl_DoOneEvent + 180
32 Tk 0x0001d89c Tk_MainLoop + 36
33 Tk 0x0002bbd2 Tk_MainEx + 1470
34 wish-aqua8.6 0x0000453e 0x1000 + 13630
35 wish-aqua8.6 0x000044cd 0x1000 + 13517

Also, when pasting text from other sources into the text widget, nothing happens and the pasted text does not occur in the widget.

Discussion

  • Torsten Berg
    Torsten Berg
    2012-09-28

    • status: open --> closed