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 16:04:42 +0000 Message-ID: <87a5gmrsrr.fsf@protonmail.com> References: <8734mezkgo.fsf@gmail.com> <87plpis6ff.fsf@protonmail.com> <87bk124aip.fsf@gmail.com> <87h6aus5yz.fsf@protonmail.com> <87tteu2vfq.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="8551"; 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 18:06:53 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 1smF0W-000233-V6 for ged-emacs-devel@m.gmane-mx.org; Thu, 05 Sep 2024 18:06:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smF05-00066S-03; Thu, 05 Sep 2024 12:06:25 -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 1smEya-0002sb-6j for emacs-devel@gnu.org; Thu, 05 Sep 2024 12:04:52 -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 1smEyY-0005H0-3C for emacs-devel@gnu.org; Thu, 05 Sep 2024 12:04:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1725552287; x=1725811487; bh=JCEEr8o7HjLyx19rBR2nz73Fn3taw7S8l+G/XK8u48g=; 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=Vzezs5uPkeHh3SKY7Xt9mhYSThWUa+hdIqlYAmbIjwIlNOq0TbOFphsiE1CkJ/FMF VcdxfnLqj2b8aZbm/SNbKg/+WR2+uh7cAFSg9qlkkVWBG4+7qxwETQBPQAIlfOkVFo dGJwaqHrMd9BFMtikhWj35jRam6xOsycc5GK3LPehDxCRveldfGzR0OrLJe40S2HDc d3og3CbgFoSngWB/hPs0vJLM4+Jmbutd0FRH77iOP6pVPyQzyoUZDbd1T3y38AbDJ7 QFH8IK1xeCZXZI7/0USq7tAg7iEGy+cSVu/oFxGtmBwKCwJm6GcB77MjZ5pXvyDy6O 6LJeOVLq4ep7Q== In-Reply-To: <87tteu2vfq.fsf@gmail.com> Feedback-ID: 112775352:user:proton X-Pm-Message-ID: fe009ff87f9f0adf269ab080eb9b6069329ba0f0 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 12:06:23 -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:323412 Archived-At: "Eval EXEC" writes: > Pip Cet writes: >> "Eval EXEC" writes: >>> Pip Cet writes: >>>> "Eval EXEC" writes: >>>> >>> 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? > > My gcc version is : gcc (GCC) 13.2.0 And that's a -march=3Draptorlake -mtune=3Draptorlake CPU, I think. The closest I have is a version of GCC 13.3, and that generates what looks like working code with -march=3Draptorlake -mtune=3Draptorlake; it stores a= n interior pointer in %r15 while calling the allocation function, which is stored in _setjmp and should be traced properly. >>>> 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... > > emacs on =EE=82=A0 scratch/igc via =E2=9D=84=EF=B8=8F impure > =E2=9D=AF gdb ../emacs-build/scratch_igc/bin/emacs > GNU gdb (GDB) 14.2 > Copyright (C) 2023 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > 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-unknown-linux-gnu". > Type "show configuration" for configuration details. > For bug reporting instructions, please see: > . > Find the GDB manual and other documentation resources online at: > . > > For help, type "help". > Type "apropos word" to search for commands related to "word"... > Reading symbols from ../emacs-build/scratch_igc/bin/emacs... > (gdb) disass copy_font_spec > Dump of assembler code for function copy_font_spec: > Address range 0x626760 to 0x62695e: [...] > End of assembler dump. > (gdb) Those look okay to me. That's with -O2, right? Can you try compiling with -O3 and disassembling those functions to see what the other bug was? At first glance, the new crash looks like a different bug... Pip