From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sean Devlin Newsgroups: gmane.emacs.bugs Subject: bug#74966: 31.0.50; Crash report (using igc on macOS) Date: Thu, 19 Dec 2024 20:54:41 +0900 Message-ID: References: <87y10b99nj.fsf@protonmail.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.300.87.4.3\)) 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="40371"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74966@debbugs.gnu.org To: Pip Cet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 19 12:57:35 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1tOF9q-000ANj-6k for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 19 Dec 2024 12:57:34 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOF9N-0002mj-SH; Thu, 19 Dec 2024 06:57:05 -0500 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 1tOF9L-0002mT-Ie for bug-gnu-emacs@gnu.org; Thu, 19 Dec 2024 06:57:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tOF9L-0004gJ-AB for bug-gnu-emacs@gnu.org; Thu, 19 Dec 2024 06:57:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:Date:In-Reply-To:From:Mime-Version:To:Subject; bh=ROmoJc9Yaonaq53J8hAj3WddSryX2RjrUfad6yYHMf0=; b=rbe0YOrxuHcE8a9cEqjKZqWRkNIa8RycpMu/VMeYJe9hnWYJ+OD7Frn6dyYNKCsors0oBEEyV67cp5DP4Ba7746L0GrIkdJOkD9jV1n7+ng0wjolmddWtbyF7u4d/k4OEjJZl/zp0XFUY2vy7THYt+i4xbm8tVfHw72jPzaw8Zom/LYTgTRjXHHWcgTx7LADaxCb58W9qezTB2ET/qdJpVlMa1pfVCBhwtWctuE4M14Pgr5wE69vX3Tj5cmAZgEy4ITEyME9WN4iyAm1E8J5PEsHe+MsUKKddM39WeI1t4Y4VsrALfvcOpXH3LEXiJVVHEiDGSNFMip5xT8Irl1Alg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tOF9L-0003mc-55 for bug-gnu-emacs@gnu.org; Thu, 19 Dec 2024 06:57:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Sean Devlin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 19 Dec 2024 11:57:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74966 X-GNU-PR-Package: emacs Original-Received: via spool by 74966-submit@debbugs.gnu.org id=B74966.173460936314439 (code B ref 74966); Thu, 19 Dec 2024 11:57:03 +0000 Original-Received: (at 74966) by debbugs.gnu.org; 19 Dec 2024 11:56:03 +0000 Original-Received: from localhost ([127.0.0.1]:37754 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tOF8N-0003ko-91 for submit@debbugs.gnu.org; Thu, 19 Dec 2024 06:56:03 -0500 Original-Received: from mail-pf1-f169.google.com ([209.85.210.169]:52705) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tOF8K-0003kH-Oi for 74966@debbugs.gnu.org; Thu, 19 Dec 2024 06:56:01 -0500 Original-Received: by mail-pf1-f169.google.com with SMTP id d2e1a72fcca58-725ed193c9eso589803b3a.1 for <74966@debbugs.gnu.org>; Thu, 19 Dec 2024 03:56:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toadstyle-org.20230601.gappssmtp.com; s=20230601; t=1734609295; x=1735214095; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ROmoJc9Yaonaq53J8hAj3WddSryX2RjrUfad6yYHMf0=; b=DJhqGswNBeKGpTTqrhQ7lvu1V4KzsnALkAV6TvLNHVhDm9ydRpVtF638euiLbZjGnz uiCqhqYgG/QFYBWSII4XPA3Aq6Kt8fKHcmmSD6bNZRaZD0xWFI51sqxdzvaPc1weQQ1X St+ue2JDmntlV8k85Fz3eowBDwcAXoU51iE4XX/c2MEkKft1Md8WxjxDxqFj84oIW8oB aoq0124reWL3WR0Czo2wQWtBpKsLVC1GFpLkYIh3xPu/76RqpzHuTOI/pYaW8kKA9V+m wo9nNfOgKrxn+r9bBKra0zVKy81i8UXisPNroOtOdsPyY+Bp7jddp7w2OVWxGwHD746R ZM7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734609295; x=1735214095; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ROmoJc9Yaonaq53J8hAj3WddSryX2RjrUfad6yYHMf0=; b=afv33xupBF4T/ibh8L91VsgfUoMyFLOVcinP/rDPFokLhKahGu2dV4l151ntbZu2TW fIKBWpTpCH7lr8z9QK/kT3Qg2Q1VeUIRSza7S/JNcXrYlZdZCYc3FK6QqgK0ltJYkrwQ Q3eRc8hByvDW9rsIWJ5N5I2vDyCUJG62avJJO6gAq26izV+ORqnMoTp5Y/Kazn45/OeO pIUosSaPwrDDW+rd5E4bWKAKyXK40orEtGHhxVaOBcaGsgGx87hIDoEwvXgE42QpMat9 deBfwC0qV54W5ZTr7wtWLHZ9owCuL6k9DblE193g1ybHhHk/O0e229K/861MRVwX0Ynm keSg== X-Gm-Message-State: AOJu0YznIG60dvpD3IsHO60h5MmDzCTMxhqYCxkUyiXkW9VDyEptw+Pz AWsm0bsVlQw1U+N+711ztkCNsiOcoRGXOE/W29gj5iw9/CvTXh4zynLsvePAbaPdCTChzydvFJW Z X-Gm-Gg: ASbGncvk9AbENDNdqlizFL9zCHO0pu6znjTnMwMBw+IxKeFwoALDXudEV1XPZ/ruNZL nXJg2ZeDOE5fAKX/IiXmojZXNpV5KmfuJNekJH4AFAGEQgTtoQ4IM0Ctd/xg26Bex6ZxkZhhgHW EPhrShr/O4T026Yir8IQhGNFwOci6ggiqFg7CohPqq2pcusn2vdSVVHxeqUIeTzxEYAaMdkkWte FyBKri676ri33i/eDkPESB0K6FCi/pONJ26YFd5aaqPtb75uLWQ8Tp57Eg8hOVN6je3Z2Kr8yxp yd3iA6z2nDOyfx8Ax3+TpLJJTw== X-Google-Smtp-Source: AGHT+IEYDWyORTc5eKS6NpIfTPuuIqS/dqSixGHnhIYDPaiMW+w9kQ13/Rb9ZTVgf29nC3RASjWlSw== X-Received: by 2002:a05:6a21:c8c:b0:1e1:a693:d623 with SMTP id adf61e73a8af0-1e5c763cc28mr4986214637.25.1734609294694; Thu, 19 Dec 2024 03:54:54 -0800 (PST) Original-Received: from smtpclient.apple (M111109070011.v4.enabler.ne.jp. [111.109.70.11]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72aad8344desm1110599b3a.54.2024.12.19.03.54.53 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Dec 2024 03:54:54 -0800 (PST) In-Reply-To: <87y10b99nj.fsf@protonmail.com> X-Mailer: Apple Mail (2.3826.300.87.4.3) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:297384 Archived-At: Hi Pip, > On Dec 19, 2024, at 8:48=E2=80=AFPM, Pip Cet = wrote: >=20 > "Sean Devlin" writes: >=20 >> Hi folks, >=20 > Hello! >=20 >> I was using Emacs and encountered a crash. >=20 > Thanks for reporting it! >=20 >> I am running on macOS, and I built Emacs from scratch/igc using the >> instructions on that branch. >>=20 >> I didn=E2=80=99t have Emacs running under a debugger, but I do have = some crash >> information captured by macOS. (See attached.) >=20 > I'm not entirely sure this is the actual segfault (the > EXC_BAD_ACCESS/SIGABRT combination is a little odd): >=20 > Exception Type: EXC_BAD_ACCESS (SIGABRT) > Exception Codes: KERN_INVALID_ADDRESS at 0x595453206f742068 -> = 0x000053206f742068 (possible pointer authentication failure) > Exception Codes: 0x0000000000000001, 0x595453206f742068 >=20 > That's an ASCII string that we treated as a pointer, it seems? >=20 > 13 apropos-7c1ecbdf-5d074552.eln 0x103407010 > = F6170726f706f732d736166652d646f63756d656e746174696f6e_apropos_safe_documen= tation_0 > + 208 >=20 > Is there any way for you to disassemble this function? At first = glance, > there's nothing unusual about it (it does use the symbol function, = which > always confuses me when (function x) was intended but #'x was what I > got). >=20 > I'm not quite sure where the apropos-7c1ecbdf-5d074552.eln file lives = on > macOS, but I think, if you can find, you can run >=20 > llvm-objdump -d apropos-7c1ecbdf-5d074552.eln >=20 > (which will produce a lot of output; we're interested in the section > belonging to the > = F6170726f706f732d736166652d646f63756d656e746174696f6e_apropos_safe_documen= tation_0 > section). >=20 > As this is reproducible, it's probably not a stack marking problem. Here=E2=80=99s the function disassembly (using otool): = _F6170726f706f732d736166652d646f63756d656e746174696f6e_apropos_safe_docume= ntation_0: 0000000000006f40 stp x29, x30, [sp, #-0x40]! 0000000000006f44 mov x29, sp 0000000000006f48 mov x1, #0x0 0000000000006f4c stp x21, x22, [sp, #0x20] 0000000000006f50 adrp x22, 20 ; 0x1a000 0000000000006f54 add x22, x22, #0x198 0000000000006f58 stp x19, x20, [sp, #0x10] 0000000000006f5c ldr x20, [x22] 0000000000006f60 ldr x2, [x20, #0x2940] 0000000000006f64 blr x2 0000000000006f68 cbz x0, 0x6fe8 0000000000006f6c adrp x21, 18 ; 0x18000 0000000000006f70 add x21, x21, #0xd78 0000000000006f74 mov x2, x0 0000000000006f78 add x1, x29, #0x30 0000000000006f7c mov x0, #0x2 0000000000006f80 ldr x3, [x21, #0x868] 0000000000006f84 stp x3, x2, [x29, #0x30] 0000000000006f88 ldr x2, [x20, #0x1c68] 0000000000006f8c blr x2 0000000000006f90 sub w1, w0, #0x2 0000000000006f94 mov x19, x0 0000000000006f98 tst x1, #0x3 0000000000006f9c b.ne 0x6fc8 0000000000006fa0 ldr x0, [x21, #0x10] 0000000000006fa4 mov x1, #0x0 0000000000006fa8 ldr x2, [x20, #0x2aa8] 0000000000006fac blr x2 0000000000006fb0 cbz x0, 0x6fe8 0000000000006fb4 ldp x21, x22, [sp, #0x20] 0000000000006fb8 mov x0, x19 0000000000006fbc ldp x19, x20, [sp, #0x10] 0000000000006fc0 ldp x29, x30, [sp], #0x40 0000000000006fc4 ret 0000000000006fc8 sub w1, w0, #0x5 0000000000006fcc tst x1, #0x7 0000000000006fd0 b.eq 0x7000 0000000000006fd4 mov x0, #0x0 0000000000006fd8 ldr x2, [x20, #0x2aa8] 0000000000006fdc mov x1, #0x0 0000000000006fe0 blr x2 0000000000006fe4 cbnz x0, 0x6fb4 0000000000006fe8 mov x19, #0x0 0000000000006fec ldp x21, x22, [sp, #0x20] 0000000000006ff0 mov x0, x19 0000000000006ff4 ldp x19, x20, [sp, #0x10] 0000000000006ff8 ldp x29, x30, [sp], #0x40 0000000000006ffc ret 0000000000007000 ldr x2, [x22] 0000000000007004 mov w1, #0x2 0000000000007008 ldr x2, [x2, #0x8] 000000000000700c blr x2 0000000000007010 tbnz w0, #0x0, 0x6fa0 0000000000007014 mov x0, #0x0 0000000000007018 b 0x6fd8 000000000000701c nop >=20 >> At the time, I was trying to use apropos-documentation. I invoked the >> command once, entered a string, and hit RET, and it signaled an = error. I >> tried to do this again and Emacs crashed. >>=20 >> I hope this is useful. Please let me know if there=E2=80=99s any = other >> information I can collect. >=20 > Definitely useful! >=20 > Thanks! >=20 > Pip >=20