Bug 256468 - reaching a breakpoint on an armv7 binary on arm64 causes a SIGBUS
Summary: reaching a breakpoint on an armv7 binary on arm64 causes a SIGBUS
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: arm (show other bugs)
Version: 13.0-RELEASE
Hardware: arm64 Any
: --- Affects Only Me
Assignee: freebsd-arm (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-07 13:02 UTC by Robert Clausecker
Modified: 2021-06-07 13:54 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Clausecker 2021-06-07 13:02:30 UTC
It appears that debugging armv7 binaries on arm64 is broken.

I've created an armv7 jail on an arm64 FreeBSD 13.0-RELEASE system, entered it, and install gdb from ports.  Then I executed an arbitrary program under gdb, set a breakpoint and let the program run (a simple way to do this is to type "start").  The breakpoint is reached and gdb informs me that a SIGBUS was delivered to the program; attempting to continue after this breakpoint is impossible.

I suppose there's something wrong here as debugging on a native armv7 system seems to work fine.
Comment 1 Mark Johnston freebsd_committer 2021-06-07 13:25:35 UTC
Any idea if this is a regression with respect to older FreeBSD versions?
Comment 2 Robert Clausecker 2021-06-07 13:54:17 UTC
(In reply to Mark Johnston from comment #1)

Older FreeBSD versions do not support execution of armv7 binaries on arm64.

So I suppose it is not.