Page MenuHomeFreeBSD

crashinfo: add "batch" mode and use it during boot
ClosedPublic

Authored by vangyzen on Apr 19 2017, 7:55 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Jun 23, 8:43 AM
Unknown Object (File)
Sat, Jun 22, 7:56 PM
Unknown Object (File)
Sat, Jun 22, 7:43 PM
Unknown Object (File)
Sat, Jun 22, 7:37 PM
Unknown Object (File)
Sat, Jun 22, 7:36 PM
Unknown Object (File)
Sun, Jun 16, 2:50 PM
Unknown Object (File)
Sun, Jun 16, 2:50 PM
Unknown Object (File)
Sun, Jun 16, 2:50 PM
Subscribers

Details

Summary

In batch mode, most messages go into the core.txt.N file instead of stdout.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

The message gets printed three times on typical systems. I can fix that if you think it's worth the few extra lines.

My thought was to do a single block at the start of the script that checks for the two gdb binaries and if neither is found it exits cleanly (in particular since this runs on boot I think we want it to not whine to the console from rc.d). I think I would like a way to have it whine if run interactively, but not from rc.d whcih we could maybe do via some optional flag that rc.d/savecore always passes to it?

I was thinking the same things, but wanted to whip this out while the topic was hot. On second thought, I'll just go ahead and make those changes now.

I've reworked the GDB removal over in D10449 which conflicts with this a bit. However, the batch mode (so messages like 'No kernel found') getting written to the core.txt.N file is still useful so it maybe that we want to refine this after D10449 goes in?

crashinfo: add "batch" mode and use it during boot

In batch mode, most messages go into the core.txt.N file
instead of stdout.

vangyzen retitled this revision from crashinfo: tell the user to install GDB and suggest one way to crashinfo: add "batch" mode and use it during boot.May 27 2017, 7:08 PM
vangyzen edited the summary of this revision. (Show Details)
vangyzen edited the test plan for this revision. (Show Details)
vangyzen added inline comments.
usr.sbin/crashinfo/crashinfo.8
30 ↗(On Diff #28915)

Note to self: Fix on commit.

This revision is now accepted and ready to land.May 30 2017, 8:27 PM
This revision was automatically updated to reflect the committed changes.