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:34:50 +0100 Message-ID: References: <87zfk0p741.fsf@no.lan> <861pxc2l6y.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3766"; 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:35:31 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 1tVtdC-0000lG-CM for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 09 Jan 2025 15:35:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tVtd3-0007wy-Eu; Thu, 09 Jan 2025 09:35:21 -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 1tVtct-0007q0-Oy for bug-gnu-emacs@gnu.org; Thu, 09 Jan 2025 09:35:13 -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 1tVtcl-0006CK-31 for bug-gnu-emacs@gnu.org; Thu, 09 Jan 2025 09:35:09 -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=unGWf0moH0t6EPuqz/f4xPwzFoZlRRzsSLjvmB1ceSE=; b=ZK2Js6BFYT4/2pnORQ56HY9DdsPCXROKivz1FbzQpvm8qieTAusYiyjWGcW/hyINOmQNqiFndD1ZKGG0qDS+DcFmVNdQBdZHAz6V5mJEdVpRVcaTa3cqreyKHrkGCce5r4ewEtzkpGd1wRGLA/Ekf8a7u9DKmyzQhM2CnURuHNXsRPMFKoYV3EUhLFbOjQFdpQGNSIv/U4uG6g+aTrptz9KflAJ0jQQiUu0ZF7eGi+xgK3XcmosBM8snyUGzMAccL69SD1oquPl+LxAE/Z0rTT73npj78yYfJnBUtnj/gWlWuzMbO1QMURd5hmkHOOT6J/ziUqlr9RdV7QqnXuoicg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tVtck-0002v1-Hh for bug-gnu-emacs@gnu.org; Thu, 09 Jan 2025 09:35: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:35: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.173643330211216 (code B ref 75459); Thu, 09 Jan 2025 14:35:02 +0000 Original-Received: (at 75459) by debbugs.gnu.org; 9 Jan 2025 14:35:02 +0000 Original-Received: from localhost ([127.0.0.1]:51303 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tVtcj-0002uh-2h for submit@debbugs.gnu.org; Thu, 09 Jan 2025 09:35:01 -0500 Original-Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]:57798) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tVtcg-0002uE-H5 for 75459@debbugs.gnu.org; Thu, 09 Jan 2025 09:34:59 -0500 Original-Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-43618283dedso10496005e9.3 for <75459@debbugs.gnu.org>; Thu, 09 Jan 2025 06:34:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1736433292; x=1737038092; darn=debbugs.gnu.org; h=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=unGWf0moH0t6EPuqz/f4xPwzFoZlRRzsSLjvmB1ceSE=; b=nHtG9DlLFP+4T13YPItX72EE5mCIUPKxXwp+kxdpQLfzGPyZ0NPClWAU9aDGBUIhex J0eH8ieGtIHR2xrpMXBs5OsVOMVSpYgXDJOB3YcxYef4QX7hZwba7da027cs9Ir41jTM fBCX1VcXn6kD938iy6dyM6s4jA9uaJMYs2uaDvZRIWjIupZPiOFQ1Y+5wvGyM/mSG44Y G1kMaVuQiisqE+TU7P60hIN9xbp1cPKRG+XMU3XwUmb4qXViDvmIFXeOiIcd4Mz2r0yC E3Y4NSPmy7wHoPYTZKe+iXxQ2p5HwfihU5A4kdmtJsr2dqDLUiApFL85ZtG6B8moTnY7 KGDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1736433292; x=1737038092; h=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=unGWf0moH0t6EPuqz/f4xPwzFoZlRRzsSLjvmB1ceSE=; b=LyK+OYsotJMI7avNITjjNgUS7kjmRpnJvrzagoeq09oZ7w0tnl2nRE8iGmPjBHackp J2/C/zcl2Sn6HfPfrv4NNIhxW+0KRJSpkqRujzxUrWGj8JBRlPhocWgRXVMLYmnfVIEd wYDYGLr8UVsZF7X5J0Y3SzSB9/yBq0LqtHdFbmTeq/IsUlXwiluG9t+wmftAr5zl4/ys iUSJk6Q2p7aNoC9ux8kxcjGpOOqqbN+ea1/amG1qUiPI7b5zFXr/wE8q8SVTKAkHyE8D tJLu3IsnokDbFBTKaJT4SbIHd79Mlj5knjwaZgC5gS8LLRGqQxbt93ZEZwUZB2lQWCTT DcQA== X-Forwarded-Encrypted: i=1; AJvYcCUePHP10wiO5d38A3lWwXckIC04gICJsCzztOy5yoL1auNR4M8w/HRc/MSIm3oEbp+X6bIuVg==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yy1zmiiEliiN5Lby3RZ+KJ0iDXD1QEGuNAOv9ioHklAhAYKFw+A Q/YB4eDgmf4Vj0jPoFp789SIW+T01p58aPBUOyzqyoulQpcBN/PiOCtM8A== X-Gm-Gg: ASbGncu2B/uG/0hBTZkEWYFg0Eb6PMDmL0Kz3eoPzvP98oi3LNhKla/EesILM6QAPrl CRum2E1Bj4imYo9JujWc4YKo3l5EE+PBb0d38W+MLcjMx4fyoVZkk88dCwd8pc64R94xNja+m9I /dYpOb0sxJ9nPAEoStIRU1Oha1LTI6Cjq/E4BU8ZALoeqoray5NEjwQ8P9XxJSvf8AMLKGPqCVq FFzaFB1S3CsiExW9v1/GhjJ1vqhNvXxdK+sBatcjwiR81QnO9A25YGRzz32Ib03bKqsX0xHKtkZ oB17HeJCO0NdIanISR0DHdE56e+2qSFVr10e2deNoHrgq0zElR6Am0w59DE9KO93rg== X-Google-Smtp-Source: AGHT+IEtcfshxtLLB2DAuwo+5HUYnjArwGcqDEuGg7Z1aGLLhBqzBKKHZPHzVC2GOYkBp6/OOyATkQ== X-Received: by 2002:a05:6000:1a85:b0:38a:4184:1520 with SMTP id ffacd0b85a97d-38a872eb1eamr5258933f8f.27.1736433291826; Thu, 09 Jan 2025 06:34:51 -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 ffacd0b85a97d-38a8e37d01dsm1985930f8f.9.2025.01.09.06.34.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jan 2025 06:34:51 -0800 (PST) In-Reply-To: <861pxc2l6y.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 09 Jan 2025 15:03:49 +0200") 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:298837 Archived-At: 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=sig@entry=6, backtrace_limit=backtrace_limit@entry=2147483647) at ./src/emacs.c:432 >> 432 { >> #0 terminate_due_to_signal (sig=sig@entry=6, backtrace_limit=backtrace_limit@entry=2147483647) at ./src/emacs.c:432 >> #1 0x00005555555b72db in die (msg=msg@entry=0x5555559cedde "CHAR_TABLE_P (obj)", file=file@entry=0x5555559b0565 "character.h", line=line@entry=597) at ./src/alloc.c:8377 >> #2 0x00005555555b6acd in char_table_translate (obj=Python Exception : value has been optimized out >> , ch=32) at ./src/character.h:597 >> #3 0x00005555557d99a0 in re_match_2_internal (bufp=0x5555560fd6a0 >> , bufp@entry=0x5eb92b3c6c43c900, string1=0x0, >> string1@entry=0x555557025101 "\377\377\377\377\377\377\377\001", >> size1=0, string2=0x5555570251b0 "#-*- 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=93674, >> size2@entry=93825020464468, pos=43986, regs=, >> stop=) 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 = 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 = 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.