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:19:35 +0000 Message-ID: <87h6aus5yz.fsf@protonmail.com> References: <8734mezkgo.fsf@gmail.com> <87plpis6ff.fsf@protonmail.com> <87bk124aip.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="7565"; 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:10 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 1smAeo-0001n6-Fm for ged-emacs-devel@m.gmane-mx.org; Thu, 05 Sep 2024 13:28:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smAdp-00026r-Uh; Thu, 05 Sep 2024 07:27:09 -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 1smAWe-0007zH-O7 for emacs-devel@gnu.org; Thu, 05 Sep 2024 07:19:44 -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 1smAWc-0002E8-NT for emacs-devel@gnu.org; Thu, 05 Sep 2024 07:19:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1725535179; x=1725794379; bh=/IzGc1GDKWMCDWWvtP4UzfmTwVZP3PgH8lOxjjusbf8=; 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=eqr/JftbZ+InlXUsoExp0RcdLtEK8KQqDzCNc46EwRuN3ZGPhNY/2dyJjaSrEyRs6 Ee95pUUOxt/mPZ45eIChK+hoCCvOT1GlGJgQBTasC9A71ATVd3nIPXYtOS1y4cLwC5 IvhU5GJ9nX7aoUnMyvT+dtAymvwIugOPR1j+xcYpn9DT/8tPJmyDAgt0SMQh8yCr9o Lmq86aviRfyOcCl85tkDhaIQ4+9WfZVzj8/qxz3qrpB4gYrB9YH5cJHOKyLt43NS7a xJiivekABJv4KPWNGng5LdcpsBrw9md3wv3BgGCxaYRiVTVXs9MVjVJGzhlyj9ma0i U4FoN1NOoVWHw== In-Reply-To: <87bk124aip.fsf@gmail.com> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: 524828d7277ee82ab3effdfe6b8cbd912cfd172b Received-SPF: pass client-ip=185.70.43.16; envelope-from=pipcet@protonmail.com; helo=mail-4316.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: 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:323396 Archived-At: "Eval EXEC" writes: > Pip Cet writes: > >> "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 | se= d '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'm useing CPU: 13th Gen Intel(R) Core(TM) i9-13900H (20) @ 5.40 GHz Thanks! Which gcc version are you using? Does anyone know how to translate -march=3Dnative on that machine to an explicit -march=3D... argument? >> I'd recommend these CFLAGS: >> >> -g3 -ggdb -fno-omit-frame-pointer >> >> in addition to what you have. > > Thank you, now I'm going to compile scratch/igc branch by these CFLAGS. > >> Can you disassemble 'copy_font_spec' and 'Flist' by running: >> >> $ gdb /path/to/emacs >> (gdb) disass copy_font_spec >> (gdb) disass Flist > > Sorry, I have deleted the core dump file and the emacs binary. Can you disassemble them in the new emacs binary, that you're building now? I realize it's possible the code will be different due to the different CFLAGS, but as the crash happened with -fno-omit-frame-pointer there might be something else going on... > Thank you, now I'm going to recompile emacs by: > make extraclean > ./autogen.sh \ > && ./configure CFLAGS=3D'-g3 -ggdb -O2 -fno-omit-frame-pointer -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 > > Do you think it's right? That looks good to me! Thanks Pip