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: Fri, 06 Sep 2024 21:03:20 +0800 Message-ID: <87bk11c4tj.fsf@gmail.com> References: <8734mezkgo.fsf@gmail.com> <875xrani8k.fsf@gmail.com> <86bk122azc.fsf@gnu.org> <87v7zagcal.fsf@gmail.com> <867cbp3nw7.fsf@gnu.org> <87v7z9msrl.fsf@gmail.com> <874j6tqxyg.fsf@gmail.com> <87jzfpfhmf.fsf@protonmail.com> <87o751z3zr.fsf@gmail.com> <87bk11fcv2.fsf@protonmail.com> <86jzfp123l.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20310"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Pip Cet , gerd.moellmann@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 06 15:48:29 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 1smZK9-00056o-Hg for ged-emacs-devel@m.gmane-mx.org; Fri, 06 Sep 2024 15:48:29 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1smZJI-0003mt-5L; Fri, 06 Sep 2024 09:47:36 -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 1smYcd-0002Eu-JH for emacs-devel@gnu.org; Fri, 06 Sep 2024 09:03:31 -0400 Original-Received: from mail-pg1-x541.google.com ([2607:f8b0:4864:20::541]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1smYcc-0005cA-3f; Fri, 06 Sep 2024 09:03:31 -0400 Original-Received: by mail-pg1-x541.google.com with SMTP id 41be03b00d2f7-6e7b121be30so1442094a12.1; Fri, 06 Sep 2024 06:03:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725627808; x=1726232608; 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=PWlbDXC03D7eXV+zgHUfIM9PSbiM9U5NhLVAqOkdBww=; b=SBCAqHbc7aNhoNbVYjaDUIQFbmEyUm3m1q+rmEGIvwZ2yjgo4bvB+5W0vQmNRv+UDf Rxt2KMhLWeqWUmD7hwSEPeAlxKFdAArvd6qgXQf658YlNMR1u5o+RfDLFFISH88vYx1o rPwH2CP4zuxmLeLX/PUcFHLzZ+3qHuDKpIiK2AVOA2w/sXG3LyBUZz2xdkVyy6q49fUz grfUOsPIwdTX7Y5OKqSpQExfRF8AtdoZlzWLuscxoG4dn77P5BpHv9LFE3Hbo7NsBObW A7QbxPaDiH3Kqkc4y4FZq7Uumi1fqHFH1fha3i0xWXgjwUGIDKGneKIUWpo8dwr6mpyN G9Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725627808; x=1726232608; 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=PWlbDXC03D7eXV+zgHUfIM9PSbiM9U5NhLVAqOkdBww=; b=LB0BWG6FQ7hbvVzwBjzh4LKptaE/uq6mwx1ph2B+ZfEZfnZnADBlaCBgJH8aPOsVtd uOQWq6hFQrRLBs2sEbFHuUZkZhZ53lSlCeZaYq/p5kpXgZMoW7gt5Wx76EFTBPVbbAzS WlYT9JHg0E8qv2fGXkEs9NmDy9+o80FgrjreKLYT0PUQOPOes0e9OzuqpbYuZCwSNWvg sMeCP8Nj9HeYgkRSKoZkViYltBxBF9C1nibZLtJCBF41YTbCUsvbkqMG2KXgs71gW5V0 75mQa2MPCovXTiLPsYaCjSwe/xj7dkjj2ilqbQn+8OTWRtxhfU7FyEouKeqZlI3GNYLZ w16g== X-Forwarded-Encrypted: i=1; AJvYcCXTECXghiTBkJalpjg+LrEVy8GAYZZrVEYdnwoYKb10i7u72IDcyG8mBB5z02fHIL3kkFt6hOQGd5XC0w==@gnu.org X-Gm-Message-State: AOJu0YxUHAueEkBkWKm84A4A9ncoYB2Dska8fZubT9Bzf1pa/z+LFqbZ CP9b/Kn/KmWcpz99h91r1sCt6NwxBIrEbyv5sqLdSFG6My7Y1vZJHHqnGFu7Ksg= X-Google-Smtp-Source: AGHT+IEmJgbvb4ezXrPz+VvhIhQNjsgKk64B7cuJbMzECQOcsX+J6I3PcwtunowqqB/bKtLw1kvBCg== X-Received: by 2002:a17:90b:390f:b0:2d8:94f1:b572 with SMTP id 98e67ed59e1d1-2dad505d285mr2889256a91.18.1725627802884; Fri, 06 Sep 2024 06:03:22 -0700 (PDT) Original-Received: from localhost (144.34.182.14.16clouds.com. [144.34.182.14]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2dadbff2c8bsm1482329a91.1.2024.09.06.06.03.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Sep 2024 06:03:22 -0700 (PDT) In-Reply-To: <86jzfp123l.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 06 Sep 2024 13:57:34 +0300") Received-SPF: pass client-ip=2607:f8b0:4864:20::541; envelope-from=execvy@gmail.com; helo=mail-pg1-x541.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_REPLY=1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 06 Sep 2024 09:47:34 -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:323477 Archived-At: Eli Zaretskii writes: >> Date: Fri, 06 Sep 2024 07:41:24 +0000 >> From: Pip Cet >> Cc: Eli Zaretskii , gerd.moellmann@gmail.com, emacs-devel@gnu.org >> >> We need to look up a few builtin symbols: 0x12638 is the first one, >> corresponding to symbol index 1345. >> >> > 0x7f08addd0630: 0x00007f08addd066b 0x00000003df44f80d >> > 0x7f08addd0640: 0x0000000000000000 0x00007f08addd0683 >> > 0x7f08addd0650: 0x00000003df45220d 0x000000000000a5d0 >> >> 0xa5d0 is the next one, and that's index 758. >> >> > 0x7f08addd0660: 0x00007f08addd069b 0x00000003df45250d >> > 0x7f08addd0670: 0x0000000000000038 0x00007f08addd06b3 >> >> 0x38 is t. >> >> > 0x7f08addd0680: 0x00000003df44f90d 0x000000000000a5d0 >> > 0x7f08addd0690: 0x00007f08addd06cb 0x00000003df45230d >> > 0x7f08addd06a0: 0x00007f08addd06e3 0x0000000000000000 >> > 0x7f08addd06b0: 0x00000003df45260d 0x00007f0889546b70 >> > 0x7f08addd06c0: 0x00007f08936d87d3 0x00000003df44fa0d >> > 0x7f08addd06d0: 0x00007f08936ceb33 0x0000000000000000 >> > 0x7f08addd06e0: 0x00000003df44e70d 0x0000000000001538 >> >> 0x1538 is the last one, and that's index 97. >> >> In gdb, can you run >> >> (gdb) print defsym_name[97] >> (gdb) print defsym_name[758] >> (gdb) print defsym_name[1345] >> >> to see which symbol corresponds to each index? > > Isn't it easier to use xsymbol? Like this: > > (gdb) p 0x1538 > $8 = 5432 > (gdb) xsymbol > $14 = (struct Lisp_Symbol *) 0xde4370 > ":image" It's (gdb) p 0x1538 $12 = 5432 (gdb) xsymbol $13 = (struct Lisp_Symbol *) 0xd1d418 ":foreground" --