From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34655: 26.1.92; Segfault in module with --module-assertions Date: Tue, 26 Feb 2019 17:45:21 +0200 Message-ID: <8336oamu3y.fsf@gnu.org> References: <874l8r1t3a.fsf@tcd.ie> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="39873"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 34655@debbugs.gnu.org To: "Basil L. Contovounesios" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 26 16:47:50 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gyexS-000AGy-M8 for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Feb 2019 16:47:50 +0100 Original-Received: from localhost ([127.0.0.1]:57486 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyexR-0007P4-L3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 26 Feb 2019 10:47:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:47569) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyevo-0006OB-1e for bug-gnu-emacs@gnu.org; Tue, 26 Feb 2019 10:46:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gyevn-0007wa-43 for bug-gnu-emacs@gnu.org; Tue, 26 Feb 2019 10:46:07 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39684) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gyevh-0007uS-MK for bug-gnu-emacs@gnu.org; Tue, 26 Feb 2019 10:46:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gyevh-00073f-JY for bug-gnu-emacs@gnu.org; Tue, 26 Feb 2019 10:46:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 26 Feb 2019 15:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34655 X-GNU-PR-Package: emacs Original-Received: via spool by 34655-submit@debbugs.gnu.org id=B34655.155119591627082 (code B ref 34655); Tue, 26 Feb 2019 15:46:01 +0000 Original-Received: (at 34655) by debbugs.gnu.org; 26 Feb 2019 15:45:16 +0000 Original-Received: from localhost ([127.0.0.1]:53228 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyeux-00072i-R9 for submit@debbugs.gnu.org; Tue, 26 Feb 2019 10:45:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:32844) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyeuw-00072U-Ix for 34655@debbugs.gnu.org; Tue, 26 Feb 2019 10:45:15 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:34729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyeur-0007K6-35; Tue, 26 Feb 2019 10:45:09 -0500 Original-Received: from [176.228.60.248] (port=1367 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1gyeuq-0001FO-LO; Tue, 26 Feb 2019 10:45:08 -0500 In-reply-to: <874l8r1t3a.fsf@tcd.ie> (contovob@tcd.ie) 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: 209.51.188.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:155813 Archived-At: > From: "Basil L. Contovounesios" > Date: Mon, 25 Feb 2019 21:00:41 +0000 > > Starting program: /home/blc/.local/src/emacs26/src/emacs -Q --module-assertions > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". > [New Thread 0x7ffff01cb700 (LWP 8299)] > [New Thread 0x7fffef9ac700 (LWP 8300)] > [New Thread 0x7fffef1ab700 (LWP 8301)] > > Thread 1 "emacs" received signal SIGSEGV, Segmentation fault. > re_search_2 (bufp=0xbf5d00 , str1=0x0, size1=0, str2=0x0, size2=18, startpos=0, > range=18, regs=0x0, stop=18) at regex.c:4354 > 4354 buf_ch = STRING_CHAR_AND_LENGTH (d, buf_charlen); > #0 0x0000000000608594 in re_search_2 > (bufp=0xbf5d00 , str1=0x0, size1=0, str2=0x0, size2=18, startpos=0, range=18, regs=0x0, stop=18) at regex.c:4354 > buf_charlen = 0 > irange = 18 > lim = 0 > d = 0x0 > buf_ch = 18 > val = 691541629 > string1 = 0x0 > string2 = 0x0 > fastmap = 0xbf5d38 "" > translate = make_number(0) > total_size = 18 > endpos = 18 > anchored_start = 0 '\000' > multibyte = 1 '\001' > #1 0x0000000000607f91 in re_search > (bufp=0xbf5d00 , string=0x0, size=18, startpos=0, range=18, regs=0x0) > at regex.c:4181 > #2 0x00000000005f3fd0 in fast_string_match_internal > (regexp=XIL(0x8c761c), string=XIL(0x3036ec4), table=XIL(0)) at search.c:485 > val = 140737488336288 > bufp = 0xbf5d00 Here's your problem: fast_string_match_internal got a Lisp string=XIL(0x3036ec4), but its data passed to re_search as the 2nd arg is a NULL pointer. You need to find out how this happens, e.g. by setting a watchpoint on string's data inside Ffile_name_as_directory. Or maybe the string is already corrupted there?