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: Wed, 27 Nov 2024 07:54:35 +0100 Message-ID: References: <87serdu9m3.fsf@telefonica.net> 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="3268"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 74547@debbugs.gnu.org, Pip Cet To: =?UTF-8?Q?=C3=93scar?= Fuentes Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Nov 27 07:56:34 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 1tGByT-0000ew-HC for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 27 Nov 2024 07:56:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tGBy2-0001zN-QY; Wed, 27 Nov 2024 01:56:06 -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 1tGBxz-0001z6-7O for bug-gnu-emacs@gnu.org; Wed, 27 Nov 2024 01:56: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 1tGBxy-0001MJ-UG for bug-gnu-emacs@gnu.org; Wed, 27 Nov 2024 01:56: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=aywbBGowmFXoSrVUyV9sn2cY9CNjBBNGA0gGnLJmNZw=; b=hRcN6AYoux3ZcZ/0+jrc1WcJzasSLxDSugBB2hx4l43w4LDTrHNDb1iuZwXT/CqZGN3OKe/aGpkIRNBleW+lwpEpeDa0iNJvgDWf2euLmbGL8NYY6qIpDeSL3vVMxXTMXYkn5hp69zfsYYt0yuKCO/H3H6aSPF+ppZbZaJ1nwnR8UHv0hRg6Kqo6FI6rhwULLkz4HbmCaSkxnIy+MPeJg+XxGJF630cDCSte+2QeW+oSds/qYbJAVNAARaRJoh0d7iWU0/tnkrK7YgeGwAH04oe11iFCfH5omChkRchK4r1tKIhkrAyyIgDrfniPpdJ3AWQfbuJr3VlH0m7dOHmuaA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tGBxx-0004IE-QY for bug-gnu-emacs@gnu.org; Wed, 27 Nov 2024 01:56: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: Wed, 27 Nov 2024 06:56: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.173269054216469 (code B ref 74547); Wed, 27 Nov 2024 06:56:01 +0000 Original-Received: (at 74547) by debbugs.gnu.org; 27 Nov 2024 06:55:42 +0000 Original-Received: from localhost ([127.0.0.1]:58086 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tGBxe-0004HZ-8L for submit@debbugs.gnu.org; Wed, 27 Nov 2024 01:55:42 -0500 Original-Received: from mail-wr1-f53.google.com ([209.85.221.53]:58830) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tGBxa-0004HM-5u for 74547@debbugs.gnu.org; Wed, 27 Nov 2024 01:55:40 -0500 Original-Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-382442b7d9aso4884300f8f.1 for <74547@debbugs.gnu.org>; Tue, 26 Nov 2024 22:55:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732690477; x=1733295277; 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=aywbBGowmFXoSrVUyV9sn2cY9CNjBBNGA0gGnLJmNZw=; b=GyVNdIG5Tdv4/tZdWkTwYAV4ZAJ3cLHpJRDOLo4PP7A1yVT9ULYdViSHfwG/aPQBSN W2++kQT0ohLPgX996+HcIeQeEuLM0lwcZT79utDHQg5NhsSY6JA4fpmzG3/zwy9FPDsd ztf+/Z5krLSam/V5YFidoVz/7xRSQF1nbjd1U7TpgKVSWo9obacpTAozAh3akf5tPN+M bpGul6U1ayhACpCt/RBdgZbiHvfAYofXriE9oCgPeA1NxWqq0XD/UJnWPeVbWjfaQ7U4 A61WfZQEvnTnNSdYQ68foMo8awXyotJ9iWLd1nNkee6DeWE1pLIhEVxld29ZPzv+0eKZ UUzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732690477; x=1733295277; 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=aywbBGowmFXoSrVUyV9sn2cY9CNjBBNGA0gGnLJmNZw=; b=lmTfUJMAA7NcXJWmD8l+BNY6AfwfJC4s8pfdjLTKsiIwlshqFFFFuDn8893ixfwLuG r8jtug30c3GAj9+7Q/8KG0hpEDUOK5cemXBKL0I4LkqOHOu69R5IB2DqJGJIoSCX9Yvv fH/K0YRlkcE5bv82sFCyYocTYedHF9zNOvpN/CXtttGtrMak9LDs8WmBQB6ESClbACCq J4+QCnXp48KU0Qzqc9ABH122XizNlE/FCDMlFgWzHF83LYXPANHQmUXCMd7jzNY9gjaM 86rCUArEFUz2Doi9u+3mjb3XZvreZ4Y/IL24dqdqV73c8UmTPiAByY4W9i7PIa+Tc9cD +MNA== X-Gm-Message-State: AOJu0YyR1c4uXU1hdRaumqhbsnwz/2Hk1+w5YwQd4/K9QIFCT2EOmX7p 1lKk6KiV/XeYnJhSoDU0Sh7niRmASSczlagDWyA6V/p99CXdLr1M X-Gm-Gg: ASbGnct10CBenq2Eaun0/ATf7cF6L+ocXMzgBQTtQkTVE5vj+vdhFkoSr+BkiqxZFIh F5zSjv+GgdxVxZN0wtpwO98rljhdqUuycjlt9tYgmO/ef8Czho1tEzfpK6zay2aS+eQL1c0X+q9 ac2DlZaZXpkEwjcoHuaFEuAZ7BQUixpEtBZ3hL8ylIR3zXWwldzRF8gFqzEtMB6Z8OgHMA4VE9n txO67UahuQ4di1Km4pUFfYHipbhJ+XLwGLhLIAjZb7ii3pFoKK8nBQKIqm9LioJV6y0B+KxOwJ6 uUoXjNx2pGBiAt2+SfMVZkVzlxjLFHKu9gqXxJxsPNwEebJEWBPxA5+T+QM= X-Google-Smtp-Source: AGHT+IGnvbnccHV6ds09J81vpbUlW5+aGL0wusts8bo3D5MoriNVgTlq1VX5KGtNqttXoGla0LWkaA== X-Received: by 2002:a05:6000:2d01:b0:382:44e0:c5e9 with SMTP id ffacd0b85a97d-385c6ec02damr952527f8f.25.1732690477132; Tue, 26 Nov 2024 22:54:37 -0800 (PST) Original-Received: from pro2 (p200300e0b70ba2005d51b4324b812ec2.dip0.t-ipconnect.de. [2003:e0:b70b:a200:5d51:b432:4b81:2ec2]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3825fbf2b29sm15395020f8f.107.2024.11.26.22.54.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2024 22:54:36 -0800 (PST) In-Reply-To: <87serdu9m3.fsf@telefonica.net> ("=?UTF-8?Q?=C3=93scar?= Fuentes"'s message of "Tue, 26 Nov 2024 19:35:00 +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:296019 Archived-At: =C3=93scar Fuentes writes: > While editing a .dart file with lsp-mode. Thanks Oscar. That's a difficult one. > #3 0x00005555559c1384 in mps_lib_assert_fail > (condition=3D0x555555a4a157 "size > 0", line=3D579, file=3D0x555555a4= 7782 "buffer.c") > at /home/oscar/dev/other/mps/code/mpsliban.c:87 > #4 BufferFill > #5 0x00005555559f2da0 in amcSegFix (seg=3D0x7fffb820d070, ss=3D0x7ffffff= f9fc0, refIO=3D0x7fffffff99d0) > trace =3D > #6 0x0000555555990b8c in _mps_fix2 (mps_ss=3D0x7fffffff9fc8, mps_ref_io= =3D0x7fffffff9a10) > res =3D > #7 0x0000555555903cac in fix_lisp_obj (ss=3D0x7fffffff9fc8, pobj=3D0x7ff= f89f0e000) > at ../../emacs/src/igc.c:998 > res =3D 32767 > client =3D 0x7fff93f2f7d0 > base =3D 0x7fff93f2f7d0 > p =3D 0x7fff89f0e000 > --Type for more, q to quit, c to continue without paging-- > word =3D 140735675561940 > tag =3D 4 > _ss =3D 0x7fffffff9fc8 > _mps_zs =3D 22 > _mps_ufs =3D 549755846664 > _mps_wt =3D 32768 > _mps_w =3D 133143986160 > #8 0x0000555555904160 in fix_array (ss=3D0x7fffffff9fc8, array=3D0x7fff8= 9f0e000, n=3D6) > at ../../emacs/src/igc.c:1233 > res =3D 30 > i =3D 0 > _ss =3D 0x7fffffff9fc8 > _mps_zs =3D 22 > _mps_ufs =3D 549755813896 > _mps_wt =3D > _mps_w =3D 133143986160 > #9 0x000055555590674b in fix_vectorlike (ss=3D0x7fffffff9fc8, v=3D0x7fff= 89f0dff0) > at ../../emacs/src/igc.c:1974 > res =3D 32767 > size =3D 6 > _ss =3D 0x7fffffff9fc8 > _mps_zs =3D 22 > _mps_ufs =3D 549755813896 > _mps_wt =3D > _mps_w =3D 133143986160 > #10 0x0000555555908d53 in fix_vector (ss=3D0x7fffffff9fc8, v=3D0x7fff89f0= dff0) > --Type for more, q to quit, c to continue without paging-- > at ../../emacs/src/igc.c:2646 > obj_ =3D 0x7fff89f0dff0 > res =3D 0 > _ss =3D 0x7fffffff9fc8 > _mps_zs =3D 22 > _mps_ufs =3D 549755813896 > _mps_wt =3D > _mps_w =3D 133143986160 > #11 0x00005555559061d4 in dflt_scan_obj > (ss=3D0x7fffffff9fc8, base_start=3D0x7fff89f0dff0, > base_limit=3D0x7fff89f0f000, closure=3D0x0) I've stripped the rest of the backtrace because it's probably not too relevant. What Emacs is doing here is allocate a cons, which triggers a GC step because the allocation point needs more memory. In this GC step, we scans a memory area containing a vector (or vectorlike) containing 6 elements. The first element is a string for which MPS_FIX1 says it needs to be passed to MPS_FIX2, but MPS_FIX2 aborts. I have no idea why that is. I've added Pip in CC, maybe he has ideas. > In GNU Emacs 31.0.50 (build 2, x86_64-pc-linux-gnu, X toolkit, cairo > version 1.18.2) of 2024-11-25 built on sky > Repository revision: fad5e872ca05e45afa42ad5fc77b6890c051e4a6 > Repository branch: scratch/igc > Windowing system distributor 'The X.Org Foundation', version 11.0.12101014 > System Description: Debian GNU/Linux trixie/sid > > Configured using: > 'configure CPPFLAGS=3D-I/home/oscar/lib/mps/include > LDFLAGS=3D-L/home/oscar/lib/mps/lib --with-native-compilation > --with-tree-sitter --without-toolkit-scroll-bars --with-x-toolkit=3Dlucid > --with-modules --without-imagemagick --with-mps=3Dyes > --enable-checking=3Dyes,glyphs --enable-check-lisp-object-type > 'CFLAGS=3D-O0 -g3'' Could you please configure --with-mps=3Ddebug? That uses the debug version of MPS which is more picky, but slower. Also, --enable-checking=3Digc_debug is probably better. IIRC, that's not on by default, and we probably don't need the other checks. Maybe we some further hints that way. =20=20