From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.devel Subject: Re: MPS: Crash when switching to buffer Date: Mon, 01 Jul 2024 14:14:47 +0000 Message-ID: References: <87v81pbgzi.fsf@localhost> <86a5j1fhd1.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="39484"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Ihor Radchenko , emacs-devel@gnu.org, gerd.moellmann@gmail.com, eller.helmut@gmail.com To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jul 01 16:42:24 2024 Return-path: Envelope-to: ged-emacs-devel@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 1sOIEZ-0009vd-V0 for ged-emacs-devel@m.gmane-mx.org; Mon, 01 Jul 2024 16:42:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sOIDi-0003Pi-Hl; Mon, 01 Jul 2024 10:41:30 -0400 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 1sOHo1-0002Kh-BF for emacs-devel@gnu.org; Mon, 01 Jul 2024 10:15:01 -0400 Original-Received: from mail-4316.protonmail.ch ([185.70.43.16]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sOHny-000440-5w; Mon, 01 Jul 2024 10:14:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1719843290; x=1720102490; bh=H5Q/U1/0Pza2M+tKpF9kVjGq9S24PmAHatRMY37WuTU=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=gfvq16RpMOSr5npNVAQPtYhz2r4Pm+qYDkLGgXrEOcGMst7xKvYrAJlpxnE/kpPdN 8tHbUDAuBZBQy/YqRmlpXduhixF2QrB7Pa0mheOSsr76dqJjqRJDEsF2JQ83c9RA47 kI9s1nH1s4HUgVNQe3kujJolEO0kTGlJfhTmbP36vQNjRm9VsBEkBngIKnawX3xh/P r8S6WAunOxpMV16+fG/1uCI83iNTLnbUt2nsfL4POZNCTWK6A1NlJKCzeyOZCyTseK iTtFTKkWN9vdWq6euQIlpU55cTGnqN7PHuSDktA9F8EKGLx35Tn3mqDpKnUGcgEdsq DSg3E+xVyWd8A== In-Reply-To: <86a5j1fhd1.fsf@gnu.org> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: 79a3c8375a20066ce0bc15c2d029d45507c631b7 Received-SPF: pass client-ip=185.70.43.16; envelope-from=pipcet@protonmail.com; helo=mail-4316.protonmail.ch X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 01 Jul 2024 10:41:28 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:321027 Archived-At: On Monday, July 1st, 2024 at 12:04, Eli Zaretskii wrote: > > From: Ihor Radchenko yantar92@posteo.net >=20 > > Cc: Gerd M=C3=B6llmann gerd.moellmann@gmail.com, Eli Zaretskii > > eliz@gnu.org, > > eller.helmut@gmail.com > > Date: Mon, 01 Jul 2024 09:26:25 +0000 > >=20 > > Thread 1 "emacs" hit Breakpoint 1, terminate_due_to_signal (sig=3Dsig@e= ntry=3D11, backtrace_limit=3Dbacktrace_limit@entry=3D40) at emacs.c:443 > > 443 { > > (gdb) bt > > #0 terminate_due_to_signal (sig=3Dsig@entry=3D11, backtrace_limit=3Dbac= ktrace_limit@entry=3D40) at emacs.c:443 > > #1 0x00005555556e446b in handle_fatal_signal (sig=3Dsig@entry=3D11) at = sysdep.c:1800 > > #2 0x00005555556e44d0 in deliver_thread_signal (sig=3D11, handler=3D0x5= 555556e4457 ) at sysdep.c:1792 > > #3 deliver_fatal_thread_signal (sig=3Dsig@entry=3D11) at sysdep.c:1812 > > #4 0x00005555556e44fd in handle_sigsegv (sig=3D11, siginfo=3D, arg=3D) at sysdep.c:1950 > > #5 0x00007ffff3048050 in () at /lib64/libc.so.6 > > #6 0x00007ffff304822b in kill () at /lib64/libc.so.6 > > #7 0x0000555555880af9 in sigHandle (sig=3D, info=3D, uap=3D) at /home/yantar92/Dist/mps/code/protsgix= .c:114 > > #8 0x00007ffff3048050 in () at /lib64/libc.so.6 > > #9 XCDR (c=3DXIL(0x32ec042e3)) at /home/yantar92/Git/emacs/src/lisp.h:1= 522 > > #10 plist_get (plist=3D, prop=3Dprop@entry=3DXIL(0x8220)= ) at fns.c:2611 > > #11 0x000055555575a8de in Fget (symbol=3Dsymbol@entry=3DXIL(0x2aaa92d6f= 288), propname=3Dpropname@entry=3DXIL(0x8220)) at fns.c:2631 > > #12 0x0000555555664370 in resolve_face_name (face_name=3DXIL(0x2aaa92d6= f288), signal_p=3Dsignal_p@entry=3Dfalse) at xfaces.c:2004 > > #13 0x0000555555669e57 in get_lface_attributes > > (w=3Dw@entry=3D0x7fffef8a0068, f=3Df@entry=3D0x7fffe26fd610, face_name= =3D, attrs=3Dattrs@entry=3D0x7fffffff5270, signal_p=3Dsignal= _p@entry=3Dfalse, named_merge_points=3D, named_merge_points@= entry=3D0x0) at xfaces.c:2105 > > #14 0x0000555555670ea9 in lookup_derived_face > > (w=3D0x7fffef8a0068, f=3Df@entry=3D0x7fffe26fd610, symbol=3D, face_id=3Dface_id@entry=3D45, signal_p=3Dsignal_p@entry=3Dfalse) at x= faces.c:5279 > > #15 0x0000555555671ef4 in merge_faces (w=3D, face_name= =3D, face_name@entry=3DXIL(0x30), face_id=3D,= base_face_id=3D45) > > at xfaces.c:7128 > > #16 0x00005555555c0751 in next_element_from_display_vector (it=3D0x7fff= ffff7dc0) at xdisp.c:9045 At first glance, the lface_id_to_name "vector" (just a pointer to Lisp_Obje= ct, not a Lisp_Vector) isn't allocated using igc methods, so references in = it might not be traced. Is that possible, Gerd? I confess I'm not totally s= ure how xmalloc and friends get translated in the MPS build... Pip