Your message dated Thu, 10 Aug 2017 10:20:26 +0000
with message-id <e1dfkzm-000enb...@fasolo.debian.org>
and subject line Bug#860927: fixed in tk8.6 8.6.7-1
has caused the Debian Bug report #860927,
regarding Tk applications segmentation fault when ibus-daemon IME is restarted
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
860927: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=860927
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: tk8.6
Version: 8.6.1-3ubuntu2
Severity: important
Tags: upstream patch
Forwarded: http://core.tcl.tk/tk/tktview?name=7d967c68a0

Hi,

Steve Paik (cc-ed) reported that gitk is crashing periodically.  This
patch, from upstream tk, should fix it.

Thoughts?

Please forgive the whitespace damage.  Copy/paste was the simplest way
to get this here.

Thanks,
Jonathan

commit 0175bc1be685a5ce4a92f7c153eb12e28c28cb1d (origin/bug_7d967c68)
Author: jan.nijtmans <nijtm...@users.sourceforge.net>
Date:   Thu Dec 15 16:07:06 2016 +0000

    Proposed fix for [7d967c68a09e07e355358af40f36dd5dd84c7022|7d967c68]: Tk 
applications segmentation fault when ibus-daemon IME is restarted

diff --git a/generic/tkEvent.c b/generic/tkEvent.c
index 95aeda1dd..d058e7cd6 100644
--- a/generic/tkEvent.c
+++ b/generic/tkEvent.c
@@ -356,6 +356,7 @@ CreateXIC(
        /* XCreateIC failed. */
        return;
     }
+    winPtr->ximGeneration = dispPtr->ximGeneration;
 
     /*
      * Adjust the window's event mask if the IM requires it.
@@ -1288,6 +1289,14 @@ Tk_HandleEvent(
      */
 
 #ifdef TK_USE_INPUT_METHODS
+    /*
+     * If the XIC has been invalidated, it must be recreated.
+     */
+    if (winPtr->dispPtr->ximGeneration != winPtr->ximGeneration) {
+       winPtr->flags &= ~TK_CHECKED_IC;
+       winPtr->inputContext = NULL;
+    }
+
     if ((winPtr->dispPtr->flags & TK_DISPLAY_USE_IM)) {
        if (!(winPtr->flags & (TK_CHECKED_IC|TK_ALREADY_DEAD))) {
            winPtr->flags |= TK_CHECKED_IC;
@@ -1295,7 +1304,9 @@ Tk_HandleEvent(
                CreateXIC(winPtr);
            }
        }
-       if (eventPtr->type == FocusIn && winPtr->inputContext != NULL) {
+       if ((eventPtr->type == FocusIn) &&
+               (winPtr->dispPtr->inputMethod != NULL) &&
+               (winPtr->inputContext != NULL)) {
            XSetICFocus(winPtr->inputContext);
        }
     }

commit 596abb7b53897447dda6044725ea94a664dae64e
Author: jan.nijtmans <nijtm...@users.sourceforge.net>
Date:   Fri Feb 10 11:38:55 2017 +0000

    Fix [7d967c68a09e07e355358af40f36dd5dd84c7022|7d967c68a0] follow-up: Tk 
applications segmentation fault when ibus-daemon IME is restarted. Patch by 
Brad Lanam.

diff --git a/generic/tkWindow.c b/generic/tkWindow.c
index e4d696bdd..690a8412d 100644
--- a/generic/tkWindow.c
+++ b/generic/tkWindow.c
@@ -475,9 +475,6 @@ GetScreen(
            dispPtr->cursorFont = None;
            dispPtr->warpWindow = NULL;
            dispPtr->multipleAtom = None;
-#ifdef TK_USE_INPUT_METHODS
-           dispPtr->ximGeneration = 0;
-#endif /*TK_USE_INPUT_METHODS*/
 
            /*
             * By default we do want to collapse motion events in
@@ -656,6 +653,7 @@ TkAllocWindow(
     winPtr->flags = 0;
     winPtr->handlerList = NULL;
 #ifdef TK_USE_INPUT_METHODS
+    winPtr->ximGeneration = 0;
     winPtr->inputContext = NULL;
 #endif /* TK_USE_INPUT_METHODS */
     winPtr->tagPtr = NULL;

--- End Message ---
--- Begin Message ---
Source: tk8.6
Source-Version: 8.6.7-1

We believe that the bug you reported is fixed in the latest version of
tk8.6, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 860...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sergei Golovan <sgolo...@debian.org> (supplier of updated tk8.6 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Thu, 10 Aug 2017 12:45:27 +0300
Source: tk8.6
Binary: tk8.6 libtk8.6 libtk8.6-dbg tk8.6-dev tk8.6-doc
Architecture: source amd64 all
Version: 8.6.7-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Tcl/Tk Packagers <pkg-tcltk-devel@lists.alioth.debian.org>
Changed-By: Sergei Golovan <sgolo...@debian.org>
Description:
 libtk8.6   - Tk toolkit for Tcl and X11 v8.6 - run-time files
 libtk8.6-dbg - Symbol files for libtk8.6
 tk8.6      - Tk toolkit for Tcl and X11 v8.6 - windowing shell
 tk8.6-dev  - Tk toolkit for Tcl and X11 v8.6 - development files
 tk8.6-doc  - Tk toolkit for Tcl and X11 v8.6 - manual pages
Closes: 818753 860927
Changes:
 tk8.6 (8.6.7-1) unstable; urgency=medium
 .
   * New upstream release (closes: #860927).
   * Refreshed patches.
   * Arch-qualify TCL_CC.
   * Sort the object files inside the static library using the C locale to make
     the build reproducible (closes: #818753).
   * Don't add ldconfig trigger manually since dh_makeshlibs can do it iself.
   * Bumped standards version to 4.0.0.
Checksums-Sha1:
 f776a306035ac7db0d43809b4d73c052eecffc1e 2093 tk8.6_8.6.7-1.dsc
 eb58b4523f376fdf8b1f4439a958227ada52e2c8 4282972 tk8.6_8.6.7.orig.tar.gz
 ca4a3caf9914ad40c04ec64bbb08a4478366c9b6 11228 tk8.6_8.6.7-1.debian.tar.xz
 6d13362f4d3169e00573d4ba2f7f0f877dac4e01 4979662 libtk8.6-dbg_8.6.7-1_amd64.deb
 7fc9ded924aefdfd625e017eee69ccd658a5b19b 751194 libtk8.6_8.6.7-1_amd64.deb
 fdfd33f85c13b6a6a802fd769f87df14ce2504cc 39850 tk8.6-dbgsym_8.6.7-1_amd64.deb
 1306795c989e12b058ad8380b92e876d4e4af86e 738060 tk8.6-dev_8.6.7-1_amd64.deb
 46ae9b9d13b3110ea0b684791ca24e1840dbe187 1186916 tk8.6-doc_8.6.7-1_all.deb
 faaffcf49ec80a579fc5f4f704725f43696e4fa1 7999 tk8.6_8.6.7-1_amd64.buildinfo
 f092c3b019fcc2e71ed95366cb70f21894782693 71614 tk8.6_8.6.7-1_amd64.deb
Checksums-Sha256:
 d605de8f2ccc9e94e4e407924b75ecd4dedafb3f547ed6317c0d5afd75473221 2093 
tk8.6_8.6.7-1.dsc
 061de2a354f9b7c7d04de3984c90c9bc6dd3a1b8377bb45509f1ad8a8d6337aa 4282972 
tk8.6_8.6.7.orig.tar.gz
 b702eb02ad7d5f50ba56462dd266a8521434eeee308822e6d80704ba47ad980a 11228 
tk8.6_8.6.7-1.debian.tar.xz
 9a99bca15ecf75d942afc944776bbc91a1eee923d111538645a6b4e80f193618 4979662 
libtk8.6-dbg_8.6.7-1_amd64.deb
 131982cd163209b1fc227ba9602d3edcb44ac433564197d83425209b8e8fecb5 751194 
libtk8.6_8.6.7-1_amd64.deb
 b1d79fa57933d684262f14fc38ca680c65c8769162e8034c9fcea3c4ac6162e4 39850 
tk8.6-dbgsym_8.6.7-1_amd64.deb
 0f05b2af880e7c5f343b6e52c5775db6cacd1cc618175ac579043941647e0c4c 738060 
tk8.6-dev_8.6.7-1_amd64.deb
 c5b6482d1ef267105dc5f6a29c67f01cc9a36a9f187a6f4f2f0c2aac7e1cf303 1186916 
tk8.6-doc_8.6.7-1_all.deb
 919c4e73739c0d2cc40b0fcb4e9dcc57944c17e12ed44699615739fab7a2465f 7999 
tk8.6_8.6.7-1_amd64.buildinfo
 8a624ffc33d0118cf7b890883af4e96bd725603be525f1ed3d28097f88b5fba3 71614 
tk8.6_8.6.7-1_amd64.deb
Files:
 e57e31c008c98ab41ffaa6446e8e5c83 2093 libs optional tk8.6_8.6.7-1.dsc
 46ea9c0165c515d87393700f4891ab6f 4282972 libs optional tk8.6_8.6.7.orig.tar.gz
 949aab29d9708d38ce483540ac50ed77 11228 libs optional 
tk8.6_8.6.7-1.debian.tar.xz
 3bb5fd1cf70832903435bb1ee1471bff 4979662 debug extra 
libtk8.6-dbg_8.6.7-1_amd64.deb
 174c8c00910c08aef02c471ecf6637de 751194 libs optional 
libtk8.6_8.6.7-1_amd64.deb
 db523bbdb0497795882e0c78d1976428 39850 debug extra 
tk8.6-dbgsym_8.6.7-1_amd64.deb
 2f8b746eccf031faf2baecfcf2755fb8 738060 libdevel optional 
tk8.6-dev_8.6.7-1_amd64.deb
 d2d65dba60ddec8f9e7b02dbf1b609c7 1186916 doc optional tk8.6-doc_8.6.7-1_all.deb
 1fa80b7c9f9225a3e3df057c1619ace4 7999 libs optional 
tk8.6_8.6.7-1_amd64.buildinfo
 3867439be23f6f10fd037dc61f82beb9 71614 interpreters optional 
tk8.6_8.6.7-1_amd64.deb

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE/SYPsyDB+ShSnvc4Tyrk60tj54cFAlmMLi0ACgkQTyrk60tj
54e/GxAAyIBkkZJe87K+UdhF/eYZFj+4ox0ciURx467Ix6fwBDNgN4NFeFzprAuM
nf+7bRjDr5cUArqrVAgaBQHJlC6a3JTB66CJ7ryEE31ozZL5kv3ik3zjPVwZbffB
l/HNd4ux8knDWIVCI7kCKs+DAKbYXcBhtbhGzpDg7fFO2dEfri7vhDWIvRX9BmDl
q83cNu4LoIg6oo8uu/7lxL/BiSLgXAkiw1hvMKOwDmNfyXHR+f2/JF+VUW/51v8/
kxmy8A8+CPWGnP4ApOJFHnGxz7s9/YHiuKJdgRZ2GOgDauP/5M/m8pbF/OaWYkEI
d1JCy8kGPQAHRNDZmx0gHw87EgPAK4hwLY0hrpPRH4CiimdCXbHn45g6S+8hClWU
z6MZl01NrgPENbmbIZ6ro6T+RRia4cR7GaVDXTyebnXhNuaabjD2OINGg0WTYyRA
ClNUfjaBvxX3ma1XJn80TMjhdrYxsfAfnTxdlrqEImhjW4JsfQWs8wjpy1tyRhUl
AuvxBm72+hYjlSgE9qErtyRunswE2M8xkuOR9kBcvDmFKIgR8eO5qAoVNBbPAkY3
a4wZRgyJcuRYbaUc8dJghSmvCPdH7aVRCpe+gQMD12wJYyZzpNuG9ZWSk7m/0kZm
6+WjAqFgmB7DVmJ7I39ax5oxYnVWaga0z9nUzD9P5oWvCdPG0bk=
=2XT7
-----END PGP SIGNATURE-----

--- End Message ---
_______________________________________________
Pkg-tcltk-devel mailing list
Pkg-tcltk-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-tcltk-devel

Reply via email to