From nobody Wed Sep 13 04:23:16 2023 X-Original-To: freebsd-arm@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RlnPx4s75z4td6c for ; Wed, 13 Sep 2023 04:23:33 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-25.consmr.mail.gq1.yahoo.com (sonic312-25.consmr.mail.gq1.yahoo.com [98.137.69.206]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RlnPw6bhnz3NqY for ; Wed, 13 Sep 2023 04:23:32 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=WC7rT3CZ; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.69.206 as permitted sender) smtp.mailfrom=marklmi@yahoo.com; dmarc=pass (policy=reject) header.from=yahoo.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1694579010; bh=CExM6MAKJaGrgQd0kS2wSlxL+QhtIXyYPLxtAy71gRE=; h=From:Subject:Date:Cc:To:References:From:Subject:Reply-To; b=WC7rT3CZlqULHSoj7HVdzxUPcTKdp8kCEUc/7y1Az+iBTbJgppTE3OrngKI4fJMH2FUGC9PzJssH6fxv6UU/FYQ3P55M/NWjwd+UtPrXN0eDLTJo4MCXzGGFmmhB1KhTyjSfFgenGMxf75G+sS7Rp3i2ZbbVbSjfqg9cnT/oEzNcpe4v1Xz9c/InYlvJbWDTBlI8YF1UEeageZge1LnmzxRjU34lbG62V+jlY31eEipkw54zcPmk/m1C7fEJeuWL+7PtZKxjA1SGsZIONPef8LLscttZVLRAbzg0e9VJmSvHuna9u/1LqsN0wcMy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Nkjf0p5rgBbOFce8MzHmGgdXcdYVGBqL6HGzZv8xGNcAcN jiW6DPPmSbhRI3XW3Jb9RtVN3CHvjTi6hh0vCwvd15R.bbrqz59DqPo6hnktwHCC6N5np4457uff pJfKtP4mhCV5PzCoECZFJtMOC__x1NPnlcqsMMr2_iIOZ51aUbPt_F3W8tVkfsiCOLkpYAI_Les9 .YNjdQ87rZMCss89P0Me3DqFF8TsvW_A8yHfqWWVySrA_udERy2BUcVPKKaQW8FZ2crmg6mXDDEI yqB1Y9hS.oFSCid5yaxIuLAK3bG5CHkUva_5c9GablIyK4YPz5deRs.tKzVLFBBWraBSNPnhA8Xh galrp60RlCbiv02KXEIjiYHSf8bntgbGU10L1DDiAWc9vshCnrei6cUcNZemuAlcWVsuLQjyvFX5 UMESx7SquGcG2iCkcv9NGpo5YONP6xiZ.umsa5BcchYqV7wxmWPsak1.NvR1cOYsXxX7WYOUTdRb JVem_7MCKjLnZ3tTVmw2Q1yv_zk3YaKK.zsd0grK9Cop9Diub2vrNwUv1hnvdGGOjNtd2qxUtxgS 9LZBcWgGNnW9S4Z4A3A4NESERNnIymxb8gNjNtjmaENZCqAHB3ycnt4sbQ4gvHECibxnEAliA8kI VVjM4g8I5apHaDfFX7mRMZ2ZUQ2NMi5nbzmdZTf0uMEehveOgwEfUueATG6cxrL1Qh8QCOg_UQAZ VFzXJ4g-- X-Sonic-MF: X-Sonic-ID: 9ed3d11b-79f2-45e3-b873-7694712c0e3e Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Wed, 13 Sep 2023 04:23:30 +0000 Received: by hermes--production-bf1-865889d799-ftn9r (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID b3bb00a061d654a5565f743e4acec337; Wed, 13 Sep 2023 04:23:28 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: aarch64 devel/gdb for kgdb use on main [so: 15] (and, likely, 14.0-????): dump core.txt.?'s kgdb backtraces are messed up Message-Id: <31BB2D7D-3A91-48AC-B29E-BDEA0CA59A73@yahoo.com> Date: Tue, 12 Sep 2023 21:23:16 -0700 Cc: Kyle Evans , Mark Johnston To: freebsd-ports+subscribe-nomail@freebsd.org, freebsd-arm X-Mailer: Apple Mail (2.3731.700.6) References: <31BB2D7D-3A91-48AC-B29E-BDEA0CA59A73.ref@yahoo.com> X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.48 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.98)[-0.980]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_THREE(0.00)[4]; FROM_HAS_DN(0.00)[]; TAGGED_RCPT(0.00)[subscribe-nomail]; TO_MATCH_ENVRCPT_SOME(0.00)[]; BLOCKLISTDE_FAIL(0.00)[98.137.69.206:server fail]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; MLMMJ_DEST(0.00)[freebsd-arm@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[98.137.69.206:from]; RCVD_VIA_SMTP_AUTH(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.69.206:from]; DKIM_TRACE(0.00)[yahoo.com:+]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:36647, ipnet:98.137.64.0/20, country:US]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4RlnPw6bhnz3NqY [I've cc'd the last 2 devel/gdb authors of kgdb-related material.] kgdb 13.1_4 is an improvement over 13.1_3 for aarch64 but is still broken. 13.1_3 example: 0x0000000000000000 in ?? () (kgdb) #0 0x0000000000000000 in ?? () #1 in ?? () Backtrace stopped: not enough registers or memory available to unwind = further (kgdb)=20 13.1_4 example: get_curthread () at /usr/src/sys/arm64/include/pcpu.h:77 77 __asm __volatile("ldr %0, [x18]" : "=3D&r"(td)); (kgdb) #0 get_curthread () at /usr/src/sys/arm64/include/pcpu.h:77 #1 doadump (textdump=3D0, textdump@entry=3D1576585744) at /usr/src/sys/kern/kern_shutdown.c:405 #2 0xffff0000000ec18c in db_dump (dummy=3D, = dummy2=3D, dummy3=3D, dummy4=3D) at /usr/src/sys/ddb/db_command.c:591 #3 0xffff0000000ebf88 in db_command (last_cmdp=3D, = cmd_table=3D, dopager=3Dtrue) at /usr/src/sys/ddb/db_command.c:504 #4 0xffff0000000ebc80 in db_command_loop () at /usr/src/sys/ddb/db_command.c:551 #5 0xffff0000000ef440 in db_trap (type=3D, = code=3D) at /usr/src/sys/ddb/db_main.c:268 #6 0xffff0000004b4860 in kdb_trap (type=3D60, code=3D0, tf=3D) at /usr/src/sys/kern/subr_kdb.c:790 #7 #8 #9 #10 #11 #12 #13 #14 #15 #16 #17 #18 #19 #20 #21 #22 #23 Backtrace stopped: Cannot access memory at address 0x10 (kgdb)=20 (Same kernel [from a snapshot], different worlds involved.) The backtraces are from the panic reporting at: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D273081 (for a kyua test). I'll note that prior to the kgdb backtrace is a non-kgdb backtrace, such as: panic: vm_fault failed: 0xffff0000006813b4 error 1 cpuid =3D 3 time =3D 1694485392 KDB: stack backtrace: db_trace_self() at db_trace_self db_trace_self_wrapper() at db_trace_self_wrapper+0x30 vpanic() at vpanic+0x19c panic() at panic+0x44 data_abort() at data_abort+0x35c handle_el1h_sync() at handle_el1h_sync+0x14 --- exception, esr 0x96000004 dump_sa() at dump_sa+0x1c dump_iface() at dump_iface+0x2bc dump_cb() at dump_cb+0x18 if_foreach_sleep() at if_foreach_sleep+0x254 rtnl_handle_getlink() at rtnl_handle_getlink+0xec rtnl_handle_message() at rtnl_handle_message+0x19c nl_taskqueue_handler() at nl_taskqueue_handler+0x5dc taskqueue_run_locked() at taskqueue_run_locked+0x17c taskqueue_thread_loop() at taskqueue_thread_loop+0xc8 fork_exit() at fork_exit+0x74 fork_trampoline() at fork_trampoline+0x14 Such is more useful at this point. =3D=3D=3D Mark Millard marklmi at yahoo.com