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: [scratch/igc] 985247b6bee crash on Linux, KDE, Wayland Date: Thu, 05 Sep 2024 11:09:49 +0000 Message-ID: <87plpis6ff.fsf@protonmail.com> References: <8734mezkgo.fsf@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="7671"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Eval EXEC Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 05 13:28:12 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 1smAeq-0001pa-JR for ged-emacs-devel@m.gmane-mx.org; Thu, 05 Sep 2024 13:28:12 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smAdn-0001ta-4T; Thu, 05 Sep 2024 07:27:07 -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 1smANE-0004fO-Jz for emacs-devel@gnu.org; Thu, 05 Sep 2024 07:10:02 -0400 Original-Received: from mail-40131.protonmail.ch ([185.70.40.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1smANC-0008UR-Fn for emacs-devel@gnu.org; Thu, 05 Sep 2024 07:10:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1725534594; x=1725793794; bh=IrjDbFEVyDfFe+7CvXgT7+2lpFAgdm/W4M2SLfMKH3o=; 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=DHgbtLxXBdgxgtorxUp616mHxFb4WS/yQn2yd5J9VzN8lcHrmWvqhQ/ro8PcLRWno pl8aeZ4yx5+Z+4Mjtljrg189l+P6Hyqdk16Gy0QTui5nnb3slTYTC14v8pUnSCDNxb zMJ2olvJU3HsW6icTGqyUWKaRVbeiOiLU7caIo00HlGchDvfK9R1H0SzIU8YIAwqH8 Q6bNZZusS0RARsuZeE0WWPTl/JG21NDfQw04sepaYBPmCzmljmL0vL8h94r0DTeAq7 8kf0uPBR+jyyFTd6dXSguCxR8O2atMUikBGKp447ors2p5Po/1QNtG95yekz3K7s93 NzK55XQXn8bEg== In-Reply-To: <8734mezkgo.fsf@gmail.com> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: 807f3701df9770b694a297448b0840d6bc17ec69 Received-SPF: pass client-ip=185.70.40.131; envelope-from=pipcet@protonmail.com; helo=mail-40131.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_H3=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: Thu, 05 Sep 2024 07:27:05 -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:323397 Archived-At: "Eval EXEC" writes: > Hello, > I'm helping to test scratch/igc branch, commit: 985247b6bee Thanks for the reports! > I build emacs by: > ``` > make extraclean > ./autogen.sh \ > && ./configure CFLAGS=3D'-O3 -mtune=3Dnative -march=3Dnative' \ > --prefix=3D$(realpath ../emacs-build/$(git branch --show-current | sed = 's/\//_/g'))\ > --with-mps=3Dyes \ > --with-imagemagick \ > --with-modules \ > --without-compress-install \ > --with-native-compilation --with-mailutils\ > --enable-link-time-optimization \ > --with-tree-sitter --with-xinput2 \ > --with-dbus --with-native-compilation=3Daot \ > --with-file-notification=3Dinotify\ > && make -j30 install > ``` What's your CPU, and which compiler is in use? "-march=3Dnative" means "optimize for the current CPU", so it's difficult to reproduce crashes without that knowledge. I'd recommend these CFLAGS: -g3 -ggdb -fno-omit-frame-pointer in addition to what you have. > #0 0x00007f84a90a2efc in __pthread_kill_implementation () from /nix/stor= e/dbcw19dshdwnxdv5q2g6wldj6syyvq7l-glibc-2.39-52/lib/libc.so.6 > #1 0x00007f84a9052e86 in raise () from /nix/store/dbcw19dshdwnxdv5q2g6wl= dj6syyvq7l-glibc-2.39-52/lib/libc.so.6 > #2 0x0000000000429886 in terminate_due_to_signal () > #3 0x0000000000431d79 in igc_assert_fail.lto_priv[cold] () > #4 0x00000000007b0e60 in LockClaim () > #5 0x00000000007ddea5 in ArenaEnterLock () > #6 0x00000000007e01a1 in mps_ap_fill () > #7 0x00000000006e74b6 in alloc_impl.lto_priv () > #8 0x000000000060993b in list2 () > #9 0x000000000042da87 in xsignal2 () > #10 0x000000000042c379 in wrong_type_argument () > #11 0x0000000000430730 in get_process.lto_priv[cold] () > #12 0x00000000006bd653 in process_send_signal () > #13 0x00000000006be017 in kill_buffer_processes () > #14 0x000000000058efb5 in shut_down_emacs () > #15 0x0000000000429852 in terminate_due_to_signal () > #16 0x000000000042a38f in handle_sigsegv.lto_priv[cold] () > #17 > #18 0x00007f84a905316b in kill () from /nix/store/dbcw19dshdwnxdv5q2g6wld= j6syyvq7l-glibc-2.39-52/lib/libc.so.6 > #19 0x00000000007e3919 in sigHandle () > #20 > #21 0x000000000075d716 in dflt_scan_obj.isra () > #22 0x00000000006e288d in dflt_scan () > #23 0x00000000007979d6 in amcSegScanNailedRange () > #24 0x00000000007b07b2 in amcSegScan () > #25 0x00000000007d27fc in traceScanSegRes () > #26 0x00000000007d29b9 in traceScanSeg () > #27 0x00000000007d31f6 in TraceAdvance () > #28 0x00000000007d3771 in TracePoll () > #29 0x00000000007d397b in ArenaPoll () > #30 0x00000000007e01ef in mps_ap_fill () > #31 0x00000000006e74b6 in alloc_impl.lto_priv () > #32 0x000000000066f9dc in copy_font_spec () Can you disassemble 'copy_font_spec' and 'Flist' by running: $ gdb /path/to/emacs (gdb) disass copy_font_spec (gdb) disass Flist and post the output? Also, when you post backtraces, once you've enabled '-g3 -ggdb', can you try using "bt full" rather than "bt" to get more useful backtraces? > What information should I provide to help investigating this? Ideally, you could run emacs from within gdb and keep the gdb session open after a crash (but remember to use "handle SIGSEGV nostop pass" if you don't source .gdbinit which should do that automatically, or it will stop at the first (harmless) SIGSEGV). Please let us know if and when you get a crash that way and we can hopefully debug this further. Thanks! Pip