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: profiler Date: Fri, 21 Jun 2024 10:49:41 +0000 Message-ID: <6l0QgWrRSaN5-vKBUqAO1SaW-DUtxBNNSqU_w98pQy-u7eFL8hnuX7PbY3RKDMSoQWALFCSqS4w0K5gowCsHZju_ODw6UbRYjZEVONLvqcc=@protonmail.com> References: <87v823xvq1.fsf@localhost> <86cyobmmhc.fsf@gnu.org> <87r0crxung.fsf@localhost> <87le2zxsqx.fsf@localhost> 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="40816"; mail-complaints-to="usenet@ciao.gmane.io" Cc: =?utf-8?Q?Gerd_M=C3=B6llmann?= , Eli Zaretskii , emacs-devel@gnu.org, eller.helmut@gmail.com To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 21 12:57:08 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 1sKbx5-000AJT-GO for ged-emacs-devel@m.gmane-mx.org; Fri, 21 Jun 2024 12:57:07 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKbwq-0002RJ-Tk; Fri, 21 Jun 2024 06:56:52 -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 1sKbq4-00008K-AF for emacs-devel@gnu.org; Fri, 21 Jun 2024 06:49:52 -0400 Original-Received: from mail-4322.protonmail.ch ([185.70.43.22]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sKbq2-00051b-0X; Fri, 21 Jun 2024 06:49:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1718966986; x=1719226186; bh=kAxWFDY2bdFCBh5YzQwXsCc+77a9mWw9dzWT02d+2rk=; 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=azGyfGURAHPQtrnMPyMQ54pn2l2ZmTznUc7FFxgciEnJyp64Og8nfWpZmvRKz2gXv ecIok6E1ENKk+a3mZdNQESIB86QtuFlZM9SS69v4ET5p7Z7eTs0LLWRsUJlMGFKj1W 56Dtn0P8GJd2xbXJkn+9IQgam+MPeJnVZsKfDFi+4e5JwhPM5xzSUVzYNDMUj2k2fi Hgjaap/vAaa7DpLcFEaEomJmOCfWOQOu6f3B61EJREm/1KTWMVRbYjpfyNtBjO753W 2KEFJj8CzLLEe8KhhjZzQ2rAm/dVL1uC9OSp44lxib8YQeB/IM6SsPj86NiVeGKGyu BJk/3n//CQeDA== In-Reply-To: <87le2zxsqx.fsf@localhost> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: 4ad79f9d44385b417eab6df5e5884d56ece9aaa2 Received-SPF: pass client-ip=185.70.43.22; envelope-from=pipcet@protonmail.com; helo=mail-4322.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 21 Jun 2024 06:56:50 -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:320384 Archived-At: On Thursday, June 20th, 2024 at 20:29, Ihor Radchenko = wrote: > Gerd M=C3=B6llmann gerd.moellmann@gmail.com writes: > GNU gdb (Gentoo 14.2 vanilla) 14.2 > Copyright (C) 2023 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.ht= ml >=20 > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. > Type "show copying" and "show warranty" for details. > This GDB was configured as "x86_64-pc-linux-gnu". > Type "show configuration" for configuration details. > For bug reporting instructions, please see: > https://bugs.gentoo.org/. >=20 > Find the GDB manual and other documentation resources online at: > http://www.gnu.org/software/gdb/documentation/. This is the relevant backtrace: > Thread 1 "emacs" received signal SIGSEGV, Segmentation fault. > 0x00005555558b53d6 in PSEUDOVECTORP (a=3D0x7fffe6dde715, code=3D32) at /h= ome/yantar92/Git/emacs/src/lisp.h:1104 > 1104 && ((XUNTAG (a, Lisp_Vectorlike, union vectorlike_header)->size >=20 > (gdb) bt > #0 0x00005555558b53d6 in PSEUDOVECTORP (a=3D0x7fffe6dde715, code=3D32) at= /home/yantar92/Git/emacs/src/lisp.h:1104 > #1 0x00005555558b567f in CLOSUREP (a=3D0x7fffe6dde715) at /home/yantar92/= Git/emacs/src/lisp.h:3368 > #2 0x00005555558b5b80 in trace_hash (trace=3D0x555556329400, depth=3D16) = at profiler.c:189 > #3 0x00005555558b5eab in record_backtrace (plog=3D0x555555fd0960 , c= ount=3D2) at profiler.c:291 >=20 > #4 0x00005555558b60fd in add_sample (plog=3D0x555555fd0960 , count= =3D2) at profiler.c:353 >=20 > #5 0x00005555558b6153 in handle_profiler_signal (signal=3D27) at profiler= .c:396 > #6 0x0000555555777704 in deliver_process_signal (sig=3D27, handler=3D0x55= 55558b6104 ) at sysdep.c:1758 >=20 > #7 0x00005555558b6175 in deliver_profiler_signal (signal=3D27) at profile= r.c:402 > #8 0x00007ffff5855470 in () at /lib64/libc.so.6 This is SIGPROF. > #9 0x00007ffff5922d07 in mprotect () at /lib64/libc.so.6 > #10 0x000055555595c498 in ProtSet (base=3D0x7fffe2d86000, limit=3D, mode=3D0) at protix.c:105 >=20 > #11 0x000055555594f7dd in shieldProtLower (shield=3Dshield@entry=3D0x7fff= f7fc2700, seg=3Dseg@entry=3D0x7fffe8001988, mode=3Dmode@entry=3D3) at shiel= d.c:305 > #12 0x0000555555950417 in ShieldExpose (arena=3Darena@entry=3D0x7ffff7fc2= 000, seg=3Dseg@entry=3D0x7fffe8001988) at shield.c:737 > #13 0x000055555595f045 in amcSegFix (seg=3D0x7fffe8001988, ss=3D0x7ffffff= fa690, refIO=3D0x7fffffffa0f8) at poolamc.c:1594 > #14 0x0000555555948d31 in SegFix (seg=3D0x7fffe8001988, ss=3D0x7fffffffa6= 90, refIO=3D0x7fffffffa0f8) at seg.c:793 > #15 0x00005555559550c0 in _mps_fix2 (mps_ss=3D0x7fffffffa698, mps_ref_io= =3D0x7fffffffa160) at trace.c:1433 > #16 0x00005555558b83af in fix_lisp_obj (ss=3D0x7fffffffa698, pobj=3D0x7ff= feb08b038) at igc.c:675 > #17 0x00005555558b86b5 in fix_array (ss=3D0x7fffffffa698, array=3D0x7fffe= b08b038, n=3D4) at igc.c:801 > #18 0x00005555558babf6 in fix_vectorlike (ss=3D0x7fffffffa698, v=3D0x7fff= eb08b030) at igc.c:1554 > #19 0x00005555558bc692 in fix_vector (ss=3D0x7fffffffa698, v=3D0x7fffeb08= b030) at igc.c:2086 > #20 0x00005555558ba757 in dflt_scan_obj (ss=3D0x7fffffffa698, base_start= =3D0x7fffeb08b028, base_limit=3D0x7fffeb08c608, closure=3D0x0) at igc.c:148= 1 > #21 0x00005555558baac4 in dflt_scanx (ss=3D0x7fffffffa698, base_start=3D0= x7fffeb08b000, base_limit=3D0x7fffeb08c608, closure=3D0x0) at igc.c:1531 > #22 0x00005555558bab63 in dflt_scan (ss=3D0x7fffffffa698, base_start=3D0x= 7fffeb08b000, base_limit=3D0x7fffeb08c608) at igc.c:1542 > #23 0x000055555595568f in TraceScanFormat (ss=3Dss@entry=3D0x7fffffffa690= , base=3Dbase@entry=3D0x7fffeb08b000, limit=3Dlimit@entry=3D0x7fffeb08c608)= at trace.c:1539 > #24 0x000055555595f609 in amcSegScan (totalReturn=3D0x7fffffffa68c, seg= =3D0x7fffe8289870, ss=3D0x7fffffffa690) at poolamc.c:1427 > #25 0x0000555555948c6f in SegScan (totalReturn=3DtotalReturn@entry=3D0x7f= ffffffa68c, seg=3Dseg@entry=3D0x7fffe8289870, ss=3Dss@entry=3D0x7fffffffa69= 0) at seg.c:775 > #26 0x0000555555954ae1 in traceScanSegRes (ts=3Dts@entry=3D1, rank=3Drank= @entry=3D1, arena=3Darena@entry=3D0x7ffff7fc2000, seg=3Dseg@entry=3D0x7fffe= 8289870) at trace.c:1205 > #27 0x0000555555954beb in traceScanSeg (ts=3Dts@entry=3D1, rank=3D1, aren= a=3Darena@entry=3D0x7ffff7fc2000, seg=3Dseg@entry=3D0x7fffe8289870) at trac= e.c:1267 > #28 0x0000555555954d63 in TraceSegAccess (arena=3Darena@entry=3D0x7ffff7f= c2000, seg=3Dseg@entry=3D0x7fffe8289870, mode=3Dmode@entry=3D1) at trace.c:= 1320 > #29 0x000055555594959b in SegWholeAccess (seg=3D0x7fffe8289870, arena=3D0= x7ffff7fc2000, addr=3D0x7fffeb08c590, mode=3D1, context=3D0x7fffffffa8d0) a= t seg.c:1262 > #30 0x0000555555948309 in SegAccess > (seg=3D0x7fffe8289870, arena=3Darena@entry=3D0x7ffff7fc2000, addr=3Daddr@= entry=3D0x7fffeb08c590, mode=3D1, context=3Dcontext@entry=3D0x7fffffffa8d0)= at seg.c:723 > #31 0x0000555555928f51 in ArenaAccess (addr=3D0x7fffeb08c590, mode=3D, mode@entry=3D3, context=3Dcontext@entry=3D0x7fffffffa8d0) at g= lobal.c:671 >=20 > #32 0x000055555595c6e2 in sigHandle (sig=3D, info=3D0x7fff= ffffabf0, uap=3D0x7fffffffaac0) at protsgix.c:97 >=20 > #33 0x00007ffff5855470 in () at /lib64/libc.so.6 > This is SIGSEGV. So, yes, what I described is precisely what we're seeing in the backtrace. Pip