wish (and gitk) crashes when window is closed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tcltk-defaults (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
When the user closes the window that wish displays (e.g. types CTRL+F4 in XFCE), wish experiences a segfault. This can be reproduced either by simply running "wish", or by running a wish-based application such as gitk.
$ gdb wish
GNU gdb (Ubuntu 7.11-0ubuntu1) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://
Find the GDB manual and other documentation resources online at:
<http://
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from wish...(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/bin/wish
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_
% [New Thread 0x7ffff3d1e700 (LWP 25046)]
<< Give wish window focus, type CTRL+F4 >>
Thread 1 "wish" received signal SIGSEGV, Segmentation fault.
__lll_unlock_
29 ../sysdeps/
(gdb) bt
#0 __lll_unlock_
#1 0x00007ffff6039cd8 in pthread_
#2 0x00007ffff780f0f7 in Tcl_FinalizeNot
#3 0x00007ffff77cec5d in ?? () from /usr/lib/
#4 0x00007ffff7792549 in ?? () from /usr/lib/
#5 0x00007ffff7792346 in Tcl_Exit () from /usr/lib/
#6 0x00007ffff7acf0e0 in Tk_MainEx () from /usr/lib/
#7 0x000000000040094c in ?? ()
#8 0x00007ffff7323a00 in __libc_start_main (main=0x400920, argc=1, argv=0x7fffffff
stack_
#9 0x0000000000400989 in _start ()
ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: tk 8.6.0+9
ProcVersionSign
Uname: Linux 4.4.0-13-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: XFCE
Date: Wed Mar 16 22:51:17 2016
InstallationDate: Installed on 2016-03-03 (14 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Alpha amd64 (20160122.2)
SourcePackage: tcltk-defaults
UpgradeStatus: No upgrade log present (probably fresh install)
The same issue happens when running:
gdb --args wish /usr/bin/gitk -- -n 100
(or just "gitk -n 100" if not running under gdb)
The same issue repros when closing the window in the following ways:
- Clicking the close "x" icon on the window title bar
- Selecting close from the window's menu (in XFCE the button in the top-left of the window title bar)
- In gitk, selecting File -> Close