From nobody Wed Sep 13 04:28:59 2023 X-Original-To: freebsd-ports@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 4RlnXW4Sr5z4tg5b for ; Wed, 13 Sep 2023 04:29:15 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-21.consmr.mail.gq1.yahoo.com (sonic306-21.consmr.mail.gq1.yahoo.com [98.137.68.84]) (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 4RlnXV2NjGz3Qln for ; Wed, 13 Sep 2023 04:29:14 +0000 (UTC) (envelope-from marklmi@yahoo.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=yahoo.com header.s=s2048 header.b=snmWrr+J; spf=pass (mx1.freebsd.org: domain of marklmi@yahoo.com designates 98.137.68.84 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=1694579352; bh=zaVRFgWZuJtwlXaG6mTgKlYbs+CxWfxnB7plwm65elE=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From:Subject:Reply-To; b=snmWrr+JWx5FN9JHCOh64x7tEPJYLBp0HGGBh1gkOVl8vrn7vyZ6GqxV1ar8JUSCmbK8GphVP8Hee9VXrUy+sYYJi8yRHa17RqNrt9JmTBKq1CNKrI/eAprzA66ZUdNNUkFx7umla12B+YjwqOOw/cqabxCi66tb15AFBecYsjlbnRZHgA5tCWfR4gKH5Qpf8atwpCpK+Utc2wvgBp2sqN9XoAf2sZYy2EyJv6rvnHKcpGnv6dS4a08mjJWyg/vAO/86eAdKz5pseou/IJOjQB/qUkpI/AjcQYDgQvLACEqxYMQG9GH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.ZADhBJ.Y_SsD6RcneeO5DWVaAJvLp.xGWgDU68Uq2Kmy w7KSXiAZKhdZ.TwCpzVR5YNzfzWFaAiNNgY01vpwxQWRQQx5TC5wS0E2TKwM4ZeRzctjPUrIF8QL .Xr3SYo1cxnwEQK83Pgc9SeETNUNlU47BB_eqrua1d1T1B2gqD22jozt3rQQ0Q5DjGAGXjjZKz48 KSJVadZJ8IKE7h6xrwQkqrZnsCTeZdfQ_cZdlm.Urg4P1gJ.vU5MVqdcyhiaFhIMvxRRsJzGpHPJ 8fuvlyQfVN03qtP74CguXerCckL_FRw8gzQDwY58_wUwa7rcIQsvVFH86I9Zm1rIxSWzXuLWfw9Q AJEYhLoN3NM5T4A.IZxurRPXgUutcwtc5GhA7zeq6m8ySrp9dOAHlDsbQs4rvmTmsro8JGKWtFr0 hJKSXoh3ffo6kjDXuY2Kqhs_Slrr6RBaIb0tqyeXrHt1lfIC2ZCiR5fYxo_aHY2qKH3vNLjSbdmO rPkXweBSe_B_wRkfjQfkhicpv4DR8KHE_2Dn..xb65a6rNv5DB_b7hNngMAnC4BbUU6DAVYxUCYC ngidCjv4RTp9oQSUVxfIqau9sUisEgxDqmOHWoP3ZKbInlWRHxIZ5csgENdPD0NhMVVUUfoLgI1K ZmCutZG211i4nbuw1MvQr4XJieIfYIPgb8zB8C94Pw3rtXS17F.03Qvs4_2549GKa8za5Zc.FQYh .xnIBrQ-- X-Sonic-MF: X-Sonic-ID: 23fb2872-554c-4245-8b4d-6211b04d6bef Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.gq1.yahoo.com with HTTP; Wed, 13 Sep 2023 04:29:12 +0000 Received: by hermes--production-gq1-6b7c87dcf5-dscqf (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID ad83cc19fda1c103af1eb7df400d4cea; Wed, 13 Sep 2023 04:29:10 +0000 (UTC) Content-Type: text/plain; charset=us-ascii List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\)) Subject: Re: aarch64 devel/gdb for kgdb use on main [so: 15] (and, likely, 14.0-????): dump core.txt.?'s kgdb backtraces are messed up From: Mark Millard In-Reply-To: <31BB2D7D-3A91-48AC-B29E-BDEA0CA59A73@yahoo.com> Date: Tue, 12 Sep 2023 21:28:59 -0700 Cc: Kyle Evans , Mark Johnston Content-Transfer-Encoding: quoted-printable Message-Id: <6610DEB1-D2D7-48E8-8DC5-0B1E99C2041A@yahoo.com> References: <31BB2D7D-3A91-48AC-B29E-BDEA0CA59A73@yahoo.com> To: FreeBSD Mailing List , freebsd-arm X-Mailer: Apple Mail (2.3731.700.6) 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]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MIME_GOOD(-0.10)[text/plain]; RCPT_COUNT_THREE(0.00)[4]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; BLOCKLISTDE_FAIL(0.00)[98.137.68.84:server fail]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MLMMJ_DEST(0.00)[freebsd-ports@freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[98.137.68.84:from]; ARC_NA(0.00)[]; SUBJECT_HAS_QUESTION(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[98.137.68.84:from]; DKIM_TRACE(0.00)[yahoo.com:+]; FROM_EQ_ENVFROM(0.00)[]; TO_DN_ALL(0.00)[]; FREEMAIL_FROM(0.00)[yahoo.com]; DWL_DNSWL_NONE(0.00)[yahoo.com:dkim]; 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: 4RlnXV2NjGz3Qln [Trying to send to freebsd-ports accurately this time.] On Sep 12, 2023, at 21:23, Mark Millard wrote: [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