From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eval EXEC Newsgroups: gmane.emacs.devel Subject: Re: [scratch/igc] 985247b6bee crash on Linux, KDE, Wayland Date: Thu, 05 Sep 2024 19:15:10 +0800 Message-ID: <87bk124aip.fsf@gmail.com> References: <8734mezkgo.fsf@gmail.com> <87plpis6ff.fsf@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7828"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Pip Cet Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 05 13:28:14 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 1smAes-0001rg-7Q for ged-emacs-devel@m.gmane-mx.org; Thu, 05 Sep 2024 13:28:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smAdn-0001x0-Gg; 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 1smASK-0006kx-HQ for emacs-devel@gnu.org; Thu, 05 Sep 2024 07:15:16 -0400 Original-Received: from mail-pg1-x544.google.com ([2607:f8b0:4864:20::544]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1smASI-0001PI-GP for emacs-devel@gnu.org; Thu, 05 Sep 2024 07:15:16 -0400 Original-Received: by mail-pg1-x544.google.com with SMTP id 41be03b00d2f7-6bce380eb96so475606a12.0 for ; Thu, 05 Sep 2024 04:15:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725534913; x=1726139713; darn=gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=6OlgHDyXyZ0iAEUkv2NxY2RHs5aGIi17M1CviNCtwlk=; b=KkC8IT8tHrakQPD82PA+AP8Nw80TMDG2ZDvO/bf7mLgpN188E9CjHk5BI52Y0wIdH+ BJ5pj5xKxDNpjJBnAQyVPy2eRk4UwoGG8JNpiIRm7zpTU3hNAXoGxfzX1WWN1QbzuRjt xKCabb/sG+AfADqYXhbt3kOTmparqVtcCCG30XIPYk2ZYCvvZM33cHanMP973sqFZhB1 wbqwWx2DRWgJfuqly43ZFOn+9pSzCm2I06nZ8WydUZoJ8GniiNH945ISKNuM5IzFUUb1 7/5mqa+eKd58CLULOHaOJ0BwSa6aBGkxQiTPagiTHSmV8a6cbCeOAkZE8DLOnE3JDFnu W2Pg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725534913; x=1726139713; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6OlgHDyXyZ0iAEUkv2NxY2RHs5aGIi17M1CviNCtwlk=; b=NWo3cQESqdWqD4E04hfaFfIJJwh/F5O7jKgAKvBQXGDAqyA8+KwP43vrrRu8NvMuTk kHyy+qdhYBY6doehfs4nrL07jkJhhYpyHLRc+fnzFvSHQPZMy+HNfcWV25zHtMWy28mX Kiq46FWiKCueONzBy58Ozu+EutADHFNyQb4udzZ55y57BiZ/mYpUR7IGcUeUfgXxuMGp ZGNRg7olNxfQKhVTywL1cBXYuFPbRPh3rMzVt94Pb9Ttz1UWHuoF4uZQCy4hJB60WNjd znti41lOiIK7kl8LzNtkDpSUnjSK2gidvl2Gf+go/OhT3G/GO0UuVlfOzj/AYS3NX7yX 7ehw== X-Gm-Message-State: AOJu0YxiNumO8AP8ObziHavGEbNA079spw6tOzjUWmepEDTFyviEeyHx +CJA56vFWWygzUdRseq434zFNkW93lR1Lb6OO6BriKIdiEA96Q3UEQX5tp0bB7X1yQ== X-Google-Smtp-Source: AGHT+IHYGW+jz2qGXBg0Qaca3sXIaz03NYBH/7juiZAigmvQbTm+Rezs++BytTEPdJy1Db3INCoHgw== X-Received: by 2002:a05:6a20:2da6:b0:1ce:f2e6:c5e9 with SMTP id adf61e73a8af0-1cef2e6c5f8mr10429177637.1.1725534912486; Thu, 05 Sep 2024 04:15:12 -0700 (PDT) Original-Received: from localhost (144.34.182.14.16clouds.com. [144.34.182.14]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-717785b5a2csm3004753b3a.185.2024.09.05.04.15.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Sep 2024 04:15:12 -0700 (PDT) In-Reply-To: <87plpis6ff.fsf@protonmail.com> (Pip Cet's message of "Thu, 05 Sep 2024 11:09:49 +0000") Received-SPF: pass client-ip=2607:f8b0:4864:20::544; envelope-from=execvy@gmail.com; helo=mail-pg1-x544.google.com 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_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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:323399 Archived-At: 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='-O3 -mtune=native -march=native' \ >> --prefix=$(realpath ../emacs-build/$(git branch --show-current | sed 's/\//_/g'))\ >> --with-mps=yes \ >> --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=aot \ >> --with-file-notification=inotify\ >> && make -j30 install >> ``` > > What's your CPU, and which compiler is in use? "-march=native" 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 > 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. > 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. Thank you, now I'm going to recompile emacs by: make extraclean ./autogen.sh \ && ./configure CFLAGS='-g3 -ggdb -O2 -fno-omit-frame-pointer -mtune=native -march=native' \ --prefix=$(realpath ../emacs-build/$(git branch --show-current | sed 's/\//_/g'))\ --with-mps=yes \ --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=aot \ --with-file-notification=inotify\ && make -j30 install Do you think it's right? --