From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Newsgroups: gmane.emacs.bugs Subject: bug#75459: 31.0.50; scratch-igc: Breakpoint 1, terminate_due_to_signal (sig=sig@entry=6, backtrace_limit=backtrace_limit@entry=2147483647) at ./src/emacs.c:432 Date: Thu, 09 Jan 2025 15:52:10 +0100 Message-ID: References: <87zfk0p741.fsf@no.lan> <861pxc2l6y.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1995"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Gregor Zattler , 75459@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 09 15:53:33 2025 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tVtue-0000Hz-AT for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Jan 2025 15:53:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tVtuC-0006Oo-CN; Thu, 09 Jan 2025 09:53:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tVtuA-0006OK-TF for bug-gnu-emacs@gnu.org; Thu, 09 Jan 2025 09:53:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tVtuA-0000Sz-Kt for bug-gnu-emacs@gnu.org; Thu, 09 Jan 2025 09:53:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=YmA0sSqPEd2T7MmzuQCVNV9FU2Q+dsqEEBRIqjLkkUQ=; b=WA2yqk9i7rTZabQcpK1lvSCouRY+yZTron4nj8fxNruD6MZJjcAtj1ZBv1k5FpjMSjlSCiRek9Og2iXeKCLOE3enOn9DNkbcpZEYkgNY6eWHBM7ew2SH1UnM9NeXBpxEgVcMdR5wOg/DR25/e2Oa/jWM6ltqp+nC7rlNZS0MismHmT2/cgZFV7JgoUqPu752lk9AReM1sSOiscKVhOS3r/hCtOWcEaC4/klKegHEGhRDIikYX9lkhi6QTshTS29f/X6lJfx4oc4nQKbwtXZjmw/m7NLoRatsZ4Qe4hqNQcQNd6nQtYnPRzmJaVOOqST2D3PUmqbUOr+lDvIXn2NxVg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tVtuA-00040Q-8t for bug-gnu-emacs@gnu.org; Thu, 09 Jan 2025 09:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Gerd =?UTF-8?Q?M=C3=B6llmann?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 09 Jan 2025 14:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75459 X-GNU-PR-Package: emacs Original-Received: via spool by 75459-submit@debbugs.gnu.org id=B75459.173643434015318 (code B ref 75459); Thu, 09 Jan 2025 14:53:02 +0000 Original-Received: (at 75459) by debbugs.gnu.org; 9 Jan 2025 14:52:20 +0000 Original-Received: from localhost ([127.0.0.1]:51358 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tVttU-0003z0-Bk for submit@debbugs.gnu.org; Thu, 09 Jan 2025 09:52:20 -0500 Original-Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]:57760) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tVttS-0003yf-Fx for 75459@debbugs.gnu.org; Thu, 09 Jan 2025 09:52:19 -0500 Original-Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-43618283dedso10702615e9.3 for <75459@debbugs.gnu.org>; Thu, 09 Jan 2025 06:52:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736434332; x=1737039132; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=YmA0sSqPEd2T7MmzuQCVNV9FU2Q+dsqEEBRIqjLkkUQ=; b=YTCNILZBs+u2Q5xLh1J1ShrnF+35SweG6RsNWWNO07WCV9Ivj5J1rNQ85OeZXwjpPc 7Dh41XOr2TgYjFOx5PKR52FFog+vm10CdPxawRzhbFi+HFnRq5gdObSu5WiYrC3RHElk AnsrSOzyqVynr+pJM2H0SBdJRAWfrZwYIC8JJ7WXUBxU/OLGlMyjWwgds3nGB5nFnwJt HJAFWgGlMJLc0eHj95IuR+u6H3IACiIm0YOv2SsSEajnDbYt1bAoI4AFQAgRM9KVE+z6 92GVwjMPpwLcEK8YWir0ProDrU8pLem9IcJoP9MuQkHYiEAqTMCWT6F2fCa/f/7BKGPC qU6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736434332; x=1737039132; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=YmA0sSqPEd2T7MmzuQCVNV9FU2Q+dsqEEBRIqjLkkUQ=; b=I4o32ku2H5nUlprkU1rtCClNJx17x9DWM5ejuVJwIwFsw597AUQtgDoSqGfuZdzvbP qnh5ShX6eCxAypwqyoBUYHIMdFRdfyhSMnH+ky+NdL2L+DS1JIg7xXJP4mlZtG3g/fH5 x0Ajo0YevFcb1bjwbpld9MfKVbYP+lNZ3VRM8cLTTVh/ImQGrKDjdp+RUItDbBb9A4e/ 3emCsPggW4DP/GIZZxvh0DiJ1JgeR8LTS4B4vJsCVIExzBPamcfsJ8k6GETVthm9OIfO wrx10UtBePV5LoCOE8B+sjxAjl39fhIuSwOdPF02Q2+8/+148fPqY6sqWVZnA6s4r/WN ONyg== X-Forwarded-Encrypted: i=1; AJvYcCVI4A3Y96qxXrC9gIs/kr9gPli7G0KZoK2lalIJZdUkoKxHNOwOV5oOOhGDtprvcATvo/5rEQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YxGF26xwpUyo6HXMadJNzJ2XSOQ5/JKd1WJK74RLa73fuKuFSg8 cqHqVyiQoTv0BUtNfBjZaKomcGhCnqoD2u6MwNweMqxCyTW6QbjMCc8uKw== X-Gm-Gg: ASbGncvnd92A0HMbuFJ4ILxj38sHs7obRDgdIxc+DhDu/sWENkcAZq6lSNn0DIw+K8U KA3OY9fQVVLXccMS6Tu6vxKqU9astSx4pk6ibaSUoqlgrp2dyfMjyY8eh092/y/Gm4/TyAaF6fv mtJj4YqlA4RWAh+4kuhnQKj74+FisKjhzhWfapaFdjb4BxLZ+Jqn399aeYa8Uc6idd32AuDIBe6 SN4N53MAOrBqL0DwIW/MR+r5jwJvemyolBAQeVcPOj6j54TML9bc1ZCPbZDqZ44v+oOsodV8HYu FkNI6iaH/S05+2oOafr8z5fsipQ/tvXnDWxMfNE7qDYyVm5RDZ71d/vpzrzuulEW3g== X-Google-Smtp-Source: AGHT+IGYIBEzPxriaeZ8VC44aEBnDhFmLUxrlcshi5iqcw42/kRjlOYDPfL+jAPvPZwekJBVEE6KGw== X-Received: by 2002:a05:600c:1d1f:b0:434:f99e:a5b5 with SMTP id 5b1f17b1804b1-436e271cf4amr49016045e9.28.1736434331801; Thu, 09 Jan 2025 06:52:11 -0800 (PST) Original-Received: from pro2 (p200300e0b7182e00ad06de2bb2fec9f1.dip0.t-ipconnect.de. [2003:e0:b718:2e00:ad06:de2b:b2fe:c9f1]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-436e9dd1cc3sm23060905e9.14.2025.01.09.06.52.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2025 06:52:11 -0800 (PST) In-Reply-To: ("Gerd =?UTF-8?Q?M=C3=B6llmann?="'s message of "Thu, 09 Jan 2025 15:34:50 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298841 Archived-At: Gerd M=C3=B6llmann writes: > Eli Zaretskii writes: > >>> Date: Thu, 09 Jan 2025 12:19:26 +0100 >>> From: Gregor Zattler via "Bug reports for GNU Emacs, >>> the Swiss army knife of text editors" >>> >>> Breakpoint 1, terminate_due_to_signal (sig=3Dsig@entry=3D6, >>> backtrace_limit=3Dbacktrace_limit@entry=3D2147483647) at >>> ./src/emacs.c:432 >>> 432 { >>> #0 terminate_due_to_signal (sig=3Dsig@entry=3D6, >>> backtrace_limit=3Dbacktrace_limit@entry=3D2147483647) at >>> ./src/emacs.c:432 >>> #1 0x00005555555b72db in die (msg=3Dmsg@entry=3D0x5555559cedde >>> "CHAR_TABLE_P (obj)", file=3Dfile@entry=3D0x5555559b0565 "character.h", >>> line=3Dline@entry=3D597) at ./src/alloc.c:8377 >>> #2 0x00005555555b6acd in char_table_translate (obj=3DPython Exception >>> : value has been optimized out >>> , ch=3D32) at ./src/character.h:597 >>> #3 0x00005555557d99a0 in re_match_2_internal (bufp=3D0x5555560fd6a0 >>> , bufp@entry=3D0x5eb92b3c6c43c900, string1=3D0x0, >>> string1@entry=3D0x555557025101 "\377\377\377\377\377\377\377\001", >>> size1=3D0, string2=3D0x5555570251b0 "#-*- mode: Org; indent-tabs-mode: >>> nil; coding: utf-8-unix -*-\n#+STARTUP: hidestars\n#+STARTUP: >>> odd\n;#+STARTUP: overview\n#+STARTUP: showeverything\n#+SEQ_TODO: >>> TODO(t) INPROGRESS(i@/@) WAITING(w@/@) VER"..., size2=3D93674, >>> size2@entry=3D93825020464468, pos=3D43986, regs=3D, >>> stop=3D) at ./src/regex-emacs.c:4553 >> >> bufp->translate is not protected from GC? > > Thanks! > > I think the bufp should come from a regexp_cache entry that looking_at_1 > gets from compile_pattern, and passes to re_match_2 > > i =3D re_match_2 (&cache_entry->buf, (char *) p1, s1, (char *) p2, s2, > > compile_pattern chooses an entry from searchbuf_head, fills it out and > so on. I think searchbuf_head refers to entries in searchbuf, which is > an array of regexp_cache. And in syms_of_search we have > > for (int i =3D 0; i < REGEXP_CACHE_SIZE; ++i) > { > staticpro (&searchbufs[i].regexp); > staticpro (&searchbufs[i].f_whitespace_regexp); > staticpro (&searchbufs[i].syntax_table); > } > > That doesn't look sufficient, at least for igc, don't know about the old > gc. I'll see what must be added there, bufp->translate is certainly > among that, but maybe there are others. Done, but what Pip says.