Page MenuHomeFreeBSD

arm64: Dump a basic information about generated trap.
AbandonedPublic

Authored by dchagin on May 5 2022, 6:08 PM.
Tags
None
Referenced Files
F81940450: D35133.diff
Tue, Apr 23, 12:34 PM
Unknown Object (File)
Mon, Apr 22, 7:00 AM
Unknown Object (File)
Sat, Apr 20, 1:21 PM
Unknown Object (File)
Thu, Apr 4, 8:31 PM
Unknown Object (File)
Mar 25 2024, 2:07 AM
Unknown Object (File)
Dec 20 2023, 3:50 AM
Unknown Object (File)
Nov 24 2023, 1:42 PM
Unknown Object (File)
Aug 10 2023, 9:56 PM

Details

Reviewers
manu
Summary

Follow b6d36090. Add a hackish debugging facility to provide a bit of
information about reason for generated trap. The dump of basic signal
information and registers are printed on the controlling terminal of the
process, if the machdep.uprintf_signal sysctl is enabled.

The print is the practical way to debug Linux binaries.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45478
Build 42366: arc lint + arc unit

Event Timeline

I’m not opposed to this patch, but isn’t this what core files are for?

I’m not opposed to this patch, but isn’t this what core files are for?

which debugger?

Linux, it’s a Linux core file :-) The easiest way is to use debootstrap port to bootstrap an Ubuntu Bionic userland, then chroot there and do “apt install gdb”. See https://wiki.freebsd.org/LinuxJails.

Linux, it’s a Linux core file :-) The easiest way is to use debootstrap port to bootstrap an Ubuntu Bionic userland, then chroot there and do “apt install gdb”. See https://wiki.freebsd.org/LinuxJails.

ah, thank you)) I am still using gentoo-stage3 tarball

btw, with the knob on, I see many ILL_ILLTRP exceptions during reboot.
The same on amd64. IP points to disaster() signal handler of init(8).
Seems to me init(8) has some weird bug.