From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#33014: 26.1.50; 27.0.50; Fatal error after re-evaluating a thread's function Date: Fri, 12 Oct 2018 11:12:17 +0300 Message-ID: <83murjwplq.fsf@gnu.org> References: <87d0sh9hje.fsf@runbox.com> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1539331867 30316 195.159.176.226 (12 Oct 2018 08:11:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 12 Oct 2018 08:11:07 +0000 (UTC) Cc: 33014@debbugs.gnu.org To: Gemini Lasswell Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 12 10:11:03 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 1gAsXH-0007m1-Bi for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Oct 2018 10:11:03 +0200 Original-Received: from localhost ([::1]:38881 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAsZN-0006Na-Mo for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 Oct 2018 04:13:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50808) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAsZH-0006N9-6f for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2018 04:13:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAsZD-0005XM-7a for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2018 04:13:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41638) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gAsZD-0005XI-33 for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2018 04:13:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gAsZC-0005wa-H8 for bug-gnu-emacs@gnu.org; Fri, 12 Oct 2018 04:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 12 Oct 2018 08:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 33014 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 33014-submit@debbugs.gnu.org id=B33014.153933196022822 (code B ref 33014); Fri, 12 Oct 2018 08:13:02 +0000 Original-Received: (at 33014) by debbugs.gnu.org; 12 Oct 2018 08:12:40 +0000 Original-Received: from localhost ([127.0.0.1]:45896 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAsYq-0005w2-Es for submit@debbugs.gnu.org; Fri, 12 Oct 2018 04:12:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41003) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAsYo-0005vp-T0 for 33014@debbugs.gnu.org; Fri, 12 Oct 2018 04:12:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gAsYe-0005KF-DB for 33014@debbugs.gnu.org; Fri, 12 Oct 2018 04:12:33 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:47748) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gAsYa-0005He-5V; Fri, 12 Oct 2018 04:12:26 -0400 Original-Received: from [176.228.60.248] (port=4638 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gAsYQ-0007Ri-CT; Fri, 12 Oct 2018 04:12:21 -0400 In-reply-to: <87d0sh9hje.fsf@runbox.com> (message from Gemini Lasswell on Wed, 10 Oct 2018 22:30:29 -0700) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:151159 Archived-At: > From: Gemini Lasswell > Date: Wed, 10 Oct 2018 22:30:29 -0700 > > When I run some byte-compiled code which creates some threads, and then, > while a thread is blocked, interactively evaluate the function which > was used to create that thread, Emacs has a fatal error or segmentation > fault when the thread becomes unblocked. Can you please make a smaller stand-alone test case, which doesn't require patching Emacs? That will make it much easier to try reproducing the problem. > Thread 7 (Thread 0x7f1cd4dec700 (LWP 21837)): > #0 terminate_due_to_signal (sig=sig@entry=6, > backtrace_limit=backtrace_limit@entry=2147483647) at emacs.c:369 > #1 0x00000000005a4d99 in die (msg=msg@entry=0x678d52 "HASH_TABLE_P (a)", > file=file@entry=0x6768a5 "lisp.h", line=line@entry=2241) at alloc.c:7094 > #2 0x00000000006122b5 in XHASH_TABLE (a=...) at lisp.h:2241 > #3 exec_byte_code (bytestr=..., vector=..., maxdepth=..., args_template=..., > nargs=nargs@entry=0, args=, > args@entry=0x16eac38 ) at bytecode.c:1403 > #4 0x00000000005cb972 in funcall_lambda (fun=..., nargs=nargs@entry=0, > arg_vector=0x16eac38 , > arg_vector@entry=0x158ec58 ) at eval.c:3057 > #5 0x00000000005c818b in Ffuncall (nargs=nargs@entry=1, > args=args@entry=0x158ec50 ) at eval.c:2870 > #6 0x000000000064443b in invoke_thread_function () at thread.c:684 > #7 0x00000000005c728f in internal_condition_case ( > bfun=bfun@entry=0x644400 , handlers=..., > handlers@entry=XIL(0xc3c0), hfun=hfun@entry=0x644320 ) > at eval.c:1373 > #8 0x0000000000644dd1 in run_thread (state=0x158ec30 ) Can you show the Lisp backtrace of this thread? Also, what is the offending object 'a' in this frame: > #2 0x00000000006122b5 in XHASH_TABLE (a=...) at lisp.h:2241 and what was its parent object in the calling frame? Thanks.