aec172
#
aec172
# crash core analysis suite
aec172
#
aec172
Summary: Kernel analysis utility for live systems, netdump, diskdump, kdump, LKCD or mcore dumpfiles
aec172
Name: crash
344a76
Version: 7.0.9
092803
Release: 5%{?dist}
aec172
License: GPLv3
aec172
Group: Development/Debuggers
aec172
Source: http://people.redhat.com/anderson/crash-%{version}.tar.gz
aec172
URL: http://people.redhat.com/anderson
aec172
ExclusiveOS: Linux
344a76
ExclusiveArch: %{ix86} ia64 x86_64 ppc ppc64 s390 s390x %{arm} aarch64 ppc64le
aec172
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot-%(%{__id_u} -n)
aec172
BuildRequires: ncurses-devel zlib-devel lzo-devel bison snappy-devel
aec172
Requires: binutils
aec172
Patch0: lzo_snappy.patch
344a76
Patch1: use_QEMU_registers_for_active_task_backtraces.patch
344a76
Patch2: bt-mislabeling.patch
344a76
Patch3: ppc64_bt_active_task.patch
092803
Patch4: sadump_16TB.patch
aec172
aec172
%description
aec172
The core analysis suite is a self-contained tool that can be used to
aec172
investigate either live systems, kernel core dumps created from the
aec172
netdump, diskdump and kdump packages from Red Hat Linux, the mcore kernel patch
aec172
offered by Mission Critical Linux, or the LKCD kernel patch.
aec172
aec172
%package devel
aec172
Requires: %{name} = %{version}, zlib-devel lzo-devel snappy-devel
aec172
Summary: kernel crash analysis utility for live systems, netdump, diskdump, kdump, LKCD or mcore dumpfiles
aec172
Group: Development/Debuggers
aec172
aec172
%description devel
aec172
The core analysis suite is a self-contained tool that can be used to
aec172
investigate either live systems, kernel core dumps created from the
aec172
netdump, diskdump and kdump packages from Red Hat Linux, the mcore kernel patch
aec172
offered by Mission Critical Linux, or the LKCD kernel patch.
aec172
aec172
%prep
aec172
%setup -n %{name}-%{version} -q
aec172
%patch0 -p1 -b lzo_snappy.patch
344a76
%patch1 -p1 -b use_QEMU_registers_for_active_task_backtraces.patch
344a76
%patch2 -p1 -b bt-mislabeling.patch
344a76
%patch3 -p1 -b ppc64_bt_active_task.patch
092803
%patch4 -p1 -b sadump_16TB.patch
aec172
aec172
%build
aec172
make RPMPKG="%{version}-%{release}" CFLAGS="%{optflags}"
aec172
aec172
%install
aec172
rm -rf %{buildroot}
aec172
mkdir -p %{buildroot}%{_bindir}
aec172
make DESTDIR=%{buildroot} install
aec172
mkdir -p %{buildroot}%{_mandir}/man8
aec172
cp -p crash.8 %{buildroot}%{_mandir}/man8/crash.8
aec172
mkdir -p %{buildroot}%{_includedir}/crash
aec172
chmod 0644 defs.h
aec172
cp -p defs.h %{buildroot}%{_includedir}/crash
aec172
aec172
%clean
aec172
rm -rf %{buildroot}
aec172
aec172
%files
aec172
%defattr(-,root,root,-)
aec172
%{_bindir}/crash
aec172
%{_mandir}/man8/crash.8*
aec172
%doc README COPYING3
aec172
aec172
%files devel
aec172
%defattr(-,root,root,-)
aec172
%{_includedir}/*
aec172
aec172
%changelog
092803
* Tue Apr  7 2015 Dave Anderson <anderson@redhat.com> - 7.0.9-5
092803
- Support new sadump format that can represent more than 16 TB physical memory space
092803
  Resolves: rhbz#1182383
092803
344a76
* Mon Jan 26 2015 Dave Anderson <anderson@redhat.com> - 7.0.9-4
344a76
  Fix ppc64 "bt" command for active tasks in compressed kdumps.
344a76
  Resolves: rhbz#1184401
344a76
344a76
* Mon Jan 12 2015 Dave Anderson <anderson@redhat.com> - 7.0.9-3
344a76
  Fix "bt" command mislabeling errors.
344a76
  Resolves: rhbz#1179476
344a76
344a76
* Mon Dec 08 2014 Dave Anderson <anderson@redhat.com> - 7.0.9-2
344a76
- Use registers from QEMU-generated ELF and compressed kdump headers 
344a76
  for active task backtraces.
344a76
- Resolves: rhbz#1169555
08d1f3
344a76
* Fri Nov 14 2014 Dave Anderson <anderson@redhat.com> - 7.0.9-1
344a76
- Rebase to upstream version 7.0.9.
344a76
- Resolves: rhbz#1110513
344a76
344a76
* Tue Sep 23 2014 Dave Anderson <anderson@redhat.com> - 7.0.8-2
344a76
- Fix ps performance patch regression on live systems.
344a76
- Resolves: rhbz#1134177
344a76
- Minor build-related fixes for ppc64le.
344a76
- Resolves: rhbz#1123991
344a76
344a76
* Fri Sep 12 2014 Dave Anderson <anderson@redhat.com> - 7.0.8-1
344a76
- Rebase to upstream version 7.0.8.
344a76
- Resolves: rhbz#1110513
344a76
- Fix to calculate the physical base address of dumpfiles created
344a76
  by a "virsh dump" of an OVMF guest.
344a76
- Resolves: rhbz#1080698
344a76
- Support for aarch64 architecture.
344a76
- Resolves: rhbz#1110551
344a76
- Fix to prevent crash from spinning endlessly on a corrupted/truncated
344a76
  dumpfile whose bitmap data is not wholly contained within the file.
344a76
- Resolves: rhbz#1114088
344a76
- Support for ppc64le architecture.
344a76
- Resolves: rhbz#1123991
08d1f3
267c68
* Tue Jan 28 2014 Daniel Mach <dmach@redhat.com> - 7.0.2-6
267c68
- Mass rebuild 2014-01-24
267c68
267c68
* Fri Jan 24 2014 Dave Anderson <anderson@redhat.com> - 7.0.2-5
267c68
- Fix for a missing kernel-mode exception frame dump by the x86_64 
267c68
  "bt" command if a page fault was generated by a bogus RIP.
267c68
- Resolves: rhbz#1057353
267c68
- Fix for the x86_64 "bt" command to prevent an unwarranted message
267c68
  indicating "WARNING: possibly bogus exception frame" generated
267c68
  from a blocked kernel thread that was in the process of exec'ing
267c68
  a user process via the call_usermodehelper() facility.
267c68
- Resolves: rhbz#1057357
267c68
267c68
* Fri Jan 10 2014 Dave Anderson <anderson@redhat.com> - 7.0.2-4
267c68
- Fixes for "kmem -S" command for CONFIG_SLUB.
267c68
- Resolves: rhbz#1045591
267c68
- Increase S390X NR_CPUS
267c68
- Resolves: rhbz#1051156
267c68
267c68
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 7.0.2-3
267c68
- Mass rebuild 2013-12-27
267c68
aec172
* Tue Oct 29 2013 Dave Anderson <anderson@redhat.com> - 7.0.2-2
aec172
- Compressed kdump 46-bit physical memory support
aec172
  Resolves: rhbz#1015250
aec172
- Fix incorrect backtrace for dumps taken with "virsh dump --memory-only"
aec172
  Resolves: rhbz#1020469
aec172
- Fix cpu number display on systems with more than 254 cpus
aec172
  Resolves: rhbz#1020536
aec172
aec172
* Wed Sep 04 2013 Dave Anderson <anderson@redhat.com> - 7.0.2-1
aec172
- Update to latest upstream release
aec172
- Fix for ppc64 embedded gdb NULL pointer translation sigsegv
aec172
- Fix for bt -F failure
aec172
aec172
* Fri Jul 26 2013 Dave Anderson <anderson@redhat.com> - 7.0.1-4
aec172
- Add lzo-devel and snappy-devel to crash-devel Requires line
aec172
aec172
* Tue Jul 23 2013 Dave Anderson <anderson@redhat.com> - 7.0.1-3
aec172
- Build with snappy compression support
aec172
aec172
* Tue Jul  9 2013 Dave Anderson <anderson@redhat.com> - 7.0.1-2
aec172
- Fix for ppc64 Linux 3.10 vmalloc/user-space virtual address translation
aec172
aec172
* Tue Jun 18 2013 Dave Anderson <anderson@redhat.com> - 7.0.1-1
aec172
- Update to latest upstream release
aec172
- Build with LZO support
aec172
aec172
* Tue Apr  9 2013 Dave Anderson <anderson@redhat.com> - 6.1.6-1
aec172
- Update to latest upstream release
aec172
aec172
* Tue Feb 19 2013 Dave Anderson <anderson@redhat.com> - 6.1.4-1
aec172
- Update to latest upstream release
aec172
aec172
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.1.2-2
aec172
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
aec172
aec172
* Wed Jan  9 2013 Dave Anderson <anderson@redhat.com> - 6.1.2-1
aec172
- Update to latest upstream release
aec172
aec172
* Tue Nov 27 2012 Dave Anderson <anderson@redhat.com> - 6.1.1-1
aec172
- Update to latest upstream release
aec172
aec172
* Mon Sep  1 2012 Dave Anderson <anderson@redhat.com> - 6.1.0-1
aec172
- Add ppc to ExclusiveArch list
aec172
- Update to latest upstream release
aec172
aec172
* Tue Aug 21 2012 Dave Anderson <anderson@redhat.com> - 6.0.9-1
aec172
- Update to latest upstream release
aec172
aec172
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.0.8-2
aec172
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
aec172
aec172
* Mon Jul  1 2012 Dave Anderson <anderson@redhat.com> - 6.0.8-1
aec172
- Update to latest upstream release.
aec172
- Replace usage of "struct siginfo" with "siginfo_t".
aec172
aec172
* Mon Apr 30 2012 Dave Anderson <anderson@redhat.com> - 6.0.6-1
aec172
- Update to latest upstream release
aec172
aec172
* Mon Mar 26 2012 Dave Anderson <anderson@redhat.com> - 6.0.5-1
aec172
- Update to latest upstream release
aec172
aec172
* Wed Jan  4 2012 Dave Anderson <anderson@redhat.com> - 6.0.2-1
aec172
- Update to latest upstream release
aec172
aec172
* Wed Oct 26 2011 Dave Anderson <anderson@redhat.com> - 6.0.0-1
aec172
- Update to latest upstream release
aec172
aec172
* Tue Sep 20 2011 Dave Anderson <anderson@redhat.com> - 5.1.8-1
aec172
- Update to latest upstream release
aec172
- Additional fixes for gcc-4.6 -Werror compile failures for ARM architecture.
aec172
aec172
* Thu Sep  1 2011 Dave Anderson <anderson@redhat.com> - 5.1.7-2
aec172
- Fixes for gcc-4.6 -Werror compile failures for ARM architecture.
aec172
aec172
* Wed Aug 17 2011 Dave Anderson <anderson@redhat.com> - 5.1.7-1
aec172
- Update to latest upstream release
aec172
- Fixes for gcc-4.6 -Werror compile failures for ppc64/ppc.
aec172
aec172
* Tue May 31 2011 Peter Robinson <pbrobinson@gmail.com> - 5.1.5-1
aec172
- Update to latest upstream release
aec172
- Add ARM to the Exclusive arch
aec172
aec172
* Wed Feb 25 2011 Dave Anderson <anderson@redhat.com> - 5.1.2-2
aec172
- Fixes for gcc-4.6 -Werror compile failures in gdb module.  
aec172
aec172
* Wed Feb 23 2011 Dave Anderson <anderson@redhat.com> - 5.1.2-1
aec172
- Upstream version.
aec172
aec172
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.6-3
aec172
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
aec172
aec172
* Tue Jul 20 2010 Dave Anderson <anderson@redhat.com> - 5.0.6-2
aec172
- Bump version.
aec172
aec172
* Tue Jul 20 2010 Dave Anderson <anderson@redhat.com> - 5.0.6-1
aec172
- Update to upstream version.
aec172
aec172
* Fri Sep 11 2009 Dave Anderson <anderson@redhat.com> - 4.0.9-2
aec172
  Bump version.
aec172
aec172
* Fri Sep 11 2009 Dave Anderson <anderson@redhat.com> - 4.0.9-1
aec172
- Update to upstream release, which allows the removal of the 
aec172
  Revision tag workaround, the crash-4.0-8.11-dwarf3.patch and 
aec172
  the crash-4.0-8.11-optflags.patch
aec172
aec172
* Sun Aug 05 2009 Lubomir Rintel <lkundrak@v3.sk> - 4.0.8.11-2
aec172
- Fix reading of dwarf 3 DW_AT_data_member_location
aec172
- Use proper compiler flags
aec172
aec172
* Wed Aug 05 2009 Lubomir Rintel <lkundrak@v3.sk> - 4.0.8.11-1
aec172
- Update to later upstream release
aec172
- Fix abuse of Revision tag
aec172
aec172
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
aec172
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0-9.7.2
aec172
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
aec172
aec172
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0-8.7.2
aec172
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
aec172
aec172
* Thu Feb 19 2009 Dave Anderson <anderson@redhat.com> - 4.0-7.7.2
aec172
- Replace exclusive arch i386 with ix86.
aec172
aec172
* Thu Feb 19 2009 Dave Anderson <anderson@redhat.com> - 4.0-7.7.1
aec172
- Updates to this file per crash merge review
aec172
- Update to upstream version 4.0-7.7.  Full changelog viewable in:
aec172
    http://people.redhat.com/anderson/crash.changelog.html
aec172
aec172
* Tue Jul 15 2008 Tom "spot" Callaway <tcallawa@redhat.com> 4.0-7
aec172
- fix license tag
aec172
aec172
* Tue Apr 29 2008 Dave Anderson <anderson@redhat.com> - 4.0-6.3
aec172
- Added crash-devel subpackage
aec172
- Updated crash.patch to match upstream version 4.0-6.3
aec172
aec172
* Wed Feb 20 2008 Dave Anderson <anderson@redhat.com> - 4.0-6.0.5
aec172
- Second attempt at addressing the GCC 4.3 build, which failed due
aec172
  to additional ptrace.h includes in the lkcd vmdump header files.
aec172
aec172
* Wed Feb 20 2008 Dave Anderson <anderson@redhat.com> - 4.0-6.0.4
aec172
- First attempt at addressing the GCC 4.3 build, which failed on x86_64
aec172
  because ptrace-abi.h (included by ptrace.h) uses the "u32" typedef,
aec172
  which relies on <asm/types.h>, and include/asm-x86_64/types.h
aec172
  does not not typedef u32 as done in include/asm-x86/types.h.
aec172
aec172
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 4.0-6.0.3
aec172
- Autorebuild for GCC 4.3
aec172
aec172
* Wed Jan 23 2008 Dave Anderson <anderson@redhat.com> - 4.0-5.0.3
aec172
- Updated crash.patch to match upstream version 4.0-5.0.
aec172
aec172
* Wed Aug 29 2007 Dave Anderson <anderson@redhat.com> - 4.0-4.6.2
aec172
- Updated crash.patch to match upstream version 4.0-4.6.
aec172
aec172
* Wed Sep 13 2006 Dave Anderson <anderson@redhat.com> - 4.0-3.3
aec172
- Updated crash.patch to match upstream version 4.0-3.3.
aec172
- Support for x86_64 relocatable kernels.  BZ #204557
aec172
aec172
* Mon Aug  7 2006 Dave Anderson <anderson@redhat.com> - 4.0-3.1
aec172
- Updated crash.patch to match upstream version 4.0-3.1.
aec172
- Added kdump reference to description.
aec172
- Added s390 and s390x to ExclusiveArch list.  BZ #199125
aec172
- Removed LKCD v1 pt_regs references for s390/s390x build.
aec172
- Removed LKCD v2_v3 pt_regs references for for s390/s390x build.
aec172
aec172
* Fri Jul 14 2006 Jesse Keating <jkeating@redhat.com> - 4.0-3
aec172
- rebuild
aec172
aec172
* Mon May 15 2006 Dave Anderson <anderson@redhat.com> - 4.0-2.26.4
aec172
- Updated crash.patch such that <asm/page.h> is not #include'd
aec172
  by s390_dump.c; IBM did not make the file s390[s] only; BZ #192719
aec172
aec172
* Mon May 15 2006 Dave Anderson <anderson@redhat.com> - 4.0-2.26.3
aec172
- Updated crash.patch such that <asm/page.h> is not #include'd
aec172
  by vas_crash.h; only ia64 build complained; BZ #191719
aec172
aec172
* Mon May 15 2006 Dave Anderson <anderson@redhat.com> - 4.0-2.26.2
aec172
- Updated crash.patch such that <asm/segment.h> is not #include'd
aec172
  by lkcd_x86_trace.c; also for BZ #191719
aec172
aec172
* Mon May 15 2006 Dave Anderson <anderson@redhat.com> - 4.0-2.26.1
aec172
- Updated crash.patch to bring it up to 4.0-2.26, which should 
aec172
  address BZ #191719 - "crash fails to build in mock"
aec172
aec172
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 4.0-2.18.1
aec172
- rebuilt for new gcc4.1 snapshot and glibc changes
aec172
aec172
* Wed Jan 04 2006 Dave Anderson <anderson@redhat.com> 4.0-2.18
aec172
- Updated source package to crash-4.0.tar.gz, and crash.patch
aec172
  to bring it up to 4.0-2.18.
aec172
aec172
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
aec172
- rebuilt
aec172
aec172
* Thu Mar 03 2005 Dave Anderson <anderson@redhat.com> 3.10-13
aec172
- Compiler error- and warning-related fixes for gcc 4 build.
aec172
- Update to enhance x86 and x86_64 gdb disassembly output so as to
aec172
  symbolically display call targets from kernel module text without
aec172
  requiring module debuginfo data.
aec172
- Fix hole where an ia64 vmcore could be mistakenly accepted as a
aec172
  usable dumpfile on an x86_64 machine, leading eventually to a
aec172
  non-related error message.
aec172
* Wed Mar 02 2005 Dave Anderson <anderson@redhat.com> 3.10-12
aec172
- rebuild (gcc 4)
aec172
* Thu Feb 10 2005 Dave Anderson <anderson@redhat.com> 3.10-9
aec172
- Updated source package to crash-3.10.tar.gz, containing
aec172
  IBM's final ppc64 processor support for RHEL4
aec172
- Fixes potential "bt -a" hang on dumpfile where netdump IPI interrupted
aec172
  an x86 process while executing the instructions just after it had entered
aec172
  the kernel for a syscall, but before calling the handler.  BZ #139437
aec172
- Update to handle backtraces in dumpfiles generated on IA64 with the
aec172
  INIT switch (functionality intro'd in RHEL3-U5 kernel).  BZ #139429
aec172
- Fix for handling ia64 and x86_64 machines booted with maxcpus=1 on
aec172
  an SMP kernel.  BZ #139435
aec172
- Update to handle backtraces in dumpfiles generated on x86_64 from the
aec172
  NMI exception stack (functionality intro'd in RHEL3-U5 kernel).
aec172
- "kmem -[sS]" beefed up to more accurately verify slab cache chains
aec172
  and report errors found.
aec172
- Fix for ia64 INIT switch-generated backtrace handling when
aec172
  init_handler_platform() is inlined into ia64_init_handler();
aec172
  properly handles both RHEL3 and RHEL4 kernel patches.
aec172
  BZ #138350
aec172
- Update to enhance ia64 gdb disassembly output so as to
aec172
  symbolically display call targets from kernel module
aec172
  text without requiring module debuginfo data.
aec172
aec172
* Wed Jul 14 2004 Dave Anderson <anderson@redhat.com> 3.8-5
aec172
- bump release for fc3
aec172
aec172
* Tue Jul 13 2004 Dave Anderson <anderson@redhat.com> 3.8-4
aec172
- Fix for gcc 3.4.x/gdb issue where vmlinux was mistakenly presumed non-debug 
aec172
aec172
* Fri Jun 25 2004 Dave Anderson <anderson@redhat.com> 3.8-3
aec172
- remove (harmless) error message during ia64 diskdump invocation when
aec172
  an SMP system gets booted with maxcpus=1
aec172
- several 2.6 kernel specific updates
aec172
aec172
* Thu Jun 17 2004 Dave Anderson <anderson@redhat.com> 3.8-2
aec172
- updated source package to crash-3.8.tar.gz 
aec172
- diskdump support
aec172
- x86_64 processor support 
aec172
aec172
* Mon Sep 22 2003 Dave Anderson <anderson@redhat.com> 3.7-5
aec172
- make bt recovery code start fix-up only upon reaching first faulting frame
aec172
aec172
* Fri Sep 19 2003 Dave Anderson <anderson@redhat.com> 3.7-4
aec172
- fix "bt -e" and bt recovery code to recognize new __KERNEL_CS and DS
aec172
aec172
* Wed Sep 10 2003 Dave Anderson <anderson@redhat.com> 3.7-3
aec172
- patch to recognize per-cpu GDT changes that redefine __KERNEL_CS and DS
aec172
aec172
* Wed Sep 10 2003 Dave Anderson <anderson@redhat.com> 3.7-2
aec172
- patches for netdump active_set determination and slab info gathering 
aec172
aec172
* Wed Aug 20 2003 Dave Anderson <anderson@redhat.com> 3.7-1
aec172
- updated source package to crash-3.7.tar.gz
aec172
aec172
* Wed Jul 23 2003 Dave Anderson <anderson@redhat.com> 3.6-1
aec172
- removed Packager, Distribution, and Vendor tags
aec172
- updated source package to crash-3.6.tar.gz 
aec172
aec172
* Fri Jul 18 2003 Jay Fenlason <fenlason@redhat.com> 3.5-2
aec172
- remove ppc from arch list, since it doesn't work with ppc64 kernels
aec172
- remove alpha from the arch list since we don't build it any more
aec172
aec172
* Fri Jul 18 2003 Matt Wilson <msw@redhat.com> 3.5-1
aec172
- use %%defattr(-,root,root)
aec172
aec172
* Tue Jul 15 2003 Jay Fenlason <fenlason@redhat.com>
aec172
- Updated spec file as first step in turning this into a real RPM for taroon.
aec172
- Wrote man page.