From nobody Wed Oct 1 19:15:33 2025 X-Original-To: bugs@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 4ccPlT3wK4z69CsQ for ; Wed, 01 Oct 2025 19:15:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ccPlT3BgKz3tCM for ; Wed, 01 Oct 2025 19:15:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759346133; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2fzZuPYF99s0yvYS94GH4NjGWVTG6MEGmpz70gq33Uk=; b=LdbXrL8fQtFIlC6JGMjSC80Fo+gVi4noLwbgvo485esbZwRFrWYHERg9eCBs9aKxpA1rUg 0lALoQnWOKIrTasdd4RfUkUTYamPLrpfdYAw4qgylXFfvQnAMgtDneaNS2rs7tQqLYff6u lJfJBO8/DaJ7vEiNaNdcI37ctEEzeprA5NpUiVkWkP7+KPtUuP6IMjy5PlnrS8I+X6nTQt az1HzpfqfPqc2mX3OB1ewAchrqJHNDGiXgl9NTXdtOl/scpPtNg+eJH5BTH/0iUyhqnOnf FZns8UkFJXuBRQ+JTzc6SbUG1Qjwq9a+cDpzPe8AGvqw8xTMmBtxKzC5t+TLUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759346133; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=2fzZuPYF99s0yvYS94GH4NjGWVTG6MEGmpz70gq33Uk=; b=XqQ6ItZIL9nf9zkJKrzSxBLpDKPWea6PZp3HSk0Xehe0luVoBjLsArIpL3dcy239/xTqgb AYGNoqc7cZZivPynmfJTB7OKVBbH2a+1LRYrKVxmNs2VF05aOylcwoPdTndQVlJCjlo47e FndFKwSQfbFYO96l61rA27BWKELi9mFkcuhnW96iBSyymBVgQsVfwjO/CCylv0L3WmmcCM +IQk5Fih6EXW+HJrAkNJh0WeLNR9jPkFJeUYfP1yKrWEB4bh/NBpO6ZwIe+C7hhtAdIpiG 9xePn5HOUkCeidC73d9dRfJ+77Uz4Y12gHFFRqyp+YApir4cTOJGIYGkLB2vcw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759346133; a=rsa-sha256; cv=none; b=RqdbT3tGdGklix2QgesNjbMEufqvZyiBVT37SFDqSbaEa0HAmK7ltcy8ISc8NijAdLh4kY UZ30FnBnxXb8pkflUWWeCdCHo1pRTi2Vqt2mkm/gb0sY/mvG1Outu+8g1tehiRJPtUnX8v lO+dpX4jLHGcn1BoWrAGf5TZP94biu+0g6H5fHy48Na2PzhHGKTftcFWFrQ8KiL22Bkddm sEV0opr98526C2zditggYRSmD6lVsHCAwaN+ZazFGuwoZMy89Qe+YufbOG+uj/xLT9Y5kF wzcgrGPFh0E1k9CLqytpbru0o4JfetnC60xBz8oaRzn9SC7tpc11+iXhQOuZWA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4ccPlT2jWWzbsB for ; Wed, 01 Oct 2025 19:15:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 591JFX4g073114 for ; Wed, 1 Oct 2025 19:15:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 591JFXkr073113 for bugs@FreeBSD.org; Wed, 1 Oct 2025 19:15:33 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 289945] lldb; set breakpoint not hit on 32b binary Date: Wed, 01 Oct 2025 19:15:33 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: martin@bxlr.sk X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D289945 Bug ID: 289945 Summary: lldb; set breakpoint not hit on 32b binary Product: Base System Version: Unspecified Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: martin@bxlr.sk Simple demo: #include int main() { puts("hello world"); return 42; } Compiled as: $ clang -O0 -g -o test test.c $ lldb -O 'breakpoint set -n main' test (lldb) r Process 19470 launched: '/home/martin/forums/test' (x86_64) Process 19470 stopped * thread #1, name =3D 'test', stop reason =3D breakpoint 1.1 frame #0: 0x00000000002016bf test`main at test.c:4:2 1 #include 2 3 int main() { -> 4 puts("hello world"); 5 return 42; 6 } (lldb) breakpoint list Current breakpoints: 1: name =3D 'main', locations =3D 1, resolved =3D 1, hit count =3D 1 1.1: where =3D test`main + 15 at test.c:4:2, address =3D 0x00000000002016= bf, resolved, hit count =3D 1 Works as expected. However breakpoint is not hit with 32b version of the sa= me program: $ clang -m32 -O0 -g -o test test.c $ lldb -a i386 -O 'breakpoint set -n main' test (lldb) breakpoint set -n main Breakpoint 1: no locations (pending). Breakpoint set in dummy target, will get copied into future targets. (lldb) target create --arch=3Di386 "test" Current executable set to '/home/martin/forums/test' (i386). (lldb) r Process 19490 launched: '/home/martin/forums/test' (i386) hello world Process 19490 exited with status =3D 42 (0x0000002a) (lldb) Doesn't help if I sent the breakpoint on address either: $ readelf -h test | grep Entry Entry point address: 0x401470 lldb -a i386 -O 'breakpoint set -a 0x401470' test (lldb) breakpoint set -a 0x401470 Breakpoint 1: address =3D 0x0000000000401470 Breakpoint set in dummy target, will get copied into future targets. (lldb) target create --arch=3Di386 "test" Current executable set to '/home/martin/forums/test' (i386). (lldb) r Process 19502 launched: '/home/martin/forums/test' (i386) hello world Process 19502 exited with status =3D 42 (0x0000002a) (lldb) breakpoint list Current breakpoints: 1: address =3D 0x0000000000401470, locations =3D 1 1.1: address =3D 0x0000000000401470, unresolved, hit count =3D 0 That address is a bit suspicious too as it should be working with 32b addre= ss. --=20 You are receiving this mail because: You are the assignee for the bug.=