From nobody Wed Jul 05 12:57:26 2023 X-Original-To: freebsd-hackers@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 4Qx07N6J6cz4m7Sc for ; Wed, 5 Jul 2023 12:57:36 +0000 (UTC) (envelope-from Stephane.ROCHOY@stormshield.eu) Received: from mail.stormshield.eu (mail.stormshield.eu [91.212.116.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.stormshield.eu", Issuer "Stormshield Servers CA" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Qx07M1PFQz4N4S for ; Wed, 5 Jul 2023 12:57:35 +0000 (UTC) (envelope-from Stephane.ROCHOY@stormshield.eu) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=stormshield.eu header.s=signer header.b=NXvT0nIY; spf=pass (mx1.freebsd.org: domain of Stephane.ROCHOY@stormshield.eu designates 91.212.116.25 as permitted sender) smtp.mailfrom=Stephane.ROCHOY@stormshield.eu; dmarc=pass (policy=quarantine) header.from=stormshield.eu DKIM-Signature: v=1; a=rsa-sha256; d=stormshield.eu; s=signer; c=simple/simple; t=1688561847; h=from:subject:to:date:message-id; bh=P5d+fnkC8VTTjdBEC2xhnx/+sefHCe4i5FJK6ubwsQo=; b=NXvT0nIYnC23CxXSuaYSV9Yqdhcm7EeW2CxBY3N7wUHmNcCE3MZ93aluIZ9L8WGXwFEmKRZ5ikE pOOq/B1skTPZZMmT54tQMlZlc2/qTYc3JxVAe8ndbw0Lo3UaE6/sL83hZ4T3gBS0xBAHHtEAJSkP7 XPdE0PMKwT/Ygp88l+3qaZbUXJ+krbXaOwqTJs0OczNfVBtzIUH7p05OIjEyRvjejSh7h9xe9CYxz TFEkd8sLE22i2p0hXMNGVDucJ7yBgS5D89LZCx9CUyos0VQoOnG/4PEzrGrCMS9o75YROBflCtgqq NLGfyPao3h7gCpjYoFGV5nVyTT/Bq+v4bE3Q== Received: from cthulhu.stephaner.labo.int (10.100.17.16) by ICTDCCEXCH001.one.local (10.180.4.1) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.16; Wed, 5 Jul 2023 14:57:26 +0200 Received: by cthulhu.stephaner.labo.int (Postfix, from userid 1001) id A78711FDC9; Wed, 5 Jul 2023 14:57:26 +0200 (CEST) User-agent: mu4e 1.2.0; emacs 27.1 From: Stephane Rochoy To: Subject: Opening ARMv7 vmcores with LLDB Date: Wed, 5 Jul 2023 14:57:26 +0200 Message-ID: <86ilayjz2h.fsf@cthulhu.stephaner.labo.int> List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.100.17.16] X-ClientProxiedBy: ICTDCCEXCH001.one.local (10.180.4.1) To ICTDCCEXCH001.one.local (10.180.4.1) X-Spamd-Result: default: False [-3.90 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.998]; NEURAL_HAM_SHORT(-0.90)[-0.899]; DMARC_POLICY_ALLOW(-0.50)[stormshield.eu,quarantine]; R_DKIM_ALLOW(-0.20)[stormshield.eu:s=signer]; R_SPF_ALLOW(-0.20)[+ip4:91.212.116.25/32]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[stormshield.eu:+]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_THREE(0.00)[3]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; HAS_XOIP(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ASN(0.00)[asn:49068, ipnet:91.212.116.0/24, country:FR] X-Rspamd-Queue-Id: 4Qx07M1PFQz4N4S X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N Hi Hackers, I struggle with lldb to open vmcores written by a 13.1 arm.armv7 kernel. I'm using LLDB 16.0.6 (from devel/llvm16) as follow: $ uname -a FreeBSD sns-debug-armv7.jail.=E2=80=A6 13.2-STABLE FreeBSD=20 14.0-CURRENT #14 =E2=80=A6-n258033-20b8fbf116f7: =E2=80=A6/arm64.aarch64/sys/AMP= ERE arm $ sysctl hw.machine_arch hw.machine_arch: armv7 $ file vmcore.last kernel vmcore.last: FreeBSD kernel minidump for arm, little endian, version 2 kernel: ELF 32-bit LSB executable, ARM, EABI5 version 1 (FreeBSD), dynamically linked, interpreter /red/herring, BuildID[sha1]=3Db3d5fba55e096b9675ec3e374f73faa4c5c8df02, for FreeBSD 13.1, not stripped $ lldb16 -c vmcore.last kernel (lldb) target create "kernel" --core "vmcore.last" Core file '/home/stephaner/t/vmcore.last' (arm) was loaded. (lldb) bt error: Command requires a process which is currently stopped. (lldb) The previous commands are run from a jail built with=20 freebsd-ci[1]: OSRELEASE=3D13.2-STABLE-02a7d117b5914dd8c42b8d98fe92faca381148bd TARGET=3Darm TARGET_ARCH=3Darmv7 Despite looking at Moritz Systems'[2] blog regarding their (great) work I'm unable to tell if ARMv7 is supposed to be supported. The patches seems to be only about arm64, i386 and x86_64. (AFAIK their work landed somewhere in LLVM 15, that's why I'm using 16.) Any hint would be greatly appreciated :) [1] https://github.com/freebsd/freebsd-ci.git [2] https://www.moritz.systems/tags/lldb/ Regards, -- St=C3=A9phane Rochoy O: Stormshield