From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Raimon Grau Newsgroups: gmane.emacs.bugs Subject: bug#31671: 26.1; edebug-defun doesn't step if functions run in a separate thread Date: Thu, 31 May 2018 18:37:17 +0100 Message-ID: <87muwfsp4i.fsf@konghq.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1527789865 16595 195.159.176.226 (31 May 2018 18:04:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 31 May 2018 18:04:25 +0000 (UTC) To: 31671@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu May 31 20:04:21 2018 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fORvw-0004Cm-IQ for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 May 2018 20:04:21 +0200 Original-Received: from localhost ([::1]:45570 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fORy3-0003Ev-NU for geb-bug-gnu-emacs@m.gmane.org; Thu, 31 May 2018 14:06:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38188) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fORdK-0003k1-7c for bug-gnu-emacs@gnu.org; Thu, 31 May 2018 13:45:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fORdG-0008M0-8D for bug-gnu-emacs@gnu.org; Thu, 31 May 2018 13:45:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48360) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fORdG-0008Lu-2u for bug-gnu-emacs@gnu.org; Thu, 31 May 2018 13:45:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fORdF-0000Ad-Ry for bug-gnu-emacs@gnu.org; Thu, 31 May 2018 13:45:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Raimon Grau Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 31 May 2018 17:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 31671 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.1527788642550 (code B ref -1); Thu, 31 May 2018 17:45:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 31 May 2018 17:44:02 +0000 Original-Received: from localhost ([127.0.0.1]:56257 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fORcI-00008o-1L for submit@debbugs.gnu.org; Thu, 31 May 2018 13:44:02 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45709) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fORWc-0008Ly-GE for submit@debbugs.gnu.org; Thu, 31 May 2018 13:38:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fORWW-0001Ek-0Q for submit@debbugs.gnu.org; Thu, 31 May 2018 13:38:05 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:41818) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1fORWV-0001EQ-Sq for submit@debbugs.gnu.org; Thu, 31 May 2018 13:38:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fORWU-0006aa-6W for bug-gnu-emacs@gnu.org; Thu, 31 May 2018 13:38:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fORWP-00016k-H8 for bug-gnu-emacs@gnu.org; Thu, 31 May 2018 13:38:02 -0400 Original-Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:37354) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fORWO-00015m-Uy for bug-gnu-emacs@gnu.org; Thu, 31 May 2018 13:37:57 -0400 Original-Received: by mail-wm0-x242.google.com with SMTP id l1-v6so55487059wmb.2 for ; Thu, 31 May 2018 10:37:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konghq.com; s=google; h=from:to:subject:date:message-id:mime-version; bh=JS+S2tMAgDr7tjof8YL45DRqIfb5BCU8GsRKDqPrFeY=; b=bqEFILE5/HBBC9KSXgeBM4u3kBlW3OeTJt6/jf0i3wlu6+ZxJxXNKInzrEInyo9OIi w8Pt8uK03htgwFo5EPDpPOBEbrEDpXtVOSmFwTHEbBucbqWFF5jwZDjT9NMI7nyTCy8V VYck4MZ97IL7Gtwx1yTkZygowTs4qzw8hQe4M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=JS+S2tMAgDr7tjof8YL45DRqIfb5BCU8GsRKDqPrFeY=; b=icJOz0sU5tuhS+Kv09a+HzpTU+9ExT9nsGTBvsE9+8CvDRG0LOD4LudPvZHtYjVMw0 gC+HiQNc8tjNgFoXjxUQRnaCTWHVPmgg9CwBBpaagE8KbD26cMqH8+DIUE03DN6NsWGn hnHsv0koSQhyb54xZ6rhKjh1vtapkR5KqgAqp+wJD4x3ewmoqpyf3W5Yc59s0o4CrCQC TCcwRWlhibwBNJFPCz/53cSFUEk7K2LqwRupGHDyXM5OEgAnrx7GYnDoJWDPbxyzsY+D zILiRazbtAMaeaTODXZ8IwPo/E6N0Lk+Tl+5ROl/a5CpB/xIBIzrY+OF6h9g8c0qI4Wm hkHg== X-Gm-Message-State: APt69E1R1/5bxMFusj1GCeVHIf9az4o5uOWTMn80TnWJ2lmUdpGad/Cd 0wPiruGHHh3yMPQHzWBZc3kEHACaxDk= X-Google-Smtp-Source: ADUXVKJnRJBH+4YQy6K4isHfNH4rkhHIpd1BgTN6DFVCZeZ2b6aWfDJOdvy62fcEeXEH31wgDtSXxw== X-Received: by 2002:a1c:14d4:: with SMTP id 203-v6mr501746wmu.130.1527788275378; Thu, 31 May 2018 10:37:55 -0700 (PDT) Original-Received: from raikong (81.61.106.180.dyn.user.ono.com. [81.61.106.180]) by smtp.gmail.com with ESMTPSA id c53-v6sm29276863wrg.12.2018.05.31.10.37.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 31 May 2018 10:37:54 -0700 (PDT) X-Google-Original-From: Raimon Grau X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Thu, 31 May 2018 13:44:00 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:146782 Archived-At: Using edebug-defun to instrument a function and running that function in a separate thread using `make-thread' makes triggers the breakpoint but leaves the bufer in read-only-mode but the user can't interact with edebug in any way. Steps to reproduce (ubuntu 16.04): - start emacs with emacs -Q . - in the *scratch* buffer, write: (defun foo () (message "hi")) (make-thread 'foo) - edebug-defun function foo - c-x c-e the (make-thread 'foo) sexp - *scratch* buffer point moves to the beginning of function foo - press `n` and the minibuffers says: "No catch for tag: exit, nil". The whole buffer is in read-only mode. modeline has "(Lisp Interaction *Debugging* ElDoc)" The "Recent messages" below correspond exactly to that sequence of commands. In GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2018-05-10 built on raikong Repository revision: 1d9e66aea17787e03954f32c6cd7561c881bb444 Windowing system distributor 'The X.Org Foundation', version 11.0.11905000 System Description: Ubuntu 16.04.4 LTS Recent messages: foo Edebug: foo foo # edebug-set-mode: No catch for tag: exit, nil Making completion list... (# #) Making completion list... [2 times] Edebug will stop after next eval. edebug-bounce-point: Edebug is not active command-execute: Buffer is read-only: # Configured using: 'configure --prefix=/home/rgrau/emacs-git PKG_CONFIG_PATH=/home/rgrau/.guix-profile/lib/pkgconfig' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 THREADS LCMS2 Important settings: value of $LC_MONETARY: es_ES.UTF-8 value of $LC_NUMERIC: es_ES.UTF-8 value of $LC_TIME: es_ES.UTF-8 value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: edebug-mode: t tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils edebug easymenu cl-loaddefs cl-lib elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 97842 12105) (symbols 48 20713 1) (miscs 40 59 143) (strings 32 29196 1060) (string-bytes 1 768686) (vectors 16 14550) (vector-slots 8 496991 7738) (floats 8 53 323) (intervals 56 254 7) (buffers 992 12) (heap 1024 32030 1223))