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#74547: 31.0.50; igc: assertion failed in buffer.c Date: Sun, 01 Dec 2024 20:41:33 +0100 Message-ID: References: <87serdu9m3.fsf@telefonica.net> <875xo3mvqh.fsf@protonmail.com> <871pyrmui4.fsf@protonmail.com> <87wmgjlabu.fsf@protonmail.com> <87r06rl807.fsf@protonmail.com> <11705193-9151-43fb-9109-8a579e77d32b@gmail.com> 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="37154"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Pip Cet , =?UTF-8?Q?=C3=93scar?= Fuentes , 74547@debbugs.gnu.org To: Geza Herman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Dec 01 20:43:23 2024 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 1tHpql-0009Vk-2J for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 01 Dec 2024 20:43:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tHpqT-0000Y0-7J; Sun, 01 Dec 2024 14:43:05 -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 1tHpqR-0000Xd-Eo for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2024 14:43:03 -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 1tHpqP-0007UL-Sz for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2024 14:43:03 -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=vNuz3UL9Zpu0avcodzbgpLVwILkZ+Jppd86uxJxLqn0=; b=lwrDE/dYoH78XyAWguR9tp01HP+myjsLn8TAf1Ynae+T+RReDmK/+8XF3mcclGewzbLraMFOdNYSPDQ/ksdIu9fe6wEGBNRW73JzlUwu1ak5RZkffCkp/GIQjzg1a5a0pZg8uKIjHmBVekrMMiTgWKgO9xWXbuU798SYKIopVtaOhCdeg1PCjSvCr7HY6YRzAJptrnwd+BujDGrSMtwI4yymr3M5O1o2lBFNs/gYPC90+U3uzc/HCTvDlHSPDsE9L5Xobzic7X77n5a8MuMWo13/KwMCIcnjG3LtvkJFeYFtrTwQBzdcf9eb62jkiaKLq6Fh7PoxbH/RCGB6eHAiJA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tHpqP-0004TI-OE for bug-gnu-emacs@gnu.org; Sun, 01 Dec 2024 14:43:01 -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: Sun, 01 Dec 2024 19:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74547 X-GNU-PR-Package: emacs Original-Received: via spool by 74547-submit@debbugs.gnu.org id=B74547.173308216317159 (code B ref 74547); Sun, 01 Dec 2024 19:43:01 +0000 Original-Received: (at 74547) by debbugs.gnu.org; 1 Dec 2024 19:42:43 +0000 Original-Received: from localhost ([127.0.0.1]:53142 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHpq7-0004Sg-1L for submit@debbugs.gnu.org; Sun, 01 Dec 2024 14:42:43 -0500 Original-Received: from mail-wm1-f45.google.com ([209.85.128.45]:55653) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tHpq5-0004SM-1D for 74547@debbugs.gnu.org; Sun, 01 Dec 2024 14:42:42 -0500 Original-Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-434a752140eso28698825e9.3 for <74547@debbugs.gnu.org>; Sun, 01 Dec 2024 11:42:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733082095; x=1733686895; 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=vNuz3UL9Zpu0avcodzbgpLVwILkZ+Jppd86uxJxLqn0=; b=ZjWdXzA46adA33ZdzWxN2MY9yCQ6oUd1jl6Yyn0rnucDPUMeq7a9vH0AOwYIK34M3h yhKyEL0HhUsMBUBimO8CakyrMO1H3UI1SUWM24eS8Vi83JpH+TxvNuwpztAWIc9aDrnT B8jGj8GV8I7Xdzryb6SbzHa2WowtneaWN9hVkZilDFTRMevI/Cho7fHMg90t2rdt9R+U 4bCjgl+N9tpA87i7+ytq03KDOl9VZ0pfPmXO/M2fdUoKFTy8/pA+If2uZNw2iqwDC3AK Yy+ASXD0COt8gjYH8ht8drcVLbUfsiDU+zjo4kJXUyImwPkmfArZfjlzRsENI8+7SUW1 iCgQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733082095; x=1733686895; 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: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gKWQCG4q3qMz/BcE9PaNtuAHs5cBxLCzdDlnl45XNGPRg== X-Received: by 2002:a05:6000:2d04:b0:385:e30a:3945 with SMTP id ffacd0b85a97d-385e30a3b68mr3963383f8f.23.1733082095129; Sun, 01 Dec 2024 11:41:35 -0800 (PST) Original-Received: from pro2 (p200300e0b73e1e0079ddbf8403284f30.dip0.t-ipconnect.de. [2003:e0:b73e:1e00:79dd:bf84:328:4f30]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-385ccd80435sm10362812f8f.100.2024.12.01.11.41.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Dec 2024 11:41:34 -0800 (PST) In-Reply-To: <11705193-9151-43fb-9109-8a579e77d32b@gmail.com> (Geza Herman's message of "Sun, 1 Dec 2024 17:32:21 +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:296276 Archived-At: Geza Herman writes: > On 12/1/24 16:48, Pip Cet wrote: > > Gerd M=C3=B6llmann writes: > > Yeah, I'd prefer using Lisp_Vectors too, and it was actually implemented > at some point, but removed again, see > > https://yhetil.org/emacs-devel/87edc1rzig.fsf@gmail.com/ > > I vaguely remember a longer thread about GC in json.c at the time. Could > be that that was before igc became a realistic possibility, don't > remember. > > > Okay, sounds like it's a political issue. I'll push the first patch > which keeps changes to a minimum. > > Pip > > Back then, the future of the new GC was a question, so Gerd said > (https://lists.gnu.org/archive/html/emacs-devel/2024-03/msg00544.html) th= at > "Please don't take my GC efforts into consideration. That may succeed or = not. But this is also a matter of good design, > using the stack, (which BTW pdumper does, too), vs. bad design." That's w= hy we went with the fastest implementation that > doesn't use lisp vectors for storage. But we suspected that this JSON par= ser design will likely cause a problem with the > new GC. So I think even if it turned out that the current problem was not= caused by the parser, I still think that there > should be something done about this JSON parser design to eliminate this = potential problem. The lisp vector based > approach was reverted because it added an extra pressure to the GC. For l= arge JSON messages, it doesn't matter too much, > but when the JSON is small, the extra GC time made the parser measurably = slower. But, as far as I remember, that version > hadn't have the small internal storage optimization yet. If we convert ba= ck to the vector based approach, the extra GC > pressure will be smaller (compared to the original vector based approach = without the internal storage), as for smaller > sizes the vector won't be actually used. > > G=C3=A9za Sorry again for not remembering this earlier. It only resurfaced slowly in my mind when I saw Pip's patch.