aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/crashinfo
Commit message (Collapse)AuthorAgeFilesLines
* crashinfo: Add references to the gdb port/packageEd Maste2020-12-022-1/+3
| | | | | | | | | | | We intend to remove the obsolete GDB 6.1.1 from FreeBSD before FreeBSD 13. Reviewed by jhb Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D27447 Notes: svn path=/head/; revision=368282
* crashinfo(8): Fix a few mandoc warningsGordon Bergling2020-11-201-2/+4
| | | | | | | - new sentence, new line Notes: svn path=/head/; revision=367902
* Remove nfsstat. Running nfsstat in crashinfo will give the stats of theAlexander Leidinger2020-10-011-6/+0
| | | | | | | | | running kernel instead of the stats of the crashed kernel. The current version uses sysctls to query the stats and does not work at all (anymore) on crash dumps. Notes: svn path=/head/; revision=366311
* crashinfo: stop looking for gdb in /usr/bin/gdbEd Maste2020-06-081-1/+1
| | | | | | | | | As of r359457 we removed the GDB_LIBEXEC option, always installing in-tree gdb into /usr/libexec/. Thus, there is now no need for crashinfo to include /usr/bin/gdb in the list of pathnames to check when looking for gdb. Notes: svn path=/head/; revision=361930
* Support compressed crash dumps in crashinfo(8).John Baldwin2018-07-231-3/+18
| | | | | | | | | | | | | | | | | | | Temporarily decompress a copy of a crash dump compressed with either gzip or zstd and run various tools against the decompressed copy while generating the crash information. The uncompressed copy is deleted when the script exits. Note that crashinfo is enabled by default, so this will attempt to decompress the most recent compressed crash dump after a crash that generates a compressed crash dump. Users who wish to only do offline analysis of compressed crash dumps can disable crashinfo in rc.conf. Tested by: ler Reviewed by: markj MFC after: 2 weeks Notes: svn path=/head/; revision=336645
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* Allow matches of truncated version strings.Mark Johnston2017-07-191-3/+5
| | | | | | | | | | | | Long objdir paths make it easy to hit the version string length limit in kernel dump headers. The build number and timestamp are unlikely to be truncated and ought to be sufficient to protect against false positives. Discussed with: jhb MFC after: 1 week Notes: svn path=/head/; revision=321228
* crashinfo: add "batch" mode and use it during bootEric van Gyzen2017-06-012-6/+23
| | | | | | | | | | | | In batch mode, most messages go into the core.txt.N file instead of stdout. Reviewed by: jhb MFC after: 3 days Sponsored by: Dell EMC Differential Revision: https://reviews.freebsd.org/D10429 Notes: svn path=/head/; revision=319477
* Add a new GDB_LIBEXEC option to install gdb and kgdb to /usr/libexec.John Baldwin2017-04-251-8/+23
| | | | | | | | | | | | | | | | | | | When this option is enabled, only gdb and kgdb are installed to /usr/libexec for use by crashinfo(8). Other bits of GDB such as gdbserver and gdbtui are not installed. For this option to be effective, GDB must be enabled. Rework r317094 to re-enable GDB on all platforms but enable GDB_LIBEXEC on platforms for which the GDB in ports is a superset of functionality. Reviewed by: emaste, kib Suggested by: kib Relnotes: yes Differential Revision: https://reviews.freebsd.org/D10449 Notes: svn path=/head/; revision=317416
* Update crashinfo to work with newer gdb from ports.John Baldwin2016-07-201-8/+27
| | | | | | | | | | | | | | | | If gdb from ports is installed, use it instead of the base system gdb to extract variables from a kernel. Note that base gdb and ports gdb do not support the same options for invoking a single command in batch mode, so a wrapper shell function is used. In addition, prefer kgdb from ports when generating a backtrace if present. PR: 193335 Reviewed by: emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D7218 Notes: svn path=/head/; revision=303109
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-271-6/+0
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=283595
| * Merge headSimon J. Gerraty2014-04-281-8/+2
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * \ Merge from headSimon J. Gerraty2013-09-051-2/+2
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | Remove 'netstat -anr' from crashinfo.Gleb Smirnoff2015-04-091-6/+0
| |_|/ |/| | | | | | | | Notes: svn path=/head/; revision=281291
* | | Do not truncate the ``command'' column in ``ps'' output.Sergey Kandaurov2013-12-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: jhb MFC after: 1 week Notes: svn path=/head/; revision=259870
* | | Remove 'netstat -i' from crashinfo, as this no longer is supported.Gleb Smirnoff2013-10-311-6/+0
| |/ |/| | | | | Notes: svn path=/head/; revision=257469
* | Allow more space for interface names.Gavin Atkinson2013-08-271-2/+2
|/ | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=254959
* Improve multi-line kernel ident parsingEd Maste2012-03-071-3/+4
| | | | | | | | | | | | | Instead of blindly grabbing the line with 'Version string' and the following one from the core info file, take all lines after 'Version string' until the one one that matches the field format in the core info file. This provides compatibility with VendorBSD modifications that have a different kernel ident format. Reviewed by: jhb Notes: svn path=/head/; revision=232666
* Teach crashinfo(8) to look at the currently running kernel (based on theColin Percival2010-11-301-1/+1
| | | | | | | | | | | | kern.bootfile sysctl). Prior to this commit, crashinfo(8) only looks at /boot/*/kernel; this includes the usual places where kernels reside, so for most systems this will have no effect. Approved by: jhb MFC after: 3 days Notes: svn path=/head/; revision=216077
* Set umask to 0x077 instead of the default. This prevents non-root userXin LI2009-11-031-0/+2
| | | | | | | | | | | from reading crashinfo output, which could contain some sensitive information. Reviewed by: jhb MFC after: 1 week Notes: svn path=/head/; revision=198846
* Include the output of the ddb(4) capture buffer.John Baldwin2009-10-291-0/+7
| | | | | | | | Submitted by: Mikolaj Golub to my trociny of gmail MFC after: 3 days Notes: svn path=/head/; revision=198586
* Fixed markup.Ruslan Ermilov2009-09-171-4/+4
| | | | Notes: svn path=/head/; revision=197299
* Correct the information about when the respective functionality firstChristian Brueffer2009-04-231-1/+1
| | | | | | | | | | | appeared in FreeBSD. PR: 133785 Submitted by: Ulrich Spoerlein <uqs@spoerlein.net> MFC after: 3 days Notes: svn path=/head/; revision=191414
* Add a script to perform simple analysis of a crash dump (either a fullJohn Baldwin2008-08-053-0/+421
dump or minidump). When the script is run, it generates a text file containing the output of several commands run againt the core dump such as kgdb (stack trace), ps, netstat, vmstat, iostat, dmesg, and fstat. Obtained from: Yahoo! MFC after: 2 weeks Notes: svn path=/head/; revision=181335