From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kari Pahula Newsgroups: gmane.emacs.bugs Subject: bug#18259: 24.3; comint-interrupt-subjob fails to interrupt pthreaded programs Date: Wed, 13 Aug 2014 13:52:30 +0300 Message-ID: <87ha1girv5.fsf@sammakko3.piperka.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1407945098 12038 80.91.229.3 (13 Aug 2014 15:51:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Aug 2014 15:51:38 +0000 (UTC) To: 18259@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 13 17:51:32 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XHapb-0000NX-0D for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Aug 2014 17:51:19 +0200 Original-Received: from localhost ([::1]:48197 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHapa-0002qO-Jq for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Aug 2014 11:51:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHapS-0002pN-2K for bug-gnu-emacs@gnu.org; Wed, 13 Aug 2014 11:51:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XHapK-0006qo-Tt for bug-gnu-emacs@gnu.org; Wed, 13 Aug 2014 11:51:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:35147) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHapK-0006qe-QK for bug-gnu-emacs@gnu.org; Wed, 13 Aug 2014 11:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XHapK-0008B3-Ba for bug-gnu-emacs@gnu.org; Wed, 13 Aug 2014 11:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kari Pahula Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Aug 2014 15:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18259 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.140794504631403 (code B ref -1); Wed, 13 Aug 2014 15:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Aug 2014 15:50:46 +0000 Original-Received: from localhost ([127.0.0.1]:42088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XHap3-0008AN-3X for submit@debbugs.gnu.org; Wed, 13 Aug 2014 11:50:46 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53602) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XHWAv-0007fi-3z for submit@debbugs.gnu.org; Wed, 13 Aug 2014 06:53:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XHWAj-00075f-Tb for submit@debbugs.gnu.org; Wed, 13 Aug 2014 06:52:55 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:54066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHWAj-00075b-Q8 for submit@debbugs.gnu.org; Wed, 13 Aug 2014 06:52:49 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHWAe-0004Ay-8h for bug-gnu-emacs@gnu.org; Wed, 13 Aug 2014 06:52:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XHWAY-0006y6-QZ for bug-gnu-emacs@gnu.org; Wed, 13 Aug 2014 06:52:44 -0400 Original-Received: from mta-out1.inet.fi ([62.71.2.193]:52333 helo=kirsi1.inet.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHWAY-0006rf-BR for bug-gnu-emacs@gnu.org; Wed, 13 Aug 2014 06:52:38 -0400 Original-Received: from sammakko3.piperka.net (84.248.17.131) by kirsi1.inet.fi (8.5.142.08) id 53D0A9E801A2ABC7 for bug-gnu-emacs@gnu.org; Wed, 13 Aug 2014 13:52:30 +0300 Original-Received: from kaol by sammakko3.piperka.net with local (Exim 4.84_RC2) (envelope-from ) id 1XHWAQ-0003kh-L9 for bug-gnu-emacs@gnu.org; Wed, 13 Aug 2014 13:52:30 +0300 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Wed, 13 Aug 2014 11:50:43 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:92460 Archived-At: Trying to interrupt a debugged program in gud fails. Pressing C-c C-c just displays "C-c C-cQuit" but nothing else happens. This works in Emacs version 23. It seems to me that Emacs 24 doesn't know how to signal stop to programs using pthreads. The program in question is available at https://github.com/kaol/forcelayout (gdb) r Starting program: /home/kaol/src/forcelayout/forcelayout -i 1000 -r world-20140811.json picks-20140812.json world-20140812.json [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7ffff7308700 (LWP 14323)] [New Thread 0x7ffff6ab7700 (LWP 14324)] [New Thread 0x7ffff6266700 (LWP 14325)] [New Thread 0x7ffff5a15700 (LWP 14326)] [New Thread 0x7ffff51c4700 (LWP 14327)] [New Thread 0x7ffff4973700 (LWP 14328)] [New Thread 0x7ffff4122700 (LWP 14329)] [New Thread 0x7ffff38d1700 (LWP 14330)] [New Thread 0x7fffec645700 (LWP 14331)] [Thread 0x7fffec645700 (LWP 14331) exited] C-c C-cQuit k (gdb) In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.12.2) of 2014-06-06 on barber, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11600000 System Description: Debian GNU/Linux unstable (sid) Configured using: `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'LDFLAGS=-Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LC_CTYPE: fi_FI.UTF-8 value of $LC_TIME: en_GB.UTF-8 value of $LANG: C locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Debugger Minor modes in effect: diff-auto-refine-mode: t shell-dirtrack-mode: t desktop-save-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x g d b s e t SPC a r g s SPC r C-c C-c k M-x m e n u - b a m Recent messages: setting up indent stuff Indentation variables are now local. Indentation setup for shell type bash Note: file is write protected File mode specification error: (error "No Ebrowse file header found") Wrote /home/kaol/.emacs.desktop.lock Desktop: 533 buffers restored. For information about GNU Emacs and the GNU system, type C-h C-a. Mark set Menu-Bar mode enabled Load-path shadows: /usr/share/emacs24/site-lisp/css-mode/css-mode hides /usr/share/emacs/site-lisp/css-mode/css-mode /usr/share/emacs/24.3/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs24/site-lisp/quilt-el/quilt hides /usr/share/emacs/site-lisp/quilt /usr/share/emacs24/site-lisp/cmake-data/cmake-mode hides /usr/share/emacs/site-lisp/cmake-mode /usr/share/emacs24/site-lisp/html-helper-mode/tempo hides /usr/share/emacs/24.3/lisp/tempo /usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.3/lisp/textmodes/ispell /usr/share/emacs24/site-lisp/css-mode/css-mode hides /usr/share/emacs/24.3/lisp/textmodes/css-mode /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.3/lisp/textmodes/rst /usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.3/lisp/textmodes/flyspell /usr/share/emacs24/site-lisp/html-helper-mode/tempo hides /usr/share/emacs/site-lisp/html-helper-mode/tempo /usr/share/emacs24/site-lisp/html-helper-mode/html-helper-mode hides /usr/share/emacs/site-lisp/html-helper-mode/html-helper-mode /usr/share/emacs24/site-lisp/html-helper-mode/visual-basic-mode hides /usr/share/emacs/site-lisp/html-helper-mode/visual-basic-mode /usr/share/emacs24/site-lisp/html-helper-mode/hhm-config hides /usr/share/emacs/site-lisp/html-helper-mode/hhm-config Features: (shadow sort gnus-util mail-extr emacsbug message cl-macs gv format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail mail-utils cus-start cus-load gdb-mi bindat gud ebrowse ebuff-menu electric view haskell-cabal haskell-utils python rx image-mode readme-debian diff-mode tex-mode shell pcomplete m4-mode conf-mode nroff-mode jka-compr dired autoconf autoconf-mode debian-control-mode debian-copyright css-mode apropos haskell-font-lock haskell-mode haskell-string haskell-sort-imports haskell-align-imports noutline outline easy-mmode flymake compile dabbrev debian-bug rfc2047 rfc2045 ietf-drums mm-util mail-prsvr debian-changelog-mode add-log sql comint ansi-color ring nxml-uchnm rng-xsd xsd-regexp rng-cmpct rng-nxml rng-valid rng-loc rng-uri rng-parse nxml-parse rng-match rng-dt rng-util rng-pttrn nxml-ns nxml-mode nxml-outln nxml-rap nxml-util nxml-glyph nxml-enc xmltok sgml-mode sh-script smie executable html-mode jsp-html-helper-mode asp-html-helper-mode php-html-helper-mode html-helper-mode warnings advice help-fns advice-preload tempo js byte-opt bytecomp byte-compile cconv json imenu thingatpt perl-mode make-mode vc-git cc-langs cl cl-lib cc-mode cc-fonts easymenu cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs desktop server debian-el debian-el-loaddefs haskell-mode-autoloads edmacro kmacro dpkg-dev-el dpkg-dev-el-loaddefs time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)