commit crash for openSUSE:Factory

2020-10-28 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2020-10-28 12:09:53

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new.3463 (New)


Package is "crash"

Wed Oct 28 12:09:53 2020 rev:166 rq:844522 version:7.2.8

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2020-09-12 
00:14:36.601334562 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new.3463/crash.changes2020-10-28 
12:10:01.121419417 +0100
@@ -1,0 +2,6 @@
+Fri Oct  9 13:05:30 UTC 2020 - Guillaume GARDET 
+
+- Fix build on aarch64:
+  crash-gdb-fix-aarch64.patch
+
+---

New:

  crash-gdb-fix-aarch64.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.Tk9XWF/_old  2020-10-28 12:10:02.321420396 +0100
+++ /var/tmp/diff_new_pack.Tk9XWF/_new  2020-10-28 12:10:02.333420406 +0100
@@ -83,6 +83,8 @@
 Patch29:eppic-remove-duplicate-symbols.patch
 Patch30:
%{name}-verify-exception-frame-accessible-for-all-verify-requests.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
+# PATCH-FIX-UPSTREAM - 
https://github.com/crash-utility/crash/commit/e770735200c02ac2414c394ea6ec5f7f033efe64.patch
+Patch91:%{name}-gdb-fix-aarch64.patch
 BuildRequires:  bison
 BuildRequires:  flex
 BuildRequires:  libeppic-devel
@@ -299,6 +301,7 @@
 %patch12 -p1
 %patch16 -p1
 %patch29 -p1
+%patch91 -p1
 cp %{S:3} .
 mkdir kbuild
 cp %{S:6} memory_driver


++ crash-gdb-fix-aarch64.patch ++
>From e770735200c02ac2414c394ea6ec5f7f033efe64 Mon Sep 17 00:00:00 2001
From: Dave Anderson 
Date: Fri, 31 Jan 2020 17:11:46 -0500
Subject: [PATCH] Fix for an ARM64 gcc-10 compilation error.  Without the
 patch, the build of the embedded gdb module fails with an error message that
 indicates "multiple definition of 'tdesc_aarch64'". (ander...@redhat.com)

---
 gdb-7.6.patch | 30 ++
 1 file changed, 30 insertions(+)

diff --git a/gdb-7.6.patch b/gdb-7.6.patch
index f6c311d..f64b55f 100644
--- a/gdb-7.6.patch
+++ b/gdb-7.6.patch
@@ -2471,3 +2471,33 @@ diff -up gdb-7.6/opcodes/configure.orig 
gdb-7.6/opcodes/configure
  #else
  # error "!__i386__ && !__x86_64__"
  #endif
+--- gdb-7.6/gdb/features/aarch64.c.orig
 gdb-7.6/gdb/features/aarch64.c
+@@ -5,7 +5,6 @@
+ #include "osabi.h"
+ #include "target-descriptions.h"
+ 
+-struct target_desc *tdesc_aarch64;
+ static void
+ initialize_tdesc_aarch64 (void)
+ {
+--- gdb-7.6/gdb/aarch64-linux-nat.c.orig
 gdb-7.6/gdb/aarch64-linux-nat.c
+@@ -37,6 +37,7 @@
+ 
+ #include "gregset.h"
+ 
++extern struct target_desc *tdesc_aarch64;
+ #include "features/aarch64.c"
+ 
+ /* Defines ps_err_e, struct ps_prochandle.  */
+--- gdb-7.6/gdb/aarch64-tdep.c.orig
 gdb-7.6/gdb/aarch64-tdep.c
+@@ -52,6 +52,7 @@
+ #include "gdb_assert.h"
+ #include "vec.h"
+ 
++struct target_desc *tdesc_aarch64;
+ #include "features/aarch64.c"
+ #include "features/aarch64-without-fpu.c"
+ 



commit crash for openSUSE:Factory

2020-09-11 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2020-09-12 00:13:43

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new.4249 (New)


Package is "crash"

Sat Sep 12 00:13:43 2020 rev:165 rq:833827 version:7.2.8

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2020-09-06 
00:02:58.259270923 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new.4249/crash.changes2020-09-12 
00:14:36.601334562 +0200
@@ -1,0 +2,12 @@
+Wed Sep  9 16:45:44 UTC 2020 - David Mair 
+
+- Add crash-verify-exception-frame-accessible-for-all-verify-requests.patch
+  In calls to search a stack for x86_64 exceptions a flag is used
+  to request the stack be verified for room to contain saved
+  registers. The verify is not performed if other flags are used
+  in the same call. Fixing this exposes another bug where only a
+  kernel stack is verified anyway, even if the exception is being
+  searched for on a userspace stack. Patch fixes both problems.
+  (bsc#1162297)
+
+---

New:

  crash-verify-exception-frame-accessible-for-all-verify-requests.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.tCU0ll/_old  2020-09-12 00:14:38.877336740 +0200
+++ /var/tmp/diff_new_pack.tCU0ll/_new  2020-09-12 00:14:38.877336740 +0200
@@ -81,6 +81,7 @@
 Patch27:%{name}-Define-fallback-PN_XNUM.patch
 Patch28:%{name}-fix-memory_driver-build-kernel-5.8.patch
 Patch29:eppic-remove-duplicate-symbols.patch
+Patch30:
%{name}-verify-exception-frame-accessible-for-all-verify-requests.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -277,6 +278,7 @@
 %patch26 -p1
 %patch27 -p1
 %patch28 -p1
+%patch30 -p1
 %if %{have_snappy}
 %patch15 -p1
 %endif


++ crash-verify-exception-frame-accessible-for-all-verify-requests.patch 
++
Index: b/x86_64.c
===
--- a/x86_64.c
+++ b/x86_64.c
@@ -4386,15 +4386,20 @@ x86_64_exception_frame(ulong flags, ulon
 long r8, r9, r10, r11, r12, r13, r14, r15;
struct machine_specific *ms;
struct syment *sp;
-   ulong offset;
+   ulong offset, verify_addr;
char *pt_regs_buf;
long verified;
long err;
char buf[BUFSIZE];
 
-   if (flags == EFRAME_VERIFY) {
-   if (!accessible(kvaddr) || 
-   !accessible(kvaddr + SIZE(pt_regs) - sizeof(long)))
+   if (flags & EFRAME_VERIFY) {
+   if (kvaddr)
+   verify_addr = kvaddr;
+   else
+   verify_addr = (local - bt->stackbuf) + bt->stackbase;
+
+   if (!accessible(verify_addr) || 
+   !accessible(verify_addr + SIZE(pt_regs) - sizeof(long)))
return FALSE;
}
 



commit crash for openSUSE:Factory

2020-09-05 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2020-09-06 00:02:40

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new.3399 (New)


Package is "crash"

Sun Sep  6 00:02:40 2020 rev:164 rq:832084 version:7.2.8

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2020-05-12 
22:37:22.896501639 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new.3399/crash.changes2020-09-06 
00:02:58.259270923 +0200
@@ -1,0 +2,17 @@
+Fri Sep  4 10:53:39 UTC 2020 - Petr Tesařík 
+
+- Add eppic-remove-duplicate-symbols.patch
+  Fix eppic extension build.
+
+---
+Fri Sep  4 10:27:51 UTC 2020 - Petr Tesařík 
+
+- Add crash-fix-memory_driver-build-kernel-5.8.patch
+  Fix memory driver build failure with kernels 5.8+.
+
+---
+Thu Sep  3 13:18:53 UTC 2020 - Petr Tesařík 
+
+- Always build crash KMPs.
+
+---

New:

  crash-fix-memory_driver-build-kernel-5.8.patch
  eppic-remove-duplicate-symbols.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.ZDqh8Z/_old  2020-09-06 00:03:00.391271991 +0200
+++ /var/tmp/diff_new_pack.ZDqh8Z/_new  2020-09-06 00:03:00.395271994 +0200
@@ -42,16 +42,6 @@
 %else
 %define build_gcore 0
 %endif
-%ifnarch %ix86 s390
-%define build_kmp 1
-%if ! 0%{?is_opensuse}
-%ifarch x86_64
-%if 0%{?sle_version} >= 150100
-%define buildrt 1
-%endif
-%endif
-%endif
-%endif
 URL:http://people.redhat.com/anderson/
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
 License:GPL-3.0-or-later AND GFDL-1.2-only
@@ -89,6 +79,8 @@
 Patch25:
%{name}-Fix-for-reading-compressed-kdump-dumpfiles-from-syst.patch
 Patch26:
%{name}-fix-kmem-sS-for-caches-created-during-SLUB-bootstrap.patch
 Patch27:%{name}-Define-fallback-PN_XNUM.patch
+Patch28:%{name}-fix-memory_driver-build-kernel-5.8.patch
+Patch29:eppic-remove-duplicate-symbols.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -105,24 +97,20 @@
 # Source code says it can do ppc32. Excluded here?
 ExcludeArch:ppc
 # crash driver KMP
-%if 0%{?build_kmp}
 BuildRequires:  kernel-syms
-BuildRequires:  module-init-tools
-%if 0%{?buildrt}
-%if ! 0%{?build_crash_on_obs}
+%ifarch x86_64
+%if 0%{?suse_version} >= 1520 && 0%{?suse_version} < 1550
 BuildRequires:  kernel-syms-rt
 %endif
 %endif
 %if 0%{?suse_version} >= 1130
 BuildRequires:  kernel-devel
 %endif
-%endif
+BuildRequires:  module-init-tools
 
-%if 0%{?build_kmp}
 %suse_kernel_module_package -n crash -p %_sourcedir/%{name}-kmp-preamble um
 %define arch %_target_cpu
 %define kmp_pkg KMP
-%endif
 
 %description
 The core analysis suite is a self-contained tool that can be used to
@@ -241,8 +229,6 @@
 
 %endif
 
-%if 0%{?build_kmp}
-
 %package %kmp_pkg
 Summary:Memory driver for the crash utility
 License:GPL-2.0-only
@@ -257,8 +243,6 @@
 
 David Anderson 
 
-%endif
-
 # Compatibility cruft
 # there is no %%license prior to SLE12
 %if %{undefined _defaultlicensedir}
@@ -292,6 +276,7 @@
 %patch25 -p1
 %patch26 -p1
 %patch27 -p1
+%patch28 -p1
 %if %{have_snappy}
 %patch15 -p1
 %endif
@@ -311,11 +296,10 @@
 cd -
 %patch12 -p1
 %patch16 -p1
+%patch29 -p1
 cp %{S:3} .
 mkdir kbuild
-%if ! 0%{?is_opensuse}
 cp %{S:6} memory_driver
-%endif
 
 %build
 %ifarch ppc64le
@@ -327,7 +311,6 @@
 export GDB="gdb-%{gdb_version}"
 make RPMPKG="`cat .rh_rpm_package`" %{?jobs:-j%jobs}
 make extensions %{?jobs:-j%jobs}
-%if 0%{?build_kmp}
 export EXTRA_CFLAGS='-DVERSION=\"%version\"'
 for flavor in %flavors_to_build; do
 rm -rf kbuild/$flavor
@@ -335,7 +318,6 @@
 make -C /usr/src/linux-obj/%arch/$flavor modules \
   M=$PWD/kbuild/$flavor
 done
-%endif
 
 %install
 mkdir -p %{buildroot}%{_bindir}
@@ -365,7 +347,6 @@
 install -m 0644 sial-scripts-%{scripts_version}/*.c \
 $RPM_BUILD_ROOT/%{_datadir}/sial/crash
 %endif
-%if 0%{?build_kmp}
 # memory driver module
 export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
 export INSTALL_MOD_DIR=updates
@@ -373,7 +354,6 @@
  make -C /usr/src/linux-obj/%arch/$flavor modules_install \
M=$PWD/kbuild/$flavor
 done
-%endif
 
 %clean
 rm -rf %{buildroot}

++ crash-fix-memory_driver-build-kernel-5.8.patch ++
From: Petr Tesarik 
Subject: Fix memory driver module build with kernel 5.8+
Upstream: submitted 2020-09-04

Kernel commit fe557319aa06c23cffc9346000f119547e0f289a renamed
probe_kernel_{read,write} to 

commit crash for openSUSE:Factory

2020-05-12 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2020-05-12 22:35:14

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new.2738 (New)


Package is "crash"

Tue May 12 22:35:14 2020 rev:163 rq:803050 version:7.2.8

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2020-05-02 
22:18:35.488693678 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new.2738/crash.changes2020-05-12 
22:37:22.896501639 +0200
@@ -1,0 +2,5 @@
+Wed May  6 14:37:27 UTC 2020 - Michel Normand 
+
+- remove bypass lto and add -mfull-toc for ppc64le to check boo#1146646
+
+---



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.dQNXfW/_old  2020-05-12 22:37:25.840507783 +0200
+++ /var/tmp/diff_new_pack.dQNXfW/_new  2020-05-12 22:37:25.840507783 +0200
@@ -17,11 +17,6 @@
 # needssslcertforbuild
 
 
-# Disable LTO for PowerPC as bypass boo#1146646
-%ifarch ppc ppc64 ppc64le
-%define _lto_cflags %{nil}
-%endif
-
 %define whitepaper_version 2003
 %define scripts_version  2008-02-08
 %define gcore_version  2011-09-22
@@ -323,7 +318,12 @@
 %endif
 
 %build
+%ifarch ppc64le
+# for ppc64le use -mfull-toc needed by lto as per boo#1146646
+export CFLAGS="$RPM_OPT_FLAGS -fno-builtin-memset -fno-strict-aliasing 
-mfull-toc"
+%else
 export CFLAGS="$RPM_OPT_FLAGS -fno-builtin-memset -fno-strict-aliasing"
+%endif
 export GDB="gdb-%{gdb_version}"
 make RPMPKG="`cat .rh_rpm_package`" %{?jobs:-j%jobs}
 make extensions %{?jobs:-j%jobs}





commit crash for openSUSE:Factory

2020-05-02 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2020-05-02 22:18:31

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new.2738 (New)


Package is "crash"

Sat May  2 22:18:31 2020 rev:162 rq:799673 version:7.2.8

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2020-04-22 
20:54:23.227556072 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new.2738/crash.changes2020-05-02 
22:18:35.488693678 +0200
@@ -1,0 +2,6 @@
+Tue Apr 28 11:27:35 UTC 2020 - Petr Tesařík 
+
+- Add crash-Define-fallback-PN_XNUM.patch
+  Add a fallback PN_XNUM definition.
+
+---

New:

  crash-Define-fallback-PN_XNUM.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.zDlLZN/_old  2020-05-02 22:18:37.204697273 +0200
+++ /var/tmp/diff_new_pack.zDlLZN/_new  2020-05-02 22:18:37.208697281 +0200
@@ -93,6 +93,7 @@
 Patch24:
%{name}-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch
 Patch25:
%{name}-Fix-for-reading-compressed-kdump-dumpfiles-from-syst.patch
 Patch26:
%{name}-fix-kmem-sS-for-caches-created-during-SLUB-bootstrap.patch
+Patch27:%{name}-Define-fallback-PN_XNUM.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -123,17 +124,9 @@
 %endif
 
 %if 0%{?build_kmp}
-%if 0%{?suse_version} >= 920
 %suse_kernel_module_package -n crash -p %_sourcedir/%{name}-kmp-preamble um
 %define arch %_target_cpu
 %define kmp_pkg KMP
-%else
-%define kver %(rpm -q --qf '%%{VERSION}-%%{RELEASE}' kernel-source)
-%define kver_ %(rpm -q --qf '%%{VERSION}_%%{RELEASE}' kernel-source)
-%define arch %(echo %_target_cpu | sed -e 's/i.86/i386/')
-%define flavors_to_build %(sh %_sourcedir/get-kernel-flavors.sh %arch)
-%define kmp_pkg kmp
-%endif
 %endif
 
 %description
@@ -259,12 +252,6 @@
 Summary:Memory driver for the crash utility
 License:GPL-2.0-only
 Group:  System/Kernel
-%if 0%{?suse_version} < 920
-Version:%{version}_%{kver_}
-Release:0
-
-Requires:   kernel = %kver
-%endif
 
 %description %kmp_pkg
 To run the crash utility on a live system, a memory device must be present.
@@ -309,6 +296,7 @@
 %endif
 %patch25 -p1
 %patch26 -p1
+%patch27 -p1
 %if %{have_snappy}
 %patch15 -p1
 %endif
@@ -385,32 +373,6 @@
  make -C /usr/src/linux-obj/%arch/$flavor modules_install \
M=$PWD/kbuild/$flavor
 done
-
-# Ugly SLES9-style KMP
-%if 0%{?suse_version} < 920
-set -- $(ls $RPM_BUILD_ROOT/lib/modules)
-KERNELRELEASES=$*
-
-set -- $(find $RPM_BUILD_ROOT/lib/modules -type f -name '*.ko' \
-| sed -e 's:.*/::' -e 's:\.ko$::' | sort -u)
-MODULES=$*
-
-(   cat <<-EOF
-   # IMPORTANT: Do not change the KERNELRELEASES definition; it will be
-   # replaced during driver reuse!
-   KERNELRELEASES="$KERNELRELEASES"
-   MODULES="$MODULES"
-   EOF
-cat %_sourcedir/depmod.sh
-cat %_sourcedir/mkinitrd.sh
-) > post_postun.sh
-
-%post kmp -f post_postun.sh
-
-%postun kmp -f post_postun.sh
-
-%endif
-
 %endif
 
 %clean
@@ -458,13 +420,4 @@
 %doc extensions/README.gcore
 %endif
 
-%if 0%{?build_kmp}
-%if 0%{?suse_version} < 920
-
-%files %kmp_pkg
-%defattr(-,root,root)
-/lib/modules/*
-%endif
-%endif
-
 %changelog

++ crash-Define-fallback-PN_XNUM.patch ++
From: Petr Tesarik 
Subject: Add a fallback PN_XNUM definition
Upstream: never, compatibility with old products

Distributions before SLE11 did not define PN_XNUM in .

Signed-off-by: Petr Tesarik 
---
 netdump.h |4 
 1 file changed, 4 insertions(+)

--- a/netdump.h
+++ b/netdump.h
@@ -19,6 +19,10 @@
 #include 
 #include "vmcore.h"
 
+#ifndef PN_XNUM
+#define PN_XNUM0x
+#endif
+
 #define MIN_NETDUMP_ELF32_HEADER_SIZE \
 sizeof(Elf32_Ehdr)+sizeof(Elf32_Phdr)+sizeof(Elf32_Phdr)
 #define MIN_NETDUMP_ELF64_HEADER_SIZE \




commit crash for openSUSE:Factory

2020-04-22 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2020-04-22 20:54:20

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new.2738 (New)


Package is "crash"

Wed Apr 22 20:54:20 2020 rev:161 rq:796107 version:7.2.8

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2020-04-15 
19:56:25.097659836 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new.2738/crash.changes2020-04-22 
20:54:23.227556072 +0200
@@ -1,0 +2,12 @@
+Sat Apr 18 12:00:31 UTC 2020 - Michal Suchanek 
+
+- Make Factory ppc64 crash usable on both SLE 15 SP1 and releases before
+  SLE15 SP1 (bsc#1148197).  This is only a workaround that requires to build
+  crash for each codestream separately.
+
+---
+Fri Apr 17 23:53:17 UTC 2020 - Michal Suchanek 
+
+- Drop crash-s390-autodetect-kaslr.patch which has been merged in 7.2.7.
+
+---
@@ -41,3 +53,5 @@
-- Upgrade source tarball to version 7.2.7 to support currently used
-  kernel versions.
-- drop the following patch that is obsoleted by souce upgrade:
+- Upgraded the source tarball to version 7.2.7. This is required
+  to support coredumps from currently used kernel versions in the
+  product (bsc#1159686).
+- droped the patch obsoleted due to already being present in the
+  new source:
@@ -72 +86 @@
-- Add patch for commit 326e1b8f83a4318b09033ef754f40c785aed5e68
+- Added patch for commit 326e1b8f83a4318b09033ef754f40c785aed5e68
@@ -79,2 +93,5 @@
-- Upgrade source tarball to version 7.2.6
-- drop patches obsoleted by version upgrade
+  Upgraded the source tarball to version 7.2.6 to bring better
+  support of version 5 kernels such as 5.3 in SLE-15-SP2
+  (bsc#114706)
+
+  Dropped the following patches obsoleted by the version upgrade:
@@ -90,0 +108,13 @@
+crash-Fix-and-an-update-for-the-ipcs-command.patch
+crash-update-recognition-of-x86_64-CPU_ENTRY_AREA.patch
+
+  Re-aligned the following patches with the new version source:
+crash-allow-use-of-sadump-captured-KASLR-kernel.patch
+crash-debuginfo-compressed.patch
+crash-make-emacs-default.diff
+crash-sles9-time.patch
+
+  Modified the following patches to integrate with version upgrade:
+crash-compressed-booted-kernel.patch
+crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch
+crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch
@@ -98 +127,0 @@
-  * crash-stop_read_error_when_intent_is_retry.patch
@@ -114,3 +143,7 @@
-- With a xen 4.11 dump crash will fail to start reporting "cannot 
-  fill pcpu struct" and "cannot read cpu_info" due to xen changes 
-  not tracked by crash updates. Fixed by including:
+- Update for XEN dom0 changes in v4.11 that cause coredumps made
+  of a domU using virch on the dom0 to fail to load in the dom0
+  version of crash reporting "crash: invalid kernel virtual address:
+   type:fill_pcpu_struct", followed by "WARNING: cannot 
+  fill pcpu_struct" and "crash: cannot read cpu_info"
+  (bsc#1124690 and bsc#1122594)
+  Added:
@@ -118 +151,16 @@
-  (bsc#1122594)
+
+---
+Fri Jan 11 15:07:52 UTC 2019 - sparscha...@suse.de
+
+- Update the recognition of x86_64 CPU_ENTRY_AREA (bsc#1104743, bsc#1090127)
+  Added:
+ crash-update-recognition-of-x86_64-CPU_ENTRY_AREA.patch
+
+---
+Tue Dec 18 16:36:40 UTC 2018 - Michal Suchanek 
+
+- Fix SLE15 SP1 Incorrect vmcore generated (bsc#1119791).
+   Added:
+ crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch
+ crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch
+  This is not compatible with SLE15 and SLE12 SP4.
@@ -124,0 +173,13 @@
+
+---
+Wed Aug  8 11:02:28 UTC 2018 - msucha...@suse.com
+
+- Added:
+crash-Fix-and-an-update-for-the-ipcs-command.patch
+
+  The update is required for Linux 4.11 and greater kernels, which
+  reimplemented the IDR facility to use radix trees in kernel commit
+  0a835c4f090af2c76fc2932c539c3b32fd21fbbb, titled "Reimplement IDR and IDA
+  using the radix tree".  Without the patch, if any IPCS entry exists, the
+  command would fail with the message "ipcs: invalid structure member offset:
+  idr_top" (bsc#1092101)

Old:

  crash-s390-autodetect-kaslr.patch

New:

  crash-SLE15-SP1-Fix-for-PPC64-kernel-virtual-address-translation-in.patch
  crash-SLE15-SP1-With-Linux-4.19-rc1-up-MAX_PHYSMEM_BITS-to-128TB.patch
  crash-stop_read_error_when_intent_is_retry.patch



Other 

commit crash for openSUSE:Factory

2020-04-15 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2020-04-15 19:56:19

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new.2738 (New)


Package is "crash"

Wed Apr 15 19:56:19 2020 rev:160 rq:794163 version:7.2.8

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2020-02-04 
19:58:15.113493027 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new.2738/crash.changes2020-04-15 
19:56:25.097659836 +0200
@@ -1,0 +2,12 @@
+Wed Apr  8 09:42:08 UTC 2020 - Michal Suchanek 
+
+- Add crash-fix-kmem-sS-for-caches-created-during-SLUB-bootstrap.patch
+  Fix "kmem -[sS]" for caches created during SLUB bootstrap (bsc#1164815 
ltc#182973).
+
+---
+Wed Apr  1 06:28:37 UTC 2020 - Michal Suchanek 
+
+- Add crash-Fix-for-reading-compressed-kdump-dumpfiles-from-syst.patch
+  Fix integer overflow with large memory configuration (bsc#1168233 
ltc#184660).
+
+---

New:

  crash-Fix-for-reading-compressed-kdump-dumpfiles-from-syst.patch
  crash-fix-kmem-sS-for-caches-created-during-SLUB-bootstrap.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.yGsBVy/_old  2020-04-15 19:56:26.737661067 +0200
+++ /var/tmp/diff_new_pack.yGsBVy/_new  2020-04-15 19:56:26.741661070 +0200
@@ -89,6 +89,8 @@
 Patch16:eppic-support-arm64.patch
 Patch21:%{name}-allow-use-of-sadump-captured-KASLR-kernel.patch
 Patch24:%{name}-s390-autodetect-kaslr.patch
+Patch25:
%{name}-Fix-for-reading-compressed-kdump-dumpfiles-from-syst.patch
+Patch26:
%{name}-fix-kmem-sS-for-caches-created-during-SLUB-bootstrap.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -285,6 +287,8 @@
 %patch13 -p1
 %patch21 -p1
 %patch24 -p1
+%patch25 -p1
+%patch26 -p1
 %if %{have_snappy}
 %patch15 -p1
 %endif

++ crash-Fix-for-reading-compressed-kdump-dumpfiles-from-syst.patch ++
>From b80b16549e24769c7d5fe3a10c4b1a1c4b5161f3 Mon Sep 17 00:00:00 2001
From: Dave Anderson 
Date: Mon, 23 Mar 2020 15:52:11 -0400
Subject: [PATCH] Fix for reading compressed kdump dumpfiles from systems with
 physical memory located at extraordinarily high addresses.  In a system with
 a physical address range from 0x602770ecf000 to 0x6027, the crash
 utility fails during session initialization due to an integer overflow,
 ending with the error message "crash: vmlinux and vmcore do not match!".
 (chenjial...@huawei.com)

References: bsc#1168233 ltc#184660
Upstream: merged
Git-commit: b80b16549e24769c7d5fe3a10c4b1a1c4b5161f3

---
 diskdump.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/diskdump.c b/diskdump.c
index e88243e616cc..328c932dad5a 100644
--- a/diskdump.c
+++ b/diskdump.c
@@ -233,7 +233,7 @@ clean_diskdump_data(void)
 }
 
 static inline int 
-get_bit(char *map, int byte, int bit)
+get_bit(char *map, unsigned long byte, int bit)
 {
return map[byte] & (1max_mapnr;
 
/* read memory bitmap */
-   bitmap_len = block_size * header->bitmap_blocks;
+   bitmap_len = (off_t)block_size * header->bitmap_blocks;
dd->bitmap_len = bitmap_len;
 
offset = (off_t)block_size * (1 + header->sub_hdr_size);
@@ -744,7 +744,7 @@ restart:
memcpy(dd->dumpable_bitmap, dd->bitmap, bitmap_len);
 
dd->data_offset
-   = (1 + header->sub_hdr_size + header->bitmap_blocks)
+   = (1UL + header->sub_hdr_size + header->bitmap_blocks)
* header->block_size;
 
dd->header = header;
-- 
2.23.0

++ crash-fix-kmem-sS-for-caches-created-during-SLUB-bootstrap.patch ++
>From 50f39247d80519c71d1f03984bc34aa476a9c2bd Mon Sep 17 00:00:00 2001
From: Hari Bathini 
Date: Wed, 8 Apr 2020 11:38:23 +0200
Subject: [PATCH] fix "kmem -[sS]" for caches created during SLUB bootstrap

References: bsc#1164815 ltc#182973 
https://www.redhat.com/archives/crash-utility/2020-April/msg00029.html
Upstream: submitted

Fix for "kmem -[sS]" options on Linux 4.14 and later kernels built
with CONFIG_SLAB_FREELIST_HARDENED enabled. Without the patch, there
will error messages of the type "kmem:  slab: 
invalid freepointer: " for caches created during
SLUB bootstrap, as they are likely to have s->random == 0.

Signed-off-by: Hari Bathini 
---
 memory.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/memory.c b/memory.c
index ccc29442c3f6..c2433ebe5e75 100644
--- a/memory.c
+++ b/memory.c
@@ -19244,7 +19244,7 @@ count_free_objects(struct meminfo *si, ulong freelist)
 static ulong
 

commit crash for openSUSE:Factory

2020-02-04 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2020-02-04 19:58:06

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new.26092 (New)


Package is "crash"

Tue Feb  4 19:58:06 2020 rev:159 rq:770055 version:7.2.8

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2020-01-29 
13:21:15.694258212 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new.26092/crash.changes   2020-02-04 
19:58:15.113493027 +0100
@@ -1,0 +2,25 @@
+Tue Feb  4 15:50:22 UTC 2020 - David Mair 
+
+- Upgraded the source to version 7.2.8. The previous version was
+  modified to support newer kernels used in SLE-15-SP2 but was not
+  complete.
+  * Includes a fix for kernels that contain:
+  e0703556644a531e50b5dc61b9f6ea83af5f6604
+which introduces symbol namespaces. Without the change then
+depending on architecture:
+ (1) the kernel module symbol list will contain garbage
+ (2) the session fails during initialization with a dump of
+ the internal buffer allocation stats followed by the
+ message "crash: cannot allocate any more memory"
+ (3) the session fails during initialization with a
+ segmentation violation (bsc#1162064)
+  * Includes the merge of the S390x patches since crash 7.2.7
+(bsc#1156645/bsc#1161640)
+  * Source already includes XZ compressed module support, removed:
+  crash-symbols-add-support-for-XZ.patch
+  * Refreshed patches that were no longer aligned with source:
+  crash-allow-use-of-sadump-captured-KASLR-kernel.patch
+  crash-s390-autodetect-kaslr.patch
+  crash-sles9-time.patch
+
+---

Old:

  crash-7.2.7.tar.gz
  crash-symbols-add-support-for-XZ.patch

New:

  crash-7.2.8.tar.gz



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.eg8cFu/_old  2020-02-04 19:58:17.809494600 +0100
+++ /var/tmp/diff_new_pack.eg8cFu/_new  2020-02-04 19:58:17.813494602 +0100
@@ -61,7 +61,7 @@
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
 License:GPL-3.0-or-later AND GFDL-1.2-only
 Group:  Development/Tools/Debuggers
-Version:7.2.7
+Version:7.2.8
 Release:0
 Source: %{name}-%{version}.tar.gz
 Source2:crash_whitepaper-%{whitepaper_version}.tar.bz2
@@ -88,7 +88,6 @@
 Patch15:%{name}_enable_snappy_support.patch
 Patch16:eppic-support-arm64.patch
 Patch21:%{name}-allow-use-of-sadump-captured-KASLR-kernel.patch
-Patch23:%{name}-symbols-add-support-for-XZ.patch
 Patch24:%{name}-s390-autodetect-kaslr.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
@@ -285,7 +284,6 @@
 %patch11 -p1
 %patch13 -p1
 %patch21 -p1
-%patch23 -p1
 %patch24 -p1
 %if %{have_snappy}
 %patch15 -p1

++ crash-7.2.7.tar.gz -> crash-7.2.8.tar.gz ++
/work/SRC/openSUSE:Factory/crash/crash-7.2.7.tar.gz 
/work/SRC/openSUSE:Factory/.crash.new.26092/crash-7.2.8.tar.gz differ: char 5, 
line 1

++ crash-allow-use-of-sadump-captured-KASLR-kernel.patch ++
--- /var/tmp/diff_new_pack.eg8cFu/_old  2020-02-04 19:58:17.885494644 +0100
+++ /var/tmp/diff_new_pack.eg8cFu/_new  2020-02-04 19:58:17.885494644 +0100
@@ -22,11 +22,11 @@
  symbols.c |3 +++
  1 file changed, 3 insertions(+)
 
-Index: crash-7.2.7/symbols.c
+Index: b/symbols.c
 ===
 crash-7.2.7.orig/symbols.c
-+++ crash-7.2.7/symbols.c
-@@ -1157,6 +1157,9 @@ symname_hash_install(struct syment *spn)
+--- a/symbols.c
 b/symbols.c
+@@ -1156,6 +1156,9 @@ symname_hash_install(struct syment *spn)
}
}
}


++ crash-s390-autodetect-kaslr.patch ++
--- /var/tmp/diff_new_pack.eg8cFu/_old  2020-02-04 19:58:17.929494670 +0100
+++ /var/tmp/diff_new_pack.eg8cFu/_new  2020-02-04 19:58:17.929494670 +0100
@@ -4,11 +4,11 @@
 the "--kaslr=" command line option is required.
 (ander...@redhat.com)
 ---
-Index: crash-7.2.7/symbols.c
+Index: b/symbols.c
 ===
 crash-7.2.7.orig/symbols.c
-+++ crash-7.2.7/symbols.c
-@@ -618,6 +618,12 @@ kaslr_init(void)
+--- a/symbols.c
 b/symbols.c
+@@ -623,6 +623,12 @@ kaslr_init(void)
st->_stext_vmlinux = UNINITIALIZED;
}
  

++ crash-sles9-time.patch ++
--- /var/tmp/diff_new_pack.eg8cFu/_old  2020-02-04 19:58:17.941494677 +0100
+++ /var/tmp/diff_new_pack.eg8cFu/_new  2020-02-04 19:58:17.941494677 +0100
@@ -14,10 +14,10 @@
  task.c   |   11 +++
  3 files changed, 27 insertions(+), 1 deletion(-)
 

commit crash for openSUSE:Factory

2020-01-29 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2020-01-29 13:20:18

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new.26092 (New)


Package is "crash"

Wed Jan 29 13:20:18 2020 rev:158 rq:768200 version:7.2.7

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2019-11-15 
00:19:34.635965178 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new.26092/crash.changes   2020-01-29 
13:21:15.694258212 +0100
@@ -1,0 +2,8 @@
+Fri Jan 10 17:41:20 UTC 2020 - David Mair 
+
+- Upgrade source tarball to version 7.2.7 to support currently used
+  kernel versions.
+- drop the following patch that is obsoleted by souce upgrade:
+  * crash-allow-kmem-section-is-early.patch
+
+---

Old:

  crash-7.2.6.tar.gz
  crash-allow-kmem-section-is-early.patch

New:

  crash-7.2.7.tar.gz



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.gXQYGD/_old  2020-01-29 13:21:17.474259121 +0100
+++ /var/tmp/diff_new_pack.gXQYGD/_new  2020-01-29 13:21:17.478259124 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package crash
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -57,11 +57,11 @@
 %endif
 %endif
 %endif
-Url:http://people.redhat.com/anderson/
+URL:http://people.redhat.com/anderson/
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
 License:GPL-3.0-or-later AND GFDL-1.2-only
 Group:  Development/Tools/Debuggers
-Version:7.2.6
+Version:7.2.7
 Release:0
 Source: %{name}-%{version}.tar.gz
 Source2:crash_whitepaper-%{whitepaper_version}.tar.bz2
@@ -88,7 +88,6 @@
 Patch15:%{name}_enable_snappy_support.patch
 Patch16:eppic-support-arm64.patch
 Patch21:%{name}-allow-use-of-sadump-captured-KASLR-kernel.patch
-Patch22:%{name}-allow-kmem-section-is-early.patch
 Patch23:%{name}-symbols-add-support-for-XZ.patch
 Patch24:%{name}-s390-autodetect-kaslr.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
@@ -286,7 +285,6 @@
 %patch11 -p1
 %patch13 -p1
 %patch21 -p1
-%patch22 -p1
 %patch23 -p1
 %patch24 -p1
 %if %{have_snappy}

++ crash-7.2.6.tar.gz -> crash-7.2.7.tar.gz ++
/work/SRC/openSUSE:Factory/crash/crash-7.2.6.tar.gz 
/work/SRC/openSUSE:Factory/.crash.new.26092/crash-7.2.7.tar.gz differ: char 5, 
line 1

++ crash-allow-use-of-sadump-captured-KASLR-kernel.patch ++
--- /var/tmp/diff_new_pack.gXQYGD/_old  2020-01-29 13:21:17.526259148 +0100
+++ /var/tmp/diff_new_pack.gXQYGD/_new  2020-01-29 13:21:17.526259148 +0100
@@ -22,11 +22,11 @@
  symbols.c |3 +++
  1 file changed, 3 insertions(+)
 
-Index: b/symbols.c
+Index: crash-7.2.7/symbols.c
 ===
 a/symbols.c
-+++ b/symbols.c
-@@ -1151,6 +1151,9 @@ symname_hash_install(struct syment *spn)
+--- crash-7.2.7.orig/symbols.c
 crash-7.2.7/symbols.c
+@@ -1157,6 +1157,9 @@ symname_hash_install(struct syment *spn)
}
}
}

++ crash-compressed-booted-kernel.patch ++
--- /var/tmp/diff_new_pack.gXQYGD/_old  2020-01-29 13:21:17.538259154 +0100
+++ /var/tmp/diff_new_pack.gXQYGD/_new  2020-01-29 13:21:17.538259154 +0100
@@ -9,11 +9,11 @@
  filesys.c |   26 ++
  1 file changed, 22 insertions(+), 4 deletions(-)
 
-Index: b/filesys.c
+Index: crash-7.2.7/filesys.c
 ===
 a/filesys.c
-+++ b/filesys.c
-@@ -582,6 +582,7 @@ static int
+--- crash-7.2.7.orig/filesys.c
 crash-7.2.7/filesys.c
+@@ -581,6 +581,7 @@ static int
  find_booted_kernel(void)
  {
char kernel[BUFSIZE];
@@ -21,7 +21,7 @@
char buffer[BUFSIZE];
char **searchdirs;
int i, preferred, wrapped;
-@@ -631,16 +632,24 @@ find_booted_kernel(void)
+@@ -630,16 +631,24 @@ find_booted_kernel(void)
sprintf(kernel, "%s%s", searchdirs[i], dp->d_name);
  
if (mount_point(kernel) ||
@@ -50,7 +50,7 @@
if (found)
break;
}
-@@ -660,10 +669,19 @@ find_booted_kernel(void)
+@@ -659,10 +668,19 @@ find_booted_kernel(void)
if (CRASHDEBUG(1))
fprintf(fp, "find_booted_kernel: found: %s\n", 
pc->namelist);


commit crash for openSUSE:Factory

2019-11-14 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2019-11-15 00:19:31

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new.26869 (New)


Package is "crash"

Fri Nov 15 00:19:31 2019 rev:157 rq:748661 version:7.2.6

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2019-08-24 
18:46:47.917755025 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new.26869/crash.changes   2019-11-15 
00:19:34.635965178 +0100
@@ -1,0 +2,18 @@
+Tue Nov 12 19:39:11 UTC 2019 - David Mair 
+
+- Added commit c0371f6ee2cae31ec9f506bbd231ab8fbe334c13 - Fix to
+  allow live analysis of s390x kernels that have been configured
+  with CONFIG_RANDOMIZE_BASE=y (KASLR). This allows crash to load
+  the coredump without the need for "--kaslr= on the
+  command-line.
+  Added:
+crash-s390-autodetect-kaslr.patch
+
+  Implements jsc#SLE-9797
+
+---
+Fri Nov  8 10:33:41 UTC 2019 - Jiri Slaby 
+
+- add crash-symbols-add-support-for-XZ.patch (bnc#1155921)
+
+---

New:

  crash-s390-autodetect-kaslr.patch
  crash-symbols-add-support-for-XZ.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.ufwVKE/_old  2019-11-15 00:19:38.419963862 +0100
+++ /var/tmp/diff_new_pack.ufwVKE/_new  2019-11-15 00:19:38.423963862 +0100
@@ -89,6 +89,8 @@
 Patch16:eppic-support-arm64.patch
 Patch21:%{name}-allow-use-of-sadump-captured-KASLR-kernel.patch
 Patch22:%{name}-allow-kmem-section-is-early.patch
+Patch23:%{name}-symbols-add-support-for-XZ.patch
+Patch24:%{name}-s390-autodetect-kaslr.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -285,6 +287,8 @@
 %patch13 -p1
 %patch21 -p1
 %patch22 -p1
+%patch23 -p1
+%patch24 -p1
 %if %{have_snappy}
 %patch15 -p1
 %endif


++ crash-s390-autodetect-kaslr.patch ++
Fix to allow live system analysis of s390x kernels that have been

configured with CONFIG_RANDOMIZE_BASE=y (KASLR).  Without the patch,
the "--kaslr=" command line option is required.
(ander...@redhat.com)
---
Index: b/symbols.c
===
--- a/symbols.c
+++ b/symbols.c
@@ -612,6 +612,12 @@ kaslr_init(void)
st->_stext_vmlinux = UNINITIALIZED;
}
 
+   if (machine_type("S390X") &&  /* Linux 5.2 */
+   (symbol_value_from_proc_kallsyms("__kaslr_offset") != BADVAL)) {
+   kt->flags2 |= (RELOC_AUTO|KASLR);
+   st->_stext_vmlinux = UNINITIALIZED;
+   }
+
if (QEMU_MEM_DUMP_NO_VMCOREINFO()) {
if (KDUMP_DUMPFILE() && kdump_kaslr_check()) {
kt->flags2 |= KASLR_CHECK;
++ crash-symbols-add-support-for-XZ.patch ++
From: Jiri Slaby 
Date: Fri, 8 Nov 2019 08:44:10 +0100
Subject: symbols: add support for XZ
Patch-mainline: submitted as PR#42
References: bnc#1155921

We plan to ship /boot/vmlinux*.xz in openSUSE. So add a support for
this, so that crash can handle that.

Signed-off-by: Jiri Slaby 
---
 symbols.c | 20 
 1 file changed, 20 insertions(+)

Index: b/symbols.c
===
--- a/symbols.c
+++ b/symbols.c
@@ -3597,6 +3597,7 @@ is_compressed_kernel(char *file, char **
 
 #define GZIP  (1)
 #define BZIP2 (2)
+#define XZ(3)
 
 #define FNAME (1 << 3)
 
@@ -3646,6 +3647,19 @@ is_compressed_kernel(char *file, char **
type = BZIP2;
}
 
+   if (!memcmp(header, "\xfd""7zXZ", 6)) {
+   if (!STRNEQ(basename(file), "vmlinux") &&
+   !(st->flags & FORCE_DEBUGINFO)) {
+   error(INFO, "%s: compressed file name does not start "
+   "with \"vmlinux\"\n", file);
+   error(CONT, 
+   "Use \"-f %s\" on command line to override.\n\n",
+   file);
+   return FALSE;
+   }
+   type = XZ;
+   }
+
if (!type)
return FALSE;
 
@@ -3681,6 +3695,12 @@ is_compressed_kernel(char *file, char **
"/bin/bunzip2" : "/usr/bin/bunzip2",
file, tempname);
break;
+   case XZ:
+   sprintf(command, "%s -c %s > %s", 
+   file_exists("/bin/unxz", NULL) ?
+   "/bin/unxz" : "/usr/bin/unxz",
+   file, tempname);
+   break;
}
if (system(command) < 0) {

commit crash for openSUSE:Factory

2019-08-24 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2019-08-24 18:46:36

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new.7948 (New)


Package is "crash"

Sat Aug 24 18:46:36 2019 rev:156 rq:725655 version:7.2.6

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2019-08-13 
13:27:25.293321168 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new.7948/crash.changes2019-08-24 
18:46:47.917755025 +0200
@@ -1,0 +2,5 @@
+Wed Aug 21 12:57:09 UTC 2019 - Michel Normand 
+
+- Disable LTO for PowerPC as bypass boo#1146646
+
+---



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.ywuiZH/_old  2019-08-24 18:46:50.849754742 +0200
+++ /var/tmp/diff_new_pack.ywuiZH/_new  2019-08-24 18:46:50.853754741 +0200
@@ -17,6 +17,11 @@
 # needssslcertforbuild
 
 
+# Disable LTO for PowerPC as bypass boo#1146646
+%ifarch ppc ppc64 ppc64le
+%define _lto_cflags %{nil}
+%endif
+
 %define whitepaper_version 2003
 %define scripts_version  2008-02-08
 %define gcore_version  2011-09-22





commit crash for openSUSE:Factory

2019-08-13 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2019-08-13 13:27:21

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new.9556 (New)


Package is "crash"

Tue Aug 13 13:27:21 2019 rev:155 rq:722902 version:7.2.6

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2019-06-28 
16:36:57.346871761 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new.9556/crash.changes2019-08-13 
13:27:25.293321168 +0200
@@ -1,0 +2,7 @@
+Thu Aug  8 15:22:17 UTC 2019 - David Mair 
+
+- Add patch for commit 326e1b8f83a4318b09033ef754f40c785aed5e68
+  in linux 5.3:
+  crash-allow-kmem-section-is-early.patch
+
+---

New:

  crash-allow-kmem-section-is-early.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.soeSu5/_old  2019-08-13 13:27:26.625320818 +0200
+++ /var/tmp/diff_new_pack.soeSu5/_new  2019-08-13 13:27:26.625320818 +0200
@@ -83,6 +83,7 @@
 Patch15:%{name}_enable_snappy_support.patch
 Patch16:eppic-support-arm64.patch
 Patch21:%{name}-allow-use-of-sadump-captured-KASLR-kernel.patch
+Patch22:%{name}-allow-kmem-section-is-early.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -278,6 +279,7 @@
 %patch11 -p1
 %patch13 -p1
 %patch21 -p1
+%patch22 -p1
 %if %{have_snappy}
 %patch15 -p1
 %endif

++ crash-allow-kmem-section-is-early.patch ++
Update for the "kmem -n" option on Linux 5.3-rc1 and later kernels that
contain commit 326e1b8f83a4318b09033ef754f40c785aed5e68, titled
"mm/sparsemem: introduce a SECTION_IS_EARLY flag". With this patch,
the option displays a new state "E" for the flag, instead of printing
incorrect mem_map addresses.

Also update the confusing comment with the one from kernel commit
def9b71ee651a6fee93a10734b94f93a69cdb2d4, titled "include/linux/mmzone.h:
fix explanation of lower bits in the SPARSEMEM mem_map pointer".

Signed-off-by: Kazuhito Hagio 
---
 help.c   |  4 ++--
 memory.c | 17 ++---
 2 files changed, 16 insertions(+), 5 deletions(-)

Index: b/help.c
===
--- a/help.c
+++ b/help.c
@@ -6633,8 +6633,8 @@ char *help_kmem[] = {
 "the cumulative, vm_event_states counter values if they exist.",
 "-n  display memory node, memory section, and memory block data",
 "and state; the state of each memory section state is encoded",
-"as \"P\", \"M\" and/or \"O\", meaning SECTION_MARKED_PRESENT,",
-"SECTION_HAS_MEM_MAP and SECTION_IS_ONLINE.",
+"as \"P\", \"M\", \"O\" and/or \"E\", meaning 
SECTION_MARKED_PRESENT,",
+"SECTION_HAS_MEM_MAP, SECTION_IS_ONLINE and SECTION_IS_EARLY.",
 "-z  displays per-zone memory statistics.",
 "-o  displays each cpu's offset value that is added to per-cpu symbol",
 "values to translate them into kernel virtual addresses.",
Index: b/memory.c
===
--- a/memory.c
+++ b/memory.c
@@ -17122,13 +17122,22 @@ nr_to_section(ulong nr)
 
 /*
  * We use the lower bits of the mem_map pointer to store
- * a little bit of information.  There should be at least
- * 3 bits here due to 32-bit alignment.
+ * a little bit of information.  The pointer is calculated
+ * as mem_map - section_nr_to_pfn(pnum).  The result is
+ * aligned to the minimum alignment of the two values:
+ *   1. All mem_map arrays are page-aligned.
+ *   2. section_nr_to_pfn() always clears PFN_SECTION_SHIFT
+ *  lowest bits.  PFN_SECTION_SHIFT is arch-specific
+ *  (equal SECTION_SIZE_BITS - PAGE_SHIFT), and the
+ *  worst combination is powerpc with 256k pages,
+ *  which results in PFN_SECTION_SHIFT equal 6.
+ * To sum it up, at least 6 bits are available.
  */
 #define SECTION_MARKED_PRESENT (1UL<<0)
 #define SECTION_HAS_MEM_MAP(1UL<<1)
 #define SECTION_IS_ONLINE  (1UL<<2)
-#define SECTION_MAP_LAST_BIT   (1UL<<3)
+#define SECTION_IS_EARLY   (1UL<<3)
+#define SECTION_MAP_LAST_BIT   (1UL<<4)
 #define SECTION_MAP_MASK   (~(SECTION_MAP_LAST_BIT-1))
 
 
@@ -17225,6 +17234,8 @@ fill_mem_section_state(ulong state, char
bufidx += sprintf(buf + bufidx, "%s", "M");
if (state & SECTION_IS_ONLINE)
bufidx += sprintf(buf + bufidx, "%s", "O");
+   if (state & SECTION_IS_EARLY)
+   bufidx += sprintf(buf + bufidx, "%s", "E");
 }
 
 void 




commit crash for openSUSE:Factory

2019-06-28 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2019-06-28 16:36:39

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new.4615 (New)


Package is "crash"

Fri Jun 28 16:36:39 2019 rev:154 rq:712269 version:7.2.6

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2019-06-01 
09:49:07.131332089 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new.4615/crash.changes2019-06-28 
16:36:57.346871761 +0200
@@ -1,0 +2,16 @@
+Mon Jun 24 18:00:01 UTC 2019 - David Mair 
+
+- Upgrade source tarball to version 7.2.6
+- drop patches obsoleted by version upgrade
+  * crash-xen-invalid-pcpu-vaddr-use-hardware-domain-symbol.patch
+  * crash-fix-for-4.20-without-CONFIG_RANDOMIZE_BASE.patch
+  * crash-fix-for-virsh-dump-dumps-with-KASLR.patch
+  * crash-fix-kmem-z-on-kernel-5.0.patch
+  * crash-fix-kmem-i-on-kernel-5.0.patch
+  * crash-fix-sym-for-module-symbols-on-kernel-5.0.patch
+  * crash-fix-dis-function-for-module-symbols-on-kernel-5.0.patch
+  * crash-handle-radix_tree_root-changes-in-post-5.1-kernels.patch
+  * crash-find-kernel-configuration-data-with-kernel-5.1.patch
+  * crash-fix-dev-dD-on-kernel-5.1.patch
+
+---

Old:

  crash-7.2.5.tar.gz
  crash-find-kernel-configuration-data-with-kernel-5.1.patch
  crash-fix-dev-dD-on-kernel-5.1.patch
  crash-fix-dis-function-for-module-symbols-on-kernel-5.0.patch
  crash-fix-for-4.20-without-CONFIG_RANDOMIZE_BASE.patch
  crash-fix-for-virsh-dump-dumps-with-KASLR.patch
  crash-fix-kmem-i-on-kernel-5.0.patch
  crash-fix-kmem-z-on-kernel-5.0.patch
  crash-fix-sym-for-module-symbols-on-kernel-5.0.patch
  crash-handle-radix_tree_root-changes-in-post-5.1-kernels.patch
  crash-xen-invalid-pcpu-vaddr-use-hardware-domain-symbol.patch

New:

  crash-7.2.6.tar.gz



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.HuO6uQ/_old  2019-06-28 16:36:58.726873791 +0200
+++ /var/tmp/diff_new_pack.HuO6uQ/_new  2019-06-28 16:36:58.726873791 +0200
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 # needssslcertforbuild
 
@@ -56,7 +56,7 @@
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
 License:GPL-3.0-or-later AND GFDL-1.2-only
 Group:  Development/Tools/Debuggers
-Version:7.2.5
+Version:7.2.6
 Release:0
 Source: %{name}-%{version}.tar.gz
 Source2:crash_whitepaper-%{whitepaper_version}.tar.bz2
@@ -83,16 +83,6 @@
 Patch15:%{name}_enable_snappy_support.patch
 Patch16:eppic-support-arm64.patch
 Patch21:%{name}-allow-use-of-sadump-captured-KASLR-kernel.patch
-Patch24:%{name}-xen-invalid-pcpu-vaddr-use-hardware-domain-symbol.patch
-Patch25:%{name}-fix-for-4.20-without-CONFIG_RANDOMIZE_BASE.patch
-Patch26:%{name}-fix-for-virsh-dump-dumps-with-KASLR.patch
-Patch27:%{name}-fix-kmem-z-on-kernel-5.0.patch
-Patch28:%{name}-fix-kmem-i-on-kernel-5.0.patch
-Patch29:%{name}-fix-sym-for-module-symbols-on-kernel-5.0.patch
-Patch30:%{name}-fix-dis-function-for-module-symbols-on-kernel-5.0.patch
-Patch31:
%{name}-handle-radix_tree_root-changes-in-post-5.1-kernels.patch
-Patch32:%{name}-find-kernel-configuration-data-with-kernel-5.1.patch
-Patch33:%{name}-fix-dev-dD-on-kernel-5.1.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -288,16 +278,6 @@
 %patch11 -p1
 %patch13 -p1
 %patch21 -p1
-%patch24 -p1
-%patch25 -p1
-%patch26 -p1
-%patch27 -p1
-%patch28 -p1
-%patch29 -p1
-%patch30 -p1
-%patch31 -p1
-%patch32 -p1
-%patch33 -p1
 %if %{have_snappy}
 %patch15 -p1
 %endif

++ crash-7.2.5.tar.gz -> crash-7.2.6.tar.gz ++
/work/SRC/openSUSE:Factory/crash/crash-7.2.5.tar.gz 
/work/SRC/openSUSE:Factory/.crash.new.4615/crash-7.2.6.tar.gz differ: char 5, 
line 1

++ crash-allow-use-of-sadump-captured-KASLR-kernel.patch ++
--- /var/tmp/diff_new_pack.HuO6uQ/_old  2019-06-28 16:36:58.786873879 +0200
+++ /var/tmp/diff_new_pack.HuO6uQ/_new  2019-06-28 16:36:58.786873879 +0200
@@ -22,9 +22,11 @@
  symbols.c |3 +++
  1 file changed, 3 insertions(+)
 
+Index: b/symbols.c
+===
 --- a/symbols.c
 +++ b/symbols.c
-@@ -1133,6 +1133,9 @@ symname_hash_install(struct syment *spn)
+@@ -1151,6 +1151,9 @@ symname_hash_install(struct syment *spn)

commit crash for openSUSE:Factory

2019-06-01 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2019-06-01 09:49:00

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new.5148 (New)


Package is "crash"

Sat Jun  1 09:49:00 2019 rev:153 rq:705930 version:7.2.5

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2019-04-24 
13:57:29.763984411 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new.5148/crash.changes2019-06-01 
09:49:07.131332089 +0200
@@ -60 +60 @@
-  7.2.1 source.
+  7.2.1 source (bsc#1103371).



Other differences:
--




commit crash for openSUSE:Factory

2019-04-24 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2019-04-24 13:57:22

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new.5536 (New)


Package is "crash"

Wed Apr 24 13:57:22 2019 rev:152 rq:697206 version:7.2.5

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2019-02-25 
18:01:34.178072976 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new.5536/crash.changes2019-04-24 
13:57:29.763984411 +0200
@@ -1,0 +2,19 @@
+Tue Apr 23 09:21:32 UTC 2019 - Michal Kubecek 
+
+- Upgrade the source tarball to version 7.2.5
+- drop patches obsoleted by version upgrade:
+  * crash-fix-snprintf-overflow.patch
+  * crash-stop_read_error_when_intent_is_retry.patch
+  * crash-update-recognition-of-x86_64-CPU_ENTRY_AREA.patch
+- post-7.2.5 upstream patches for kernel 5.0/5.1 compatibility:
+  * crash-fix-for-4.20-without-CONFIG_RANDOMIZE_BASE.patch
+  * crash-fix-for-virsh-dump-dumps-with-KASLR.patch
+  * crash-fix-kmem-z-on-kernel-5.0.patch
+  * crash-fix-kmem-i-on-kernel-5.0.patch
+  * crash-fix-sym-for-module-symbols-on-kernel-5.0.patch
+  * crash-fix-dis-function-for-module-symbols-on-kernel-5.0.patch
+  * crash-handle-radix_tree_root-changes-in-post-5.1-kernels.patch
+  * crash-find-kernel-configuration-data-with-kernel-5.1.patch
+  * crash-fix-dev-dD-on-kernel-5.1.patch
+
+---

Old:

  crash-7.2.3.tar.gz
  crash-fix-snprintf-overflow.patch
  crash-stop_read_error_when_intent_is_retry.patch
  crash-update-recognition-of-x86_64-CPU_ENTRY_AREA.patch

New:

  crash-7.2.5.tar.gz
  crash-find-kernel-configuration-data-with-kernel-5.1.patch
  crash-fix-dev-dD-on-kernel-5.1.patch
  crash-fix-dis-function-for-module-symbols-on-kernel-5.0.patch
  crash-fix-for-4.20-without-CONFIG_RANDOMIZE_BASE.patch
  crash-fix-for-virsh-dump-dumps-with-KASLR.patch
  crash-fix-kmem-i-on-kernel-5.0.patch
  crash-fix-kmem-z-on-kernel-5.0.patch
  crash-fix-sym-for-module-symbols-on-kernel-5.0.patch
  crash-handle-radix_tree_root-changes-in-post-5.1-kernels.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.A2g4RE/_old  2019-04-24 13:57:30.835983739 +0200
+++ /var/tmp/diff_new_pack.A2g4RE/_new  2019-04-24 13:57:30.835983739 +0200
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via https://bugs.opensuse.org/
+# Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 # needssslcertforbuild
 
@@ -56,7 +56,7 @@
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
 License:GPL-3.0-or-later AND GFDL-1.2-only
 Group:  Development/Tools/Debuggers
-Version:7.2.3
+Version:7.2.5
 Release:0
 Source: %{name}-%{version}.tar.gz
 Source2:crash_whitepaper-%{whitepaper_version}.tar.bz2
@@ -82,11 +82,17 @@
 Patch13:%{name}-patch-gdb.patch
 Patch15:%{name}_enable_snappy_support.patch
 Patch16:eppic-support-arm64.patch
-Patch18:%{name}-stop_read_error_when_intent_is_retry.patch
 Patch21:%{name}-allow-use-of-sadump-captured-KASLR-kernel.patch
-Patch22:%{name}-fix-snprintf-overflow.patch
-Patch23:%{name}-update-recognition-of-x86_64-CPU_ENTRY_AREA.patch
 Patch24:%{name}-xen-invalid-pcpu-vaddr-use-hardware-domain-symbol.patch
+Patch25:%{name}-fix-for-4.20-without-CONFIG_RANDOMIZE_BASE.patch
+Patch26:%{name}-fix-for-virsh-dump-dumps-with-KASLR.patch
+Patch27:%{name}-fix-kmem-z-on-kernel-5.0.patch
+Patch28:%{name}-fix-kmem-i-on-kernel-5.0.patch
+Patch29:%{name}-fix-sym-for-module-symbols-on-kernel-5.0.patch
+Patch30:%{name}-fix-dis-function-for-module-symbols-on-kernel-5.0.patch
+Patch31:
%{name}-handle-radix_tree_root-changes-in-post-5.1-kernels.patch
+Patch32:%{name}-find-kernel-configuration-data-with-kernel-5.1.patch
+Patch33:%{name}-fix-dev-dD-on-kernel-5.1.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -281,11 +287,17 @@
 %patch10 -p1
 %patch11 -p1
 %patch13 -p1
-%patch18 -p1
 %patch21 -p1
-%patch22 -p1
-%patch23 -p1
 %patch24 -p1
+%patch25 -p1
+%patch26 -p1
+%patch27 -p1
+%patch28 -p1
+%patch29 -p1
+%patch30 -p1
+%patch31 -p1
+%patch32 -p1
+%patch33 -p1
 %if %{have_snappy}
 %patch15 -p1
 %endif

++ crash-7.2.3.tar.gz -> crash-7.2.5.tar.gz ++
/work/SRC/openSUSE:Factory/crash/crash-7.2.3.tar.gz 
/work/SRC/openSUSE:Factory/.crash.new.5536/crash-7.2.5.tar.gz differ: char 5, 
line 1

++ 

commit crash for openSUSE:Factory

2019-02-25 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2019-02-25 18:01:24

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new.28833 (New)


Package is "crash"

Mon Feb 25 18:01:24 2019 rev:151 rq:678956 version:7.2.3

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2018-11-08 
09:50:46.524937983 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new.28833/crash.changes   2019-02-25 
18:01:34.178072976 +0100
@@ -1,0 +2,9 @@
+Thu Feb 14 19:23:00 CET 2019 - dm...@suse.de
+
+- With a xen 4.11 dump crash will fail to start reporting "cannot 
+  fill pcpu struct" and "cannot read cpu_info" due to xen changes 
+  not tracked by crash updates. Fixed by including:
+  crash-xen-invalid-pcpu-vaddr-use-hardware-domain-symbol.patch
+  (bsc#1122594)
+
+---

New:

  crash-xen-invalid-pcpu-vaddr-use-hardware-domain-symbol.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.kkZe4R/_old  2019-02-25 18:01:37.878070002 +0100
+++ /var/tmp/diff_new_pack.kkZe4R/_new  2019-02-25 18:01:37.878070002 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package crash
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 # needssslcertforbuild
 
@@ -86,6 +86,7 @@
 Patch21:%{name}-allow-use-of-sadump-captured-KASLR-kernel.patch
 Patch22:%{name}-fix-snprintf-overflow.patch
 Patch23:%{name}-update-recognition-of-x86_64-CPU_ENTRY_AREA.patch
+Patch24:%{name}-xen-invalid-pcpu-vaddr-use-hardware-domain-symbol.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -284,6 +285,7 @@
 %patch21 -p1
 %patch22 -p1
 %patch23 -p1
+%patch24 -p1
 %if %{have_snappy}
 %patch15 -p1
 %endif


++ crash-xen-invalid-pcpu-vaddr-use-hardware-domain-symbol.patch ++
Two fixes for the Xen hypervisor; the first fixes a bug seen
with Xen 4.11.0 during initialization, which fails with the error
message "crash: invalid kernel virtual address:  type:
fill_pcpu_struct", followed by "WARNING: cannot fill pcpu_struct"
and "crash: cannot read cpu_info".  The second fix prevents a
segmentation violation associated with a crash-7.1.1 commit that
addressed the Xen 4.5.0 hypervisor symbol name change from
"dom0" to "hardware_domain".
(dietmar.h...@ts.fujitsu.com)

---

---
 x86_64.c|7 +--
 xen_hyper.c |8 
 2 files changed, 9 insertions(+), 6 deletions(-)

--- a/x86_64.c
+++ b/x86_64.c
@@ -7808,8 +7808,11 @@ x86_64_init_hyper(int when)
case POST_GDB:
XEN_HYPER_STRUCT_SIZE_INIT(cpuinfo_x86, "cpuinfo_x86");
XEN_HYPER_STRUCT_SIZE_INIT(tss_struct, "tss_struct");
-   XEN_HYPER_ASSIGN_OFFSET(tss_struct_rsp0) = 
MEMBER_OFFSET("tss_struct", "__blh") + sizeof(short unsigned int);
-   XEN_HYPER_MEMBER_OFFSET_INIT(tss_struct_ist, "tss_struct", 
"ist");
+   if (MEMBER_EXISTS("tss_struct", "__blh")) {
+   XEN_HYPER_ASSIGN_OFFSET(tss_struct_rsp0) = 
MEMBER_OFFSET("tss_struct", "__blh") + sizeof(short unsigned int);
+   } else {
+   XEN_HYPER_ASSIGN_OFFSET(tss_struct_rsp0) = 
MEMBER_OFFSET("tss_struct", "rsp0");
+   }   XEN_HYPER_MEMBER_OFFSET_INIT(tss_struct_ist, 
"tss_struct", "ist");
if (symbol_exists("cpu_data")) {
xht->cpu_data_address = symbol_value("cpu_data");
}
--- a/xen_hyper.c
+++ b/xen_hyper.c
@@ -1060,8 +1060,8 @@ xen_hyper_get_domains(void)
long domain_next_in_list;
int i, j;
 
-   if (!try_get_symbol_data("dom0", sizeof(void *), ))
-   get_symbol_data("hardware_domain", sizeof(void *), );
+   if (!try_get_symbol_data("hardware_domain", sizeof(void *), ))
+   get_symbol_data("dom0", sizeof(void *), );
 
domain_next_in_list = MEMBER_OFFSET("domain", "next_in_list");
i = 0;
@@ -1103,8 +1103,8 @@ xen_hyper_get_domain_next(int mod, ulong
if (xhdt->dom0) {
*next = xhdt->dom0->domain;
} else {
-   if 

commit crash for openSUSE:Factory

2018-11-08 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2018-11-08 09:50:38

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is "crash"

Thu Nov  8 09:50:38 2018 rev:150 rq:647007 version:7.2.3

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2018-07-06 
10:42:11.531240707 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2018-11-08 
09:50:46.524937983 +0100
@@ -1,0 +2,6 @@
+Fri Oct 12 05:00:27 UTC 2018 - Jeffrey Cheung 
+
+- Sync with SLE15 SP1 (SR#173916) to enable the kmp-rt for SLERT15 SP1 only
+  set %if 0%{?sle_version} >= 150100
+
+---



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.8xI6FN/_old  2018-11-08 09:50:48.096936124 +0100
+++ /var/tmp/diff_new_pack.8xI6FN/_new  2018-11-08 09:50:48.104936114 +0100
@@ -46,7 +46,7 @@
 %define build_kmp 1
 %if ! 0%{?is_opensuse}
 %ifarch x86_64
-%if 0%{?sle_version} < 120300
+%if 0%{?sle_version} >= 150100
 %define buildrt 1
 %endif
 %endif





commit crash for openSUSE:Factory

2018-07-06 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2018-07-06 10:42:06

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is "crash"

Fri Jul  6 10:42:06 2018 rev:149 rq:620656 version:7.2.3

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2018-03-26 
13:06:34.973754920 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2018-07-06 
10:42:11.531240707 +0200
@@ -1,0 +2,19 @@
+Wed Jul  4 19:26:40 UTC 2018 - ptesa...@suse.com
+
+- Added crash-fix-snprintf-overflow.patch
+  Fix to address a "__builtin___snprintf_chk" compiler warning.
+- Added crash-update-recognition-of-x86_64-CPU_ENTRY_AREA.patch
+  Update the recognition of x86_64 CPU_ENTRY_AREA.
+
+---
+Wed Jul  4 14:23:28 UTC 2018 - ptesa...@suse.com
+
+- Upgrade the source tarball to version to 7.2.3
+  A complete changelog is available via the crash source page at:
+
+  http://people.redhat.com/anderson/crash.changelog.html
+
+- Refreshed:
+crash-compressed-booted-kernel.patch
+
+---

Old:

  crash-7.2.1.tar.gz

New:

  crash-7.2.3.tar.gz
  crash-fix-snprintf-overflow.patch
  crash-update-recognition-of-x86_64-CPU_ENTRY_AREA.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.JdRZge/_old  2018-07-06 10:42:12.743239265 +0200
+++ /var/tmp/diff_new_pack.JdRZge/_new  2018-07-06 10:42:12.743239265 +0200
@@ -56,7 +56,7 @@
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
 License:GPL-3.0-or-later AND GFDL-1.2-only
 Group:  Development/Tools/Debuggers
-Version:7.2.1
+Version:7.2.3
 Release:0
 Source: %{name}-%{version}.tar.gz
 Source2:crash_whitepaper-%{whitepaper_version}.tar.bz2
@@ -84,6 +84,8 @@
 Patch16:eppic-support-arm64.patch
 Patch18:%{name}-stop_read_error_when_intent_is_retry.patch
 Patch21:%{name}-allow-use-of-sadump-captured-KASLR-kernel.patch
+Patch22:%{name}-fix-snprintf-overflow.patch
+Patch23:%{name}-update-recognition-of-x86_64-CPU_ENTRY_AREA.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -280,6 +282,8 @@
 %patch13 -p1
 %patch18 -p1
 %patch21 -p1
+%patch22 -p1
+%patch23 -p1
 %if %{have_snappy}
 %patch15 -p1
 %endif

++ crash-7.2.1.tar.gz -> crash-7.2.3.tar.gz ++
/work/SRC/openSUSE:Factory/crash/crash-7.2.1.tar.gz 
/work/SRC/openSUSE:Factory/.crash.new/crash-7.2.3.tar.gz differ: char 5, line 1

++ crash-compressed-booted-kernel.patch ++
--- /var/tmp/diff_new_pack.JdRZge/_old  2018-07-06 10:42:12.791239207 +0200
+++ /var/tmp/diff_new_pack.JdRZge/_new  2018-07-06 10:42:12.795239203 +0200
@@ -11,7 +11,7 @@
 
 --- a/filesys.c
 +++ b/filesys.c
-@@ -571,6 +571,7 @@ static int
+@@ -579,6 +579,7 @@ static int
  find_booted_kernel(void)
  {
char kernel[BUFSIZE];
@@ -19,12 +19,12 @@
char buffer[BUFSIZE];
char **searchdirs;
int i, preferred, wrapped;
-@@ -620,16 +621,24 @@ find_booted_kernel(void)
+@@ -628,16 +629,24 @@ find_booted_kernel(void)
sprintf(kernel, "%s%s", searchdirs[i], dp->d_name);
  
if (mount_point(kernel) ||
 -  !file_readable(kernel) || 
--!is_elf_file(kernel))
+-!is_kernel(kernel))
 +  !file_readable(kernel))
continue;
  
@@ -37,7 +37,7 @@
  
 -  found = match_file_string(kernel, kt->proc_version, 
buffer);
 -  
-+  if (!is_elf_file(real_kernel)) {
++  if (!is_kernel(real_kernel)) {
 +  if (real_kernel != kernel)
 +  free(real_kernel);
 +  continue;
@@ -48,7 +48,7 @@
if (found)
break;
}
-@@ -649,10 +658,19 @@ find_booted_kernel(void)
+@@ -657,10 +666,19 @@ find_booted_kernel(void)
if (CRASHDEBUG(1))
fprintf(fp, "find_booted_kernel: found: %s\n", 
pc->namelist);

++ crash-fix-snprintf-overflow.patch ++
From: Dave Anderson 
Date: Fri, 1 Jun 2018 14:01:01 -0400
Subject: Fix to address a "__builtin___snprintf_chk" compiler warning
Upstream: merged
Git-commit: 9446958fe211825ed5524317b05d5ea020bb00d6

Fix to address a "__builtin___snprintf_chk" compiler 

commit crash for openSUSE:Factory

2018-03-26 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2018-03-26 13:05:30

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is "crash"

Mon Mar 26 13:05:30 2018 rev:148 rq:590461 version:7.2.1

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2018-02-12 
10:15:16.473376433 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2018-03-26 
13:06:34.973754920 +0200
@@ -1,0 +2,19 @@
+Mon Mar 19 20:42:50 UTC 2018 - dm...@suse.com
+
+- Upgraded to 7.2.1 because it includes the fixes to support
+  several core cases that recently were caused tofail to open.
+  As a result, removed patches that were already superceded by
+  7.2.1 source.
+
+  Removed:
+crash-ppc64-book3s-update-hash-page-table-geometry.patch
+crash-x86_64_kvtop-usable-symtab_init.patch
+
crash-ppc64-ensure-chosen-stack-symbol-relates-to-an-actual-backtrace.patch
+crash-fix-error-cannot-resolve-schedulers-0001.patch
+crash-fix-error-cannot-resolve-schedulers-0002.patch
+crash-extend-direct-mapping-to-5TB.patch
+
+  Modified:
+   crash-allow-use-of-sadump-captured-KASLR-kernel.patch 
+
+---

Old:

  crash-7.2.0.tar.gz
  crash-extend-direct-mapping-to-5TB.patch
  crash-fix-error-cannot-resolve-schedulers-0001.patch
  crash-fix-error-cannot-resolve-schedulers-0002.patch
  crash-ppc64-book3s-update-hash-page-table-geometry.patch
  crash-ppc64-ensure-chosen-stack-symbol-relates-to-an-actual-backtrace.patch
  crash-x86_64_kvtop-usable-symtab_init.patch

New:

  crash-7.2.1.tar.gz



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.UaFohm/_old  2018-03-26 13:06:44.297419747 +0200
+++ /var/tmp/diff_new_pack.UaFohm/_new  2018-03-26 13:06:44.301419604 +0200
@@ -54,9 +54,9 @@
 %endif
 Url:http://people.redhat.com/anderson/
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
-License:GPL-3.0+ and GFDL-1.2
+License:GPL-3.0-or-later AND GFDL-1.2-only
 Group:  Development/Tools/Debuggers
-Version:7.2.0
+Version:7.2.1
 Release:0
 Source: %{name}-%{version}.tar.gz
 Source2:crash_whitepaper-%{whitepaper_version}.tar.bz2
@@ -83,13 +83,7 @@
 Patch15:%{name}_enable_snappy_support.patch
 Patch16:eppic-support-arm64.patch
 Patch18:%{name}-stop_read_error_when_intent_is_retry.patch
-Patch19:%{name}-ppc64-book3s-update-hash-page-table-geometry.patch
-Patch20:%{name}-x86_64_kvtop-usable-symtab_init.patch
 Patch21:%{name}-allow-use-of-sadump-captured-KASLR-kernel.patch
-Patch22:
%{name}-ppc64-ensure-chosen-stack-symbol-relates-to-an-actual-backtrace.patch
-Patch23:%{name}-fix-error-cannot-resolve-schedulers-0001.patch
-Patch24:%{name}-fix-error-cannot-resolve-schedulers-0002.patch
-Patch25:%{name}-extend-direct-mapping-to-5TB.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -110,7 +104,7 @@
 BuildRequires:  kernel-syms
 BuildRequires:  module-init-tools
 %if 0%{?buildrt}
-%if ! 0%{?build_crash_on_obs}
+%if ! 0%{?build_crash_on_obs}
 BuildRequires:  kernel-syms-rt
 %endif
 %endif
@@ -148,7 +142,7 @@
 %package doc
 Requires:   %{name} = %{version}
 Summary:Documentation for Crash
-License:GFDL-1.2
+License:GFDL-1.2-only
 Group:  Development/Tools/Debuggers
 
 %description doc
@@ -163,7 +157,7 @@
 %package devel
 Requires:   %{name} = %{version}
 Summary:Development files for crash
-License:GPL-2.0+
+License:GPL-2.0-or-later
 Group:  Development/Tools/Debuggers
 
 %description devel
@@ -190,7 +184,7 @@
 Obsoletes:  %{name}-sial < %{version}
 %endif
 Summary:Embeddable Pre-Processor and Interpreter for C extension for 
crash
-License:GPL-2.0+
+License:GPL-2.0-or-later
 Group:  Development/Tools/Debuggers
 
 %description eppic
@@ -212,7 +206,7 @@
 %package sial
 Requires:   %{name} = %{version}
 Summary:SIAL extension for crash
-License:GPL-2.0+
+License:GPL-2.0-or-later
 Group:  Development/Tools/Debuggers
 
 %description sial
@@ -235,7 +229,7 @@
 %package gcore
 Requires:   %{name} = %{version}
 Summary:Gcore extension for crash
-License:GPL-2.0+
+License:GPL-2.0-or-later
 Group:  Development/Tools/Debuggers
 
 %description gcore
@@ -254,7 +248,7 @@
 
 %package %kmp_pkg
 Summary:Memory driver for the crash utility
-License:   

commit crash for openSUSE:Factory

2018-02-12 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2018-02-12 10:15:13

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is "crash"

Mon Feb 12 10:15:13 2018 rev:147 rq:575231 version:7.2.0

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2018-01-13 
21:49:33.628723563 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2018-02-12 
10:15:16.473376433 +0100
@@ -1,0 +2,11 @@
+Mon Feb  5 18:56:04 UTC 2018 - dm...@suse.com
+
+- Added:
+crash-fix-error-cannot-resolve-schedulers-0001.patch
+crash-fix-error-cannot-resolve-schedulers-0002.patch
+crash-extend-direct-mapping-to-5TB.patch
+
+  Fixes Xen dump files that cannot be opened in hypervisor mode.
+  bsc#1073993
+
+---

New:

  crash-extend-direct-mapping-to-5TB.patch
  crash-fix-error-cannot-resolve-schedulers-0001.patch
  crash-fix-error-cannot-resolve-schedulers-0002.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.CweG4r/_old  2018-02-12 10:15:18.337309264 +0100
+++ /var/tmp/diff_new_pack.CweG4r/_new  2018-02-12 10:15:18.337309264 +0100
@@ -87,6 +87,9 @@
 Patch20:%{name}-x86_64_kvtop-usable-symtab_init.patch
 Patch21:%{name}-allow-use-of-sadump-captured-KASLR-kernel.patch
 Patch22:
%{name}-ppc64-ensure-chosen-stack-symbol-relates-to-an-actual-backtrace.patch
+Patch23:%{name}-fix-error-cannot-resolve-schedulers-0001.patch
+Patch24:%{name}-fix-error-cannot-resolve-schedulers-0002.patch
+Patch25:%{name}-extend-direct-mapping-to-5TB.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -286,6 +289,9 @@
 %patch20 -p1
 %patch21 -p1
 %patch22 -p1
+%patch23 -p1
+%patch24 -p1
+%patch25 -p1
 %if %{have_snappy}
 %patch15 -p1
 %endif

++ crash-extend-direct-mapping-to-5TB.patch ++
From: Petr Tesarik 
Subject: Extend Xen hypervisor direct mapping on x86_64
References: bsc#1073993
Upstream: merged
Git-commit: e9ae5eb9749a62060610dc29d1b282bc79d3

Xen commit 615588563e99a23aaf37037c3fee0c413b051f4d (Xen 4.0.0.)
extended the direct mapping to 5 TB. This area was previously
reserved for future use, so it is OK to simply change the upper
bound unconditionally.

Signed-off-by: Petr Tesarik 
---
 xen_hyper_defs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xen_hyper_defs.h b/xen_hyper_defs.h
index 6d5d256..b871bdd 100644
--- a/xen_hyper_defs.h
+++ b/xen_hyper_defs.h
@@ -63,7 +63,7 @@
 #define HYPERVISOR_VIRT_START (0x8000)
 #define HYPERVISOR_VIRT_END   (0x8800)
 #define DIRECTMAP_VIRT_START  (0x8300)
-#define DIRECTMAP_VIRT_END(0x8400)
+#define DIRECTMAP_VIRT_END(0x8800)
 #define PAGE_OFFSET_XEN_HYPER DIRECTMAP_VIRT_START
 #define XEN_VIRT_START(xht->xen_virt_start)
 #define XEN_VIRT_ADDR(vaddr) \
++ crash-fix-error-cannot-resolve-schedulers-0001.patch ++
From: Nikola Pajkovsky 
Subject: dynamically allocate schedulers_buf
References: bsc#1073993
Upstream: merged
Git-commit: e4499a9de664826b0db2f650684959c2f3f9998c

crash can simply determinate length of xen schedulers struct.

  static const struct scheduler *schedulers[] = {
 ...
  };

Signed-off-by: Nikola Pajkovsky 
---
 xen_hyper.c | 15 +--
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/xen_hyper.c b/xen_hyper.c
index 27e44c6e733d..479aa1acfd43 100644
--- a/xen_hyper.c
+++ b/xen_hyper.c
@@ -435,7 +435,6 @@ xen_hyper_misc_init(void)
 /*
  * Do initialization for scheduler of Xen Hyper system here.
  */
-#define XEN_HYPER_SCHEDULERS_ARRAY_CNT 10
 #define XEN_HYPER_SCHEDULER_NAME 1024
 
 static void
@@ -443,7 +442,8 @@ xen_hyper_schedule_init(void)
 {
ulong addr, opt_sched, schedulers, opt_name;
long scheduler_opt_name;
-   long schedulers_buf[XEN_HYPER_SCHEDULERS_ARRAY_CNT];
+   long *schedulers_buf;
+   int nr_schedulers;
struct xen_hyper_sched_context *schc;
char *buf;
char opt_name_buf[XEN_HYPER_OPT_SCHED_SIZE];
@@ -469,15 +469,17 @@ xen_hyper_schedule_init(void)
XEN_HYPER_OPT_SCHED_SIZE, "opt_sched,", RETURN_ON_ERROR)) {
error(FATAL, "cannot read opt_sched,.\n");
}
+   nr_schedulers = get_array_length("schedulers", 0, 0);
+   schedulers_buf = (long *)GETBUF(nr_schedulers * sizeof(long));
schedulers = symbol_value("schedulers");
addr = schedulers;
while (xhscht->name == NULL) {

commit crash for openSUSE:Factory

2018-01-13 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2018-01-13 21:49:33

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is "crash"

Sat Jan 13 21:49:33 2018 rev:146 rq:563935 version:7.2.0

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2018-01-02 
16:35:35.704322828 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2018-01-13 
21:49:33.628723563 +0100
@@ -1,0 +2,9 @@
+Fri Jan 12 18:14:39 UTC 2018 - dm...@suse.com
+
+- Added 
crash-ppc64-ensure-chosen-stack-symbol-relates-to-an-actual-backtrace.patch
+
+  With latest NMI IPI changes, crash_ipi_callback is found multiple
+  times on the stack. Ensure the chosen symbol relates to an actual
+  backtrace. bsc#1072718
+
+---

New:

  crash-ppc64-ensure-chosen-stack-symbol-relates-to-an-actual-backtrace.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.dHEZ0v/_old  2018-01-13 21:49:34.888664818 +0100
+++ /var/tmp/diff_new_pack.dHEZ0v/_new  2018-01-13 21:49:34.892664632 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package crash
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -86,6 +86,7 @@
 Patch19:%{name}-ppc64-book3s-update-hash-page-table-geometry.patch
 Patch20:%{name}-x86_64_kvtop-usable-symtab_init.patch
 Patch21:%{name}-allow-use-of-sadump-captured-KASLR-kernel.patch
+Patch22:
%{name}-ppc64-ensure-chosen-stack-symbol-relates-to-an-actual-backtrace.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -284,6 +285,7 @@
 %patch19 -p1
 %patch20 -p1
 %patch21 -p1
+%patch22 -p1
 %if %{have_snappy}
 %patch15 -p1
 %endif


++ 
crash-ppc64-ensure-chosen-stack-symbol-relates-to-an-actual-backtrace.patch 
++
With latest NMI IPI changes, crash_ipi_callback is found multiple times
on the stack. Ensure the chosen symbol relates to an actual backtrace.

Signed-off-by: Hari Bathini 
---
 ppc64.c |8 
 1 file changed, 8 insertions(+)

diff --git a/ppc64.c b/ppc64.c
index 672ee60..0b04187 100644
--- a/ppc64.c
+++ b/ppc64.c
@@ -2337,6 +2337,14 @@ retry:
 *nip = *up;
 *ksp = bt->stackbase + 
((char *)(up) - 16 - bt->stackbuf);
+   /*
+* Check whether this symbol relates to a
+* backtrace or not
+*/
+   ur_ksp =  *(ulong *)>stackbuf[(*ksp) - 
bt->stackbase];
+   if (!INSTACK(ur_ksp, bt))
+   continue;
+
 return TRUE;
 }
}



commit crash for openSUSE:Factory

2018-01-02 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2018-01-02 16:35:25

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is "crash"

Tue Jan  2 16:35:25 2018 rev:145 rq:561080 version:7.2.0

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2017-11-30 
12:46:10.496209707 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2018-01-02 
16:35:35.704322828 +0100
@@ -1,0 +2,6 @@
+Thu Dec  7 11:05:03 UTC 2017 - dims...@opensuse.org
+
+- Escape the usage of %{VERSION} when calling out to rpm.
+  RPM 4.14 has %{VERSION} defined as 'the main packages version'.
+
+---



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.icQcgO/_old  2018-01-02 16:35:38.351440082 +0100
+++ /var/tmp/diff_new_pack.icQcgO/_new  2018-01-02 16:35:38.351440082 +0100
@@ -121,8 +121,8 @@
 %define arch %_target_cpu
 %define kmp_pkg KMP
 %else
-%define kver %(rpm -q --qf '%{VERSION}-%{RELEASE}' kernel-source)
-%define kver_ %(rpm -q --qf '%{VERSION}_%{RELEASE}' kernel-source)
+%define kver %(rpm -q --qf '%%{VERSION}-%%{RELEASE}' kernel-source)
+%define kver_ %(rpm -q --qf '%%{VERSION}_%%{RELEASE}' kernel-source)
 %define arch %(echo %_target_cpu | sed -e 's/i.86/i386/')
 %define flavors_to_build %(sh %_sourcedir/get-kernel-flavors.sh %arch)
 %define kmp_pkg kmp





commit crash for openSUSE:Factory

2017-11-30 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2017-11-30 12:46:07

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is "crash"

Thu Nov 30 12:46:07 2017 rev:144 rq:546548 version:7.2.0

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2017-11-16 
14:02:15.526919747 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2017-11-30 
12:46:10.496209707 +0100
@@ -1,0 +2,12 @@
+Wed Nov 29 17:45:11 UTC 2017 - dm...@suse.com
+
+- Added crash-x86_64_kvtop-usable-symtab_init.patch to change 
+  x86_64_kvtop() so that it can be called during symtab_init()
+
+  Added crash-allow-use-of-sadump-captured-KASLR-kernel.patch to
+  allow use of dumps of KASLR enabled kernels that were captured
+  by sadump.
+
+  Both are bsc#1070278/FATE#323473
+
+---

New:

  crash-allow-use-of-sadump-captured-KASLR-kernel.patch
  crash-x86_64_kvtop-usable-symtab_init.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.3g440d/_old  2017-11-30 12:46:12.928121301 +0100
+++ /var/tmp/diff_new_pack.3g440d/_new  2017-11-30 12:46:12.932121156 +0100
@@ -84,6 +84,8 @@
 Patch16:eppic-support-arm64.patch
 Patch18:%{name}-stop_read_error_when_intent_is_retry.patch
 Patch19:%{name}-ppc64-book3s-update-hash-page-table-geometry.patch
+Patch20:%{name}-x86_64_kvtop-usable-symtab_init.patch
+Patch21:%{name}-allow-use-of-sadump-captured-KASLR-kernel.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -280,6 +282,8 @@
 %patch13 -p1
 %patch18 -p1
 %patch19 -p1
+%patch20 -p1
+%patch21 -p1
 %if %{have_snappy}
 %patch15 -p1
 %endif

++ crash-allow-use-of-sadump-captured-KASLR-kernel.patch ++
 605 lines (skipped)


++ crash-x86_64_kvtop-usable-symtab_init.patch ++
This patch changes x86_64_kvtop() so that it can be called during
symtab_init().

To solve kaslr problem of sadump, kaslr offset and phys_base need to be
calculated before symbol data is loaded. This calculation needs
translation of kernel virtual address to physical address. Current
x86_64_kvtop() implementation tries to use x86_64_VTOP for translation
at first, but this does not work for this purpose because x86_64_VTOP
uses phys_base. x86_64_kvtop() need to be changed to skip x86_64_VTOP()
during sadump initialization.

Signed-off-by: Takao Indoh 
---
 x86_64.c | 21 +
 1 file changed, 21 insertions(+)

diff --git a/x86_64.c b/x86_64.c
index 6e60dda..2f9e6db 100644
--- a/x86_64.c
+++ b/x86_64.c
@@ -194,6 +194,9 @@ x86_64_init(int when)
machdep->machspec->kernel_image_size = dtol(string, 
QUIET, NULL);
free(string);
}
+   if (SADUMP_DUMPFILE())
+   /* Need for calculation of kaslr_offset and phys_base */
+   machdep->kvtop = x86_64_kvtop;
break;
 
case PRE_GDB:
@@ -2019,6 +2022,22 @@ x86_64_kvtop(struct task_context *tc, ulong kvaddr, 
physaddr_t *paddr, int verbo
ulong pte;
physaddr_t physpage;
 
+   if (SADUMP_DUMPFILE() && !(machdep->flags & KSYMS_START)) {
+   /*
+* In the case of sadump, to calculate kaslr_offset and
+* phys_base, kvtop is called during symtab_init(). In this
+* stage phys_base is not initialized yet and x86_64_VTOP()
+* does not work. Jump to the code of pagetable translation.
+*/
+   FILL_PML4();
+   pml4 = ((ulong *)machdep->machspec->pml4) + pml4_index(kvaddr);
+   if (verbose) {
+   fprintf(fp, "PML4 DIRECTORY: %lx\n", vt->kernel_pgd[0]);
+   fprintf(fp, "PAGE DIRECTORY: %lx\n", *pml4);
+   }
+   goto start_vtop_with_pagetable;
+   }
+
 if (!IS_KVADDR(kvaddr))
 return FALSE;
 
@@ -2065,6 +2084,8 @@ x86_64_kvtop(struct task_context *tc, ulong kvaddr, 
physaddr_t *paddr, int verbo
fprintf(fp, "PAGE DIRECTORY: %lx\n", *pml4);
}
}
+
+start_vtop_with_pagetable:
if (!(*pml4) & _PAGE_PRESENT)
goto no_kpage;
pgd_paddr = (*pml4) & PHYSICAL_PAGE_MASK;



commit crash for openSUSE:Factory

2017-11-16 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2017-11-16 14:02:11

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is "crash"

Thu Nov 16 14:02:11 2017 rev:143 rq:542028 version:7.2.0

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2017-06-16 
10:54:49.723116003 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2017-11-16 
14:02:15.526919747 +0100
@@ -1,0 +2,24 @@
+Tue Nov 14 22:32:42 UTC 2017 - dm...@suse.com
+
+- Upgrade the source tarball to version to 7.2.0 which requires the
+  removal of patches that are then already applied:
+
+  crash-gdb-add-proc_service-sync-with-GLIBC.patch
+  crash-xen_add_support_for_domU_with_linux_kernel_from_3.19.patch
+
+  A complete changelog is available via the crash source page at:
+
+  http://people.redhat.com/anderson/crash.changelog.html
+
+  Added crash-ppc64-book3s-update-hash-page-table-geometry.patch
+  from hbath...@linux.vnet.ibm.com via bsc#1067702 to correct
+  errors with virtual-to-physical address translation in the larger
+  virtual address range of newer kernels.
+
+  Added a BuildRequires of libelf that will populate the build
+  workspace with libelf (from elfutils) even though it is not
+  directly required by crash but is required by gdb (which crash
+  nests). It no longer got picked up automatically for build and
+  gdb and kernel module features had build errors before it.
+
+---

Old:

  crash-7.1.8.tar.gz
  crash-gdb-add-proc_service-sync-with-GLIBC.patch
  crash-xen_add_support_for_domU_with_linux_kernel_from_3.19.patch

New:

  crash-7.2.0.tar.gz
  crash-ppc64-book3s-update-hash-page-table-geometry.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.Z0xZ7U/_old  2017-11-16 14:02:16.674878145 +0100
+++ /var/tmp/diff_new_pack.Z0xZ7U/_new  2017-11-16 14:02:16.678878000 +0100
@@ -14,10 +14,9 @@
 
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
-
-
 # needssslcertforbuild
 
+
 %define whitepaper_version 2003
 %define scripts_version  2008-02-08
 %define gcore_version  2011-09-22
@@ -57,7 +56,7 @@
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
 License:GPL-3.0+ and GFDL-1.2
 Group:  Development/Tools/Debuggers
-Version:7.1.8
+Version:7.2.0
 Release:0
 Source: %{name}-%{version}.tar.gz
 Source2:crash_whitepaper-%{whitepaper_version}.tar.bz2
@@ -83,9 +82,8 @@
 Patch13:%{name}-patch-gdb.patch
 Patch15:%{name}_enable_snappy_support.patch
 Patch16:eppic-support-arm64.patch
-Patch17:%{name}-gdb-add-proc_service-sync-with-GLIBC.patch
 Patch18:%{name}-stop_read_error_when_intent_is_retry.patch
-Patch19:
%{name}-xen_add_support_for_domU_with_linux_kernel_from_3.19.patch
+Patch19:%{name}-ppc64-book3s-update-hash-page-table-geometry.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -95,6 +93,7 @@
 %if %{have_snappy}
 BuildRequires:  snappy-devel
 %endif
+BuildRequires:  libelf-devel
 BuildRequires:  zlib-devel
 Requires:   /usr/bin/nm
 ExclusiveArch:  %ix86 x86_64 ia64 s390 s390x ppc64 ppc64le alpha aarch64
@@ -279,7 +278,6 @@
 %patch10 -p1
 %patch11 -p1
 %patch13 -p1
-%patch17 -p1
 %patch18 -p1
 %patch19 -p1
 %if %{have_snappy}

++ crash-7.1.8.tar.gz -> crash-7.2.0.tar.gz ++
/work/SRC/openSUSE:Factory/crash/crash-7.1.8.tar.gz 
/work/SRC/openSUSE:Factory/.crash.new/crash-7.2.0.tar.gz differ: char 5, line 1


++ crash-ppc64-book3s-update-hash-page-table-geometry.patch ++
Update for support of Linux 4.14 and later PPC64 kernels where the

From: Dave Anderson 

hash page table geometry accomodates a larger virtual address range.
Without the patch, the virtual-to-physical translation of user space
virtual addresses by "vm -p", "vtop", and "rd -u" may generate an
invalid translation or otherwise fail.
(hbath...@linux.vnet.ibm.com)
---
 defs.h  |3 +++
 ppc64.c |   12 +---
 2 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/defs.h b/defs.h
index 154a5b9..f2c3f50 100644
--- a/defs.h
+++ b/defs.h
@@ -3857,6 +3857,9 @@ struct efi_memory_desc_t {
 #define PGD_INDEX_SIZE_L4_64K_3_10  12
 #define PMD_INDEX_SIZE_L4_64K_4_6  5
 #define PUD_INDEX_SIZE_L4_64K_4_6  5
+#define PMD_INDEX_SIZE_L4_64K_4_12 10
+#define PUD_INDEX_SIZE_L4_64K_4_12 7
+#define PGD_INDEX_SIZE_L4_64K_4_12 8
 #define PTE_INDEX_SIZE_RADIX_64K  5
 #define PMD_INDEX_SIZE_RADIX_64K  9
 #define PUD_INDEX_SIZE_RADIX_64K  9
diff --git 

commit crash for openSUSE:Factory

2017-06-16 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2017-06-16 10:54:47

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is "crash"

Fri Jun 16 10:54:47 2017 rev:142 rq:503961 version:7.1.8

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2017-06-12 
15:33:45.545128248 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2017-06-16 
10:54:49.723116003 +0200
@@ -1,0 +2,13 @@
+Fri Jun  9 14:43:20 UTC 2017 - dm...@suse.com
+
+- crash-xen_add_support_for_domU_with_linux_kernel_from_3.19.patch:
+  Since linux kernel 3.19 crash readmem() can't be used to read
+  xen_p2m_addr associate memory directly during m2p translation.
+  PV domU p2m mapping is also stored at xd->xfd + xch_index_offset
+  and organized as struct xen_dumpcore_p2m. This patch implements
+  a special reading function read_xc_p2m() to extract the mfns
+  from xd->xfd + xch_index_offset and makes and crash support Xen
+  PV domU dumpfiles for kernel 3.19 and later (bsc#1043501).
+   - add crash-xen_add_support_for_domU_with_linux_kernel_from_3.19.patch
+
+---
@@ -46,0 +60,5 @@
+- refresh crash-sles9-time.patch crash-compressed-booted-kernel.patch
+
+- drop crash-Fix-for-the-PPC64-bt-command-for-non-panicking-activ.patch
+  merged upstram in 7.1.8
+
@@ -50,0 +69 @@
+   + crash-Fix-for-the-PPC64-bt-command-for-non-panicking-activ.patch
@@ -141,0 +161,4 @@
+
+ - refresh eppic-support-arm64.patch crash-debuginfo-compressed.patch
+
+ - drop crash-linux-4.6-printk-flags.patch merged upstream in 7.1.6

New:

  crash-xen_add_support_for_domU_with_linux_kernel_from_3.19.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.QzIjF2/_old  2017-06-16 10:54:51.222904872 +0200
+++ /var/tmp/diff_new_pack.QzIjF2/_new  2017-06-16 10:54:51.222904872 +0200
@@ -14,9 +14,10 @@
 
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
-# needssslcertforbuild
 
 
+# needssslcertforbuild
+
 %define whitepaper_version 2003
 %define scripts_version  2008-02-08
 %define gcore_version  2011-09-22
@@ -46,10 +47,12 @@
 %define build_kmp 1
 %if ! 0%{?is_opensuse}
 %ifarch x86_64
+%if 0%{?sle_version} < 120300
 %define buildrt 1
 %endif
 %endif
 %endif
+%endif
 Url:http://people.redhat.com/anderson/
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
 License:GPL-3.0+ and GFDL-1.2
@@ -82,6 +85,7 @@
 Patch16:eppic-support-arm64.patch
 Patch17:%{name}-gdb-add-proc_service-sync-with-GLIBC.patch
 Patch18:%{name}-stop_read_error_when_intent_is_retry.patch
+Patch19:
%{name}-xen_add_support_for_domU_with_linux_kernel_from_3.19.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -101,8 +105,10 @@
 BuildRequires:  kernel-syms
 BuildRequires:  module-init-tools
 %if 0%{?buildrt}
+%if ! 0%{?build_crash_on_obs}
 BuildRequires:  kernel-syms-rt
 %endif
+%endif
 %if 0%{?suse_version} >= 1130
 BuildRequires:  kernel-devel
 %endif
@@ -275,6 +281,7 @@
 %patch13 -p1
 %patch17 -p1
 %patch18 -p1
+%patch19 -p1
 %if %{have_snappy}
 %patch15 -p1
 %endif


++ crash-xen_add_support_for_domU_with_linux_kernel_from_3.19.patch ++

crash patch c3413456599161cabc4e910a0ae91dfe5eec3c21 (xen: Add support for
dom0 with Linux kernel 3.19 and newer) from Daniel made crash utility
support xen dom0 vmcores after linux kernel commit
054954eb051f35e74b75a566a96fe756015352c8 (xen: switch to linear virtual
mapped sparse p2m list).

This patch can be deemed as a subsequent and make this utility support Xen
PV domU dumpfiles again.

Basically speaking, readmem() can't be used to read xen_p2m_addr associate
memory directly during m2p translation. It introduces infinite recursion.
Following call sequence shows the scenario, it comes from a section of
backtrace with only kvaddr, machine addr and mfn left as parameter:

module_init()

/* The first readmem() from module_init(). */
readmem(addr=0xa02fe4a0)

/* readmem() needs physical address, so calls kvtop(). */
kvtop(kvaddr=0xa02fe4a0)
x86_64_kvtop(kvaddr=a02fe4a0)

/* Calculate physical address by traversing page tables. */
x86_64_kvtop_xen_wpt(kvaddr=0xa02fe4a0)

/*
 * x86_64_kvtop_xen_wpt() is going to traverse the page table to
 * get the physical address for 0xa02fe4a0. So, at first it
 * is needed to translate the pgd from machine address to physical
 * address. So invoke xen_m2p() here to do the translation. 0x58687f000
 * is the pgd machine address in x86_64_kvtop_xen_wpt() and is needed
 * to 

commit crash for openSUSE:Factory

2017-06-12 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2017-06-12 15:33:43

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is "crash"

Mon Jun 12 15:33:43 2017 rev:141 rq:502644 version:7.1.8

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2017-05-31 
12:20:28.558185396 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2017-06-12 
15:33:45.545128248 +0200
@@ -1,0 +2,5 @@
+Fri Jun  2 12:03:45 UTC 2017 - msucha...@suse.com
+
+- Merge SLE changes into Factory (bsc#1041638)
+
+---
@@ -7,0 +13 @@
+   - add crash-stop_read_error_when_intent_is_retry.patch
@@ -194,0 +201,16 @@
+Thu Oct  1 17:03:34 UTC 2015 - dm...@suse.com
+
+- For 7.1.3 ppc64le the following patches are obsoleted by mainline
+   crash-gdb-7.6-add-powerpc64le-linux.patch
+   crash-gdb-7.6-bound_minimal_symbol.patch
+   crash-gdb-7.6-floatformat.patch
+   crash-gdb-7.6-ppc64-ELFv2-trampoline-match.patch
+   crash-gdb-7.6-ppc64_sysv_abi_push_float.patch
+   crash-gdb-7.6-ppc64le.patch
+   crash-gdb-7.6-ppc_insns_match_pattern.patch
+   crash-gdb-7.6-update-autoconf-2013-04-24.patch
+   crash-gdb-7.6-update-autoconf-2013-06-10.patch
+   crash-gdb-7.6.series
+   crash-patch-gdb.patch
+
+---
@@ -660,0 +683,6 @@
+Sat Apr 12 20:48:21 UTC 2014 - mma...@suse.cz
+
+- Add # needssslcertforbuild to use the project's certificate when
+  building in a home project.
+
+---
@@ -752,0 +781,6 @@
+
+---
+Wed Jan 29 13:19:18 CET 2014 - r...@suse.de
+
+- disable build_kmp on i586 and s390, SLE-12 does not build a
+  runnable kernel there 

New:

  Module.supported



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.Z4c1uh/_old  2017-06-12 15:33:47.516850156 +0200
+++ /var/tmp/diff_new_pack.Z4c1uh/_new  2017-06-12 15:33:47.516850156 +0200
@@ -14,6 +14,7 @@
 
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
+# needssslcertforbuild
 
 
 %define whitepaper_version 2003
@@ -41,7 +42,14 @@
 %else
 %define build_gcore 0
 %endif
+%ifnarch %ix86 s390
 %define build_kmp 1
+%if ! 0%{?is_opensuse}
+%ifarch x86_64
+%define buildrt 1
+%endif
+%endif
+%endif
 Url:http://people.redhat.com/anderson/
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
 License:GPL-3.0+ and GFDL-1.2
@@ -53,6 +61,7 @@
 Source3:README.SUSE
 Source4:sial-scripts-%{scripts_version}.tar.bz2
 Source5:gcore-%{gcore_version}.tar.bz2
+Source6:Module.supported
 Source95:   get-kernel-flavors.sh
 Source96:   depmod.sh
 Source97:   mkinitrd.sh
@@ -91,6 +100,9 @@
 %if 0%{?build_kmp}
 BuildRequires:  kernel-syms
 BuildRequires:  module-init-tools
+%if 0%{?buildrt}
+BuildRequires:  kernel-syms-rt
+%endif
 %if 0%{?suse_version} >= 1130
 BuildRequires:  kernel-devel
 %endif
@@ -284,6 +296,9 @@
 %patch16 -p1
 cp %{S:3} .
 mkdir kbuild
+%if ! 0%{?is_opensuse}
+cp %{S:6} memory_driver
+%endif
 
 %build
 export CFLAGS="$RPM_OPT_FLAGS -fno-builtin-memset -fno-strict-aliasing"

++ Module.supported ++
crash.ko




commit crash for openSUSE:Factory

2017-05-31 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2017-05-31 12:20:08

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is "crash"

Wed May 31 12:20:08 2017 rev:140 rq:499668 version:7.1.8

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2017-04-11 
09:36:01.114588769 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2017-05-31 
12:20:28.558185396 +0200
@@ -1,0 +2,13 @@
+Thu May 25 18:56:51 CEST 2017 - dm...@suse.com
+
+- crash-stop_read_error_when_intent_is_retry.patch: When reading a
+  memory image fails it may not be an error if it is still possible
+  to switch image and retry the read. Fix the error message output
+  to only occur if no retries are intended (bsc#1038839).
+
+---
+Mon Apr 24 15:50:26 UTC 2017 - astie...@suse.com
+
+- Exclude openSUSE from RT KMP build (bsc#1013843)
+
+---
@@ -28,0 +42,5 @@
+Wed Feb  1 14:08:44 UTC 2017 - msucha...@suse.com
+
+- Fix analyzing fadump dumps on PPC64 (bsc#1022962).
+
+---
@@ -119,0 +138,11 @@
+Wed Oct 19 11:55:14 UTC 2016 - lpecha...@suse.com
+
+- Enabled RT KMP build (bsc#1005578)
+
+---
+Mon Aug 15 12:58:39 UTC 2016 - ptesa...@suse.com
+
+- crash-linux-4.6-printk-flags.patch: Fix warning "failed to read
+  pageflag_names entry" on Linux 4.6 (bsc#978601).
+
+---
@@ -126 +155 @@
-Fri May 27 14:45:20 UTC 2016 - ptesa...@suse.com
+Fri May 27 13:44:34 UTC 2016 - ptesa...@suse.com
@@ -128 +157 @@
-- eppic-support-arm64.patch: Support for ARM64.
+- eppic-support-arm64.patch: Support for ARM64 (FATE#320844).
@@ -131 +160 @@
-Thu Apr 28 14:11:01 UTC 2016 - dm...@suse.com
+Tue May 24 20:14:06 CEST 2016 - dm...@suse.de
@@ -156 +185 @@
-Tue Sep  8 20:07:52 UTC 2015 - dm...@suse.com
+Fri Jan 22 08:19:11 UTC 2016 - lpecha...@suse.com
@@ -158,3 +187 @@
-- Upgrade of source tarball to 7.1.3 from upstream and refresh of
-  patch series to match. For the changelog of the source tarball
-  see:
+- Disable RT KMP build (bsc#962719)
@@ -162 +189,2 @@
-  http://people.redhat.com/anderson/crash.changelog.html
+---
+Wed Oct  7 15:03:03 UTC 2015 - lpecha...@suse.com
@@ -164 +192,43 @@
-  Feature enhancements include:
+- Enable RT KMP build (bsc#948840)
+
+---
+Tue Sep 22 14:43:49 UTC 2015 - dm...@suse.com
+
+- Update to 7.1.3 (bsc#946458)
+  o Introduction of "dis -f " which disassembles from the
+address to the end of the function
+  o Introduction of "dis -s " which displays the filename
+and line number associated with the specified text location,
+followed by a source code listing if available.
+  o Addition of a new "--src " command line option for
+use by the "dis -s" option if the kernel source is not located
+in the standard location.
+  o Do not search for a panic task in s390x dumpfiles that are
+marked as a "live dump"
+  o Fix unnecessary error messages when a directory is used as a
+command line argument
+  o See http://people.redhat.com/anderson/crash.changelog.html for
+the complete changelog
+- Removed these patches obsoleted by mainline:
+   crash-x86_64-nested-nmi.patch
+   crash-keep-file-orig-with-name-on-select.patch
+   crash-kmem_cache-downsize.patch
+   crash-s390x-add-vector-support.patch
+- Refreshed patches
+
+---
+Wed Jul 29 13:47:05 UTC 2015 - ptesa...@suse.cz
+
+- crash-move-xen-dom0-handling-into-own-file.patch: Move Xen Dom0
+  handling into xen_dom0.c (FATE#316467).
+- crash-move-xen-p2m-map.patch: Move xen p2m map initialization to
+  xen_kdump_p2m (FATE#316467).
+- crash-use-xen_machine_addr-command.patch: Use XEN_MACHINE_ADDR
+  command flag instead of overriding readmem (FATE#316467).
+- crash-move-xen-elf-note-processing.patch: Move Xen ELF note
+  processing to xen_dom0.c (FATE#316467).
+- crash-add-xen-dom0-support-for-kdump.patch: Add Xen Dom0 support
+  for kdump compressed files (FATE#316467).
+
+---
+Tue Jul 21 15:18:29 UTC 2015 - ptesa...@suse.com
@@ -166,11 +236,2 @@
-  - Introduction of the "dis -f " option, which 
-disassembles from the target address until the end of the
-function.
-  - Introduction of the "dis -s " option, which displays
-the filename and line number that is associated with the
-specified text location, 

commit crash for openSUSE:Factory

2017-04-11 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2017-04-11 09:35:41

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is "crash"

Tue Apr 11 09:35:41 2017 rev:139 rq:483447 version:7.1.8

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2017-02-03 
17:35:00.415581032 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2017-04-11 
09:36:01.114588769 +0200
@@ -1,0 +2,27 @@
+Tue Mar 28 19:50:52 UTC 2017 - dm...@suse.com
+
+- crash source nests gdb source but gdb has a new build error on
+  Factory due to the bug and build environment modifications. The
+  fix is upstream gdb but not upstream crash's gdb.
+
+  Created crash patch:
+
+  crash-gdb-add-proc_service-sync-with-GLIBC.patch
+
+  to create the gdb patch in expanded crash and added to the gdb
+  Makefile patch it's application. Resolves the build error.
+
+---
+Tue Mar  7 16:14:26 CET 2017 - dm...@suse.de
+
+- Upgrade of source tarball to 7.1.8 from upstream and refresh of
+  patches to align with the version. For a detailed changelog of
+  the source tarball see:
+
+  http://people.redhat.com/anderson/crash.changelog.html
+
+  Adds a feature to permit the use of the command-line options
+  "--kaslr=" and/or "--kaslr=auto" with the x86 32-bit
+  architecture.
+
+---

Old:

  crash-7.1.7.tar.gz

New:

  crash-7.1.8.tar.gz
  crash-gdb-add-proc_service-sync-with-GLIBC.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.JNyT9T/_old  2017-04-11 09:36:03.574241312 +0200
+++ /var/tmp/diff_new_pack.JNyT9T/_new  2017-04-11 09:36:03.578240746 +0200
@@ -46,7 +46,7 @@
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
 License:GPL-3.0+ and GFDL-1.2
 Group:  Development/Tools/Debuggers
-Version:7.1.7
+Version:7.1.8
 Release:0
 Source: %{name}-%{version}.tar.gz
 Source2:crash_whitepaper-%{whitepaper_version}.tar.bz2
@@ -71,6 +71,7 @@
 Patch13:%{name}-patch-gdb.patch
 Patch15:%{name}_enable_snappy_support.patch
 Patch16:eppic-support-arm64.patch
+Patch17:%{name}-gdb-add-proc_service-sync-with-GLIBC.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -259,6 +260,7 @@
 %patch10 -p1
 %patch11 -p1
 %patch13 -p1
+%patch17 -p1
 %if %{have_snappy}
 %patch15 -p1
 %endif

++ crash-7.1.7.tar.gz -> crash-7.1.8.tar.gz ++
/work/SRC/openSUSE:Factory/crash/crash-7.1.7.tar.gz 
/work/SRC/openSUSE:Factory/.crash.new/crash-7.1.8.tar.gz differ: char 5, line 1

++ crash-compressed-booted-kernel.patch ++
--- /var/tmp/diff_new_pack.JNyT9T/_old  2017-04-11 09:36:03.646231142 +0200
+++ /var/tmp/diff_new_pack.JNyT9T/_new  2017-04-11 09:36:03.646231142 +0200
@@ -11,7 +11,7 @@
 
 --- a/filesys.c
 +++ b/filesys.c
-@@ -572,6 +572,7 @@ static int
+@@ -571,6 +571,7 @@ static int
  find_booted_kernel(void)
  {
char kernel[BUFSIZE];
@@ -19,7 +19,7 @@
char buffer[BUFSIZE];
char **searchdirs;
int i, preferred, wrapped;
-@@ -621,16 +622,24 @@ find_booted_kernel(void)
+@@ -620,16 +621,24 @@ find_booted_kernel(void)
sprintf(kernel, "%s%s", searchdirs[i], dp->d_name);
  
if (mount_point(kernel) ||
@@ -48,7 +48,7 @@
if (found)
break;
}
-@@ -650,10 +659,19 @@ find_booted_kernel(void)
+@@ -649,10 +658,19 @@ find_booted_kernel(void)
if (CRASHDEBUG(1))
fprintf(fp, "find_booted_kernel: found: %s\n", 
pc->namelist);


++ crash-gdb-add-proc_service-sync-with-GLIBC.patch ++
From: David Mair 
Date: 2017-03-28 17:17:25.532260682 -0600
Subject: Add application of GLIBC proc_service prototype cleanup from upstream
References: bnc#1029318 bnc#1022962
Upstream: tbd (crash); merged (gdb)

crash source nests gdb source but crash/gdb has a newly seen build error on
some cases due to a "cause" and a new build environment. The cause is that the
function prototype for extern ps_get_thread_area() in GLIBC/proc_service has a
non-const first argument but implementations in crash's gdb have a const first
argument. Then gcc considers the definition as for a different function from
the declaration (conflicting types for 'ps_get_thread_area').

The fix is in upstream gdb (current):


commit crash for openSUSE:Factory

2017-02-03 Thread root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2017-01-27 11:15:06

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is "crash"

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2016-07-14 
09:50:06.0 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2017-02-03 
17:35:00.415581032 +0100
@@ -1,0 +2,91 @@
+Tue Jan 24 22:28:22 CET 2017 - dm...@suse.de
+
+- Upgrade of source tarball to 7.1.7 from upstream, removal of
+  crash-kernel-4.7.patch (source includes it) and refresh of other
+  patches to align with the version. For a detailed changelog of
+  the source tarball see:
+
+  http://people.redhat.com/anderson/crash.changelog.html
+
+  Feature enhancements included from 7.1.6:
+
+  - Introduction of support for "live" ramdump files, such as those
+that are specified by the latest QEMU version's mem-path
+argument of a memory-backend-file  object, e.g.:
+
+$ qemu-kvm ...other-options... \
+  -object memory-backend-file,id=MEM,size=128m,mem-path=/tmp/MEM,share=on \
+  -numa node,memdev=MEM -m 128
+
+and a live session run can be run against the guest kernel like so:
+
+ $ crash  live:/tmp/MEM@0
+
+  - Implemented support for the redesigned ARM64 kernel virtual
+memory layout that was introduced in Linux 4.6. Plus ARM64
+support for 4k pages with 4-level page tables and 48 VA bits.
+NB: On live systems automatic operation with Linux 4.6 ARM64
+kernels requires that CONFIG_RANDOMIZE_BASE is not configured.
+If it is configured then use with a live system requires two
+--machdep arguments, e.g.:
+
+  --machdep phys_offset=
+  --machdep kimage_voffset=
+
+  - Improvement of the ARM64 bt -f display so that, for most cases,
+the stack frame delimiter will be the location of the old FP
+and LR pair.
+
+  - New bt -v option that checks all tasks for evidence of stack
+overflows.
+
+  - Incorporation of an alternative stack backtrace mathod
+accessed directly using bt -o and the default method can be
+toggled between the two using bt -O.
+
+  - Fix for the case where the sym/dis commands fail for a symbol
+name that is composed entirely of hexadecimal characters and
+was previously interpreted as an address.
+
+  - Determine structure member data if the member is contained in
+an anonymous structure or union (no longer necessary to use a]
+discrete gdb "printf" command to find the offset of it).
+
+  - Session initialization speed up.
+
+  - Addition of "list -S" and "tree -S" options (similar to the -s
+option of each command) where member values are read from
+memory instead of being interpreting gdb output (much faster
+behavior for 1-, 2-, 4- and 8-byte members).
+
+  - Fix to recognize x86_64 Linux 4.8-rc1 and later kernels that
+are configured with CONFIG_RANDOMIZE_MEMORY.
+
+  - Support for PPC64 virtual address translation of radix MMU.
+
+  - Improvement of "dev -d" output to display I/O statistics for
+devices that use the blk-mq interface.
+
+  Feature enhancements included from 7.1.7:
+
+  - Restore x86_64 "dis" command's symbol translation for call or
+jump target addresses for kernels configured with
+CONFIG_RANDOMIZE_BASE.
+
+  - Re-factor of the trace extension module to locate all of the
+ftrace buffers and extracts data from each of them rather than
+only the primary one.
+
+  - Support for s390x CONFIG_THREAD_INFO_IN_TASK configuration so
+that "bt" command no longer shows incomplete output.
+
+  - Support for live ARM64 kernels from Linux 4.6 that have the
+kernel image loaded anywhere in physical memory.
+
+  - Update of /dev/crash/kernel driver to v1.3 which adds support
+Linux 4.6 and later ARM64 kernels configured with
+CONFIG_HARDENED_USERCOPY and S390x kernels that use
+xlate_dev_mem_ptr() and unxlate_dev_mem_ptr() rather than
+kmap() and kunmap().
+
+---

Old:

  crash-7.1.5.tar.gz
  crash-kernel-4.7.patch

New:

  crash-7.1.7.tar.gz



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.ZNeNwi/_old  2017-02-03 17:35:01.747392531 +0100
+++ /var/tmp/diff_new_pack.ZNeNwi/_new  2017-02-03 17:35:01.747392531 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package crash
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -46,7 +46,7 @@
 

commit crash for openSUSE:Factory

2016-07-14 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2016-07-14 09:49:56

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is "crash"

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2016-06-07 
23:47:35.0 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2016-07-14 
09:50:06.0 +0200
@@ -1,0 +2,6 @@
+Fri Jul  8 08:32:10 UTC 2016 - mkube...@suse.cz
+
+- crash-kernel-4.7.patch:
+  support 4.7 kernel (page._count renamed to page._refcount)
+
+---

New:

  crash-kernel-4.7.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.6zyUks/_old  2016-07-14 09:50:08.0 +0200
+++ /var/tmp/diff_new_pack.6zyUks/_new  2016-07-14 09:50:08.0 +0200
@@ -71,6 +71,7 @@
 Patch13:%{name}-patch-gdb.patch
 Patch15:%{name}_enable_snappy_support.patch
 Patch16:eppic-support-arm64.patch
+Patch17:%{name}-kernel-4.7.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -262,6 +263,7 @@
 %if %{have_snappy}
 %patch15 -p1
 %endif
+%patch17 -p1
 ## GDB patches
 #for f in %{S:XXX} ; do
 #base=`basename "$f"`


++ crash-kernel-4.7.patch ++
From: Dave Anderson 
Date: Mon, 23 May 2016 11:23:01 -0400
Subject: Fix for Linux commit
 0139aa7b7fa12ceef095d99dc36606a5b10ab83a, which renamed the page._count
 member to page._refcount.  Without the patch, certain "kmem" commands fail
 with the "kmem: invalid structure member offset: page_count".
 (ander...@redhat.com)
Patch-mainline: 7.1.6?
Git-commit: 8ceb1ac628bf6a0a7f0bbfff030ec93081bca4cd

---
 memory.c | 4 
 1 file changed, 4 insertions(+)

diff --git a/memory.c b/memory.c
index 216038d2d803..bb29b315b708 100644
--- a/memory.c
+++ b/memory.c
@@ -434,6 +434,10 @@ vm_init(void)
MEMBER_OFFSET_INIT(page_count, "page", "_count");
if (INVALID_MEMBER(page_count))
ANON_MEMBER_OFFSET_INIT(page_count, "page", "_count");
+   if (INVALID_MEMBER(page_count))
+   MEMBER_OFFSET_INIT(page_count, "page", "_refcount");
+   if (INVALID_MEMBER(page_count))
+   ANON_MEMBER_OFFSET_INIT(page_count, "page", 
"_refcount");
}
MEMBER_OFFSET_INIT(page_flags, "page", "flags");
MEMBER_SIZE_INIT(page_flags, "page", "flags");
-- 
2.9.0




commit crash for openSUSE:Factory

2016-06-07 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2016-06-07 23:47:34

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is "crash"

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2016-05-02 
10:44:11.0 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2016-06-07 
23:47:35.0 +0200
@@ -1,0 +2,5 @@
+Fri May 27 14:45:20 UTC 2016 - ptesa...@suse.com
+
+- eppic-support-arm64.patch: Support for ARM64.
+
+---

New:

  eppic-support-arm64.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.fIkjNx/_old  2016-06-07 23:47:37.0 +0200
+++ /var/tmp/diff_new_pack.fIkjNx/_new  2016-06-07 23:47:37.0 +0200
@@ -70,6 +70,7 @@
 Patch12:eppic-switch-to-system-lib.patch
 Patch13:%{name}-patch-gdb.patch
 Patch15:%{name}_enable_snappy_support.patch
+Patch16:eppic-support-arm64.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -276,6 +277,7 @@
 tar xfvj %{S:5}
 cd -
 %patch12 -p1
+%patch16 -p1
 cp %{S:3} .
 mkdir kbuild
 


++ eppic-support-arm64.patch ++
From: Luc Chouinard 
Date: Thu Jun 19 12:28:40 2014 -0700
Subject: Support for ARM64
References: FATE#320844
Patch-mainline: yes
Git-commit: 5391d3dd0e6710c22ec5801f99a6788a2e4b132a

Acked-by: Petr Tesarik 

--- a/extensions/eppic/applications/crash/eppic.c
+++ b/extensions/eppic/applications/crash/eppic.c
@@ -1035,6 +1035,9 @@ _init() /* Register the command set. */
 #ifdef PPC64
 #define EPPIC_ABI  ABI_PPC64
 #else
+#ifdef ARM64
+#define EPPIC_ABI  ABI_ARM64
+#else
 #error eppic: Unkown ABI 
 #endif
 #endif
@@ -1042,6 +1045,7 @@ _init() /* Register the command set. */
 #endif
 #endif
 #endif
+#endif
eppic_apiset(, EPPIC_ABI, sizeof(long), 0);
 
eppic_version();



commit crash for openSUSE:Factory

2016-05-02 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2016-05-02 10:44:09

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is "crash"

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2016-01-30 
11:31:52.0 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2016-05-02 
10:44:11.0 +0200
@@ -1,0 +2,18 @@
+Thu Apr 28 14:11:01 UTC 2016 - dm...@suse.com
+
+- Upgrade of source tarball to 7.1.5 from upstream and fix of
+  crash-sles9-time.patch for the version and refresh of other
+  patches to align with the version. For a detailed changelog of
+  the source tarball see:
+
+  http://people.redhat.com/anderson/crash.changelog.html
+
+  includes a fix for bsc#977306.
+
+  Feature enhancements include:
+
+  - "whatis -r" and "whatis -m" commands that allow search for
+ data structure of a specified size and that contains a member
+ of a given type respectively.
+
+---

Old:

  crash-7.1.4.tar.gz

New:

  crash-7.1.5.tar.gz



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.TjYgY3/_old  2016-05-02 10:44:12.0 +0200
+++ /var/tmp/diff_new_pack.TjYgY3/_new  2016-05-02 10:44:12.0 +0200
@@ -46,7 +46,7 @@
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
 License:GPL-3.0+ and GFDL-1.2
 Group:  Development/Tools/Debuggers
-Version:7.1.4
+Version:7.1.5
 Release:0
 Source: %{name}-%{version}.tar.gz
 Source2:crash_whitepaper-%{whitepaper_version}.tar.bz2
@@ -81,7 +81,7 @@
 %endif
 BuildRequires:  zlib-devel
 Requires:   /usr/bin/nm
-ExclusiveArch:  %ix86 x86_64 ia64 s390 s390x ppc64 ppc64le alpha
+ExclusiveArch:  %ix86 x86_64 ia64 s390 s390x ppc64 ppc64le alpha aarch64
 # Source code says it can do ppc32. Excluded here?
 ExcludeArch:ppc
 # crash driver KMP

++ crash-7.1.4.tar.gz -> crash-7.1.5.tar.gz ++
/work/SRC/openSUSE:Factory/crash/crash-7.1.4.tar.gz 
/work/SRC/openSUSE:Factory/.crash.new/crash-7.1.5.tar.gz differ: char 5, line 1

++ crash-compressed-booted-kernel.patch ++
--- /var/tmp/diff_new_pack.TjYgY3/_old  2016-05-02 10:44:12.0 +0200
+++ /var/tmp/diff_new_pack.TjYgY3/_new  2016-05-02 10:44:12.0 +0200
@@ -11,7 +11,7 @@
 
 --- a/filesys.c
 +++ b/filesys.c
-@@ -571,6 +571,7 @@ static int
+@@ -572,6 +572,7 @@ static int
  find_booted_kernel(void)
  {
char kernel[BUFSIZE];
@@ -19,7 +19,7 @@
char buffer[BUFSIZE];
char **searchdirs;
int i, preferred, wrapped;
-@@ -620,16 +621,24 @@ find_booted_kernel(void)
+@@ -621,16 +622,24 @@ find_booted_kernel(void)
sprintf(kernel, "%s%s", searchdirs[i], dp->d_name);
  
if (mount_point(kernel) ||
@@ -48,7 +48,7 @@
if (found)
break;
}
-@@ -649,10 +658,19 @@ find_booted_kernel(void)
+@@ -650,10 +659,19 @@ find_booted_kernel(void)
if (CRASHDEBUG(1))
fprintf(fp, "find_booted_kernel: found: %s\n", 
pc->namelist);

++ crash-debuginfo-compressed.patch ++
--- /var/tmp/diff_new_pack.TjYgY3/_old  2016-05-02 10:44:12.0 +0200
+++ /var/tmp/diff_new_pack.TjYgY3/_new  2016-05-02 10:44:12.0 +0200
@@ -14,7 +14,7 @@
 
 --- a/symbols.c
 +++ b/symbols.c
-@@ -198,9 +198,9 @@ symtab_init(void)
+@@ -203,9 +203,9 @@ symtab_init(void)
 *  Pull a bait-and-switch on st->bfd if we've got a separate
   *  .gnu_debuglink file that matches the CRC. Not done for kerntypes.
 */
@@ -27,7 +27,7 @@
no_debugging_data(FATAL);
}

-@@ -262,13 +262,16 @@ check_gnu_debuglink(bfd *bfd)
+@@ -267,13 +267,16 @@ check_gnu_debuglink(bfd *bfd)
char *contents;
int crc_offset; 
unsigned long crc32;
@@ -45,7 +45,7 @@
return FALSE;
}
  
-@@ -289,14 +292,14 @@ check_gnu_debuglink(bfd *bfd)
+@@ -294,14 +297,14 @@ check_gnu_debuglink(bfd *bfd)
contents, crc32);
  
if ((pc->debuginfo_file = (char *)


++ crash-make-emacs-default.diff ++
--- /var/tmp/diff_new_pack.TjYgY3/_old  2016-05-02 10:44:12.0 +0200
+++ /var/tmp/diff_new_pack.TjYgY3/_new  2016-05-02 10:44:12.0 +0200
@@ -4,7 +4,7 @@
 
 --- a/main.c
 +++ b/main.c
-@@ -1136,12 +1136,6 @@ setup_environment(int argc, char **argv)
+@@ -1146,12 +1146,6 @@ setup_environment(int argc, char **argv)
pc->flags |= 

commit crash for openSUSE:Factory

2016-01-30 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2016-01-30 11:31:50

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is "crash"

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2015-09-13 
09:45:16.0 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2016-01-30 
11:31:52.0 +0100
@@ -1,0 +2,7 @@
+Thu Jan 28 16:22:27 UTC 2016 - vba...@suse.com
+
+- Upgrade to 7.1.4 from upstream. For a detailed changelog see
+
+  http://people.redhat.com/anderson/crash.changelog.html
+
+---

Old:

  crash-7.1.3.tar.gz

New:

  crash-7.1.4.tar.gz



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.a9sSDc/_old  2016-01-30 11:31:53.0 +0100
+++ /var/tmp/diff_new_pack.a9sSDc/_new  2016-01-30 11:31:53.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package crash
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -46,7 +46,7 @@
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
 License:GPL-3.0+ and GFDL-1.2
 Group:  Development/Tools/Debuggers
-Version:7.1.3
+Version:7.1.4
 Release:0
 Source: %{name}-%{version}.tar.gz
 Source2:crash_whitepaper-%{whitepaper_version}.tar.bz2

++ crash-7.1.3.tar.gz -> crash-7.1.4.tar.gz ++
/work/SRC/openSUSE:Factory/crash/crash-7.1.3.tar.gz 
/work/SRC/openSUSE:Factory/.crash.new/crash-7.1.4.tar.gz differ: char 5, line 1





commit crash for openSUSE:Factory

2015-09-13 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2015-09-13 09:45:09

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is "crash"

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2015-06-12 
20:31:45.0 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2015-09-13 
09:45:16.0 +0200
@@ -1,0 +2,33 @@
+Tue Sep  8 20:07:52 UTC 2015 - dm...@suse.com
+
+- Upgrade of source tarball to 7.1.3 from upstream and refresh of
+  patch series to match. For the changelog of the source tarball
+  see:
+
+  http://people.redhat.com/anderson/crash.changelog.html
+
+  Feature enhancements include:
+
+  - Introduction of the "dis -f " option, which 
+disassembles from the target address until the end of the
+function.
+  - Introduction of the "dis -s " option, which displays
+the filename and line number that is associated with the
+specified text location, followed by a source code listing if
+it is available on the host machine.
+  - Added a new "--src " command line option for use
+by the "dis -s" option if the kernel source code is not
+located in the standard location that is compiled into the
+kernel's debuginfo data.
+
+---
+Mon Jul 20 16:25:14 UTC 2015 - dm...@suse.com
+
+- Upgrade to 7.1.2 from upstream. For a detailed changelog see
+
+  http://people.redhat.com/anderson/crash.changelog.html
+
+- Refreshed patch series with some changes required to
+  adjust for git host changes in eppic-switch-to-system-lib.patch
+
+---

Old:

  crash-7.1.1.tar.gz

New:

  crash-7.1.3.tar.gz



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.K9g7Du/_old  2015-09-13 09:45:18.0 +0200
+++ /var/tmp/diff_new_pack.K9g7Du/_new  2015-09-13 09:45:18.0 +0200
@@ -46,7 +46,7 @@
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
 License:GPL-3.0+ and GFDL-1.2
 Group:  Development/Tools/Debuggers
-Version:7.1.1
+Version:7.1.3
 Release:0
 Source: %{name}-%{version}.tar.gz
 Source2:crash_whitepaper-%{whitepaper_version}.tar.bz2

++ crash-7.1.1.tar.gz -> crash-7.1.3.tar.gz ++
/work/SRC/openSUSE:Factory/crash/crash-7.1.1.tar.gz 
/work/SRC/openSUSE:Factory/.crash.new/crash-7.1.3.tar.gz differ: char 5, line 1

++ crash-compressed-booted-kernel.patch ++
--- /var/tmp/diff_new_pack.K9g7Du/_old  2015-09-13 09:45:18.0 +0200
+++ /var/tmp/diff_new_pack.K9g7Du/_new  2015-09-13 09:45:18.0 +0200
@@ -11,7 +11,7 @@
 
 --- a/filesys.c
 +++ b/filesys.c
-@@ -570,6 +570,7 @@ static int
+@@ -571,6 +571,7 @@ static int
  find_booted_kernel(void)
  {
char kernel[BUFSIZE];
@@ -19,7 +19,7 @@
char buffer[BUFSIZE];
char **searchdirs;
int i, preferred, wrapped;
-@@ -619,16 +620,24 @@ find_booted_kernel(void)
+@@ -620,16 +621,24 @@ find_booted_kernel(void)
sprintf(kernel, "%s%s", searchdirs[i], dp->d_name);
  
if (mount_point(kernel) ||
@@ -48,7 +48,7 @@
if (found)
break;
}
-@@ -648,10 +657,19 @@ find_booted_kernel(void)
+@@ -649,10 +658,19 @@ find_booted_kernel(void)
if (CRASHDEBUG(1))
fprintf(fp, "find_booted_kernel: found: %s\n", 
pc->namelist);

++ crash-debuginfo-compressed.patch ++
--- /var/tmp/diff_new_pack.K9g7Du/_old  2015-09-13 09:45:18.0 +0200
+++ /var/tmp/diff_new_pack.K9g7Du/_new  2015-09-13 09:45:18.0 +0200
@@ -14,7 +14,7 @@
 
 --- a/symbols.c
 +++ b/symbols.c
-@@ -199,9 +199,9 @@ symtab_init(void)
+@@ -198,9 +198,9 @@ symtab_init(void)
 *  Pull a bait-and-switch on st->bfd if we've got a separate
   *  .gnu_debuglink file that matches the CRC. Not done for kerntypes.
 */
@@ -27,7 +27,7 @@
no_debugging_data(FATAL);
}

-@@ -263,13 +263,16 @@ check_gnu_debuglink(bfd *bfd)
+@@ -262,13 +262,16 @@ check_gnu_debuglink(bfd *bfd)
char *contents;
int crc_offset; 
unsigned long crc32;
@@ -45,7 +45,7 @@
return FALSE;
}
  
-@@ -290,14 +293,14 @@ check_gnu_debuglink(bfd *bfd)
+@@ -289,14 +292,14 @@ check_gnu_debuglink(bfd *bfd)
contents, crc32);
  
if ((pc->debuginfo_file = (char *)


++ crash-make-emacs-default.diff ++
--- 

commit crash for openSUSE:Factory

2015-06-12 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2015-06-12 20:31:38

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2015-03-25 
21:33:16.0 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2015-06-12 
20:31:45.0 +0200
@@ -1,0 +2,327 @@
+Wed May 27 16:29:33 UTC 2015 - dm...@suse.com
+
+- Upgrade to 7.1.1 from upstream. At the time of writing the only
+  published changelog was supplied by e-mail list and is as follows
+
+  - Fix for two minor issues with the net command.  Without the patch,
+   the net -a option appends its correct output with the command's 
+   Usage: message; and if either the net -x or net -d options are
+   used without also specifying -s or -S, the error message would
+   indicate net: illegal flag: 80 or net: illegal flag: 100
+   instead of showing the command's Usage: message.
+   (ander...@redhat.com)
+
+ - If the kernel (live or dumpfile) has the TAINT_LIVEPATCH bit set, or
+   if the Red Hat kpatch module is installed, the tag [LIVEPATCH] 
+   will be displayed next to the kernel name in the initial system 
+   banner and by the sys command.  This new tag replaces the 
+   [KPATCH] tag that was introduced in crash-7.0.7.
+   (ander...@redhat.com)
+
+ - Addressed three Coverity Scan complaints in vmware_vmss.c:
+ 50:leaked_storage: Variable fp going out of scope leaks the 
+storage it points to.
+ 53:leaked_storage: Variable fp going out of scope leaks the 
+storage it points to.
+256:warning: Use of memory after it is freed 
+   (ander...@redhat.com)
+
+ - Remove the LKCD-only propeller spinner seen when a dumpfile read 
+   requires more than 2048 page header accesses.  This was put in place
+   because of the non-random-access design of LKCD dumpfiles.  Without 
+   the patch, the spinner display is intermingled with command output, 
+   which complicates the parsing of the output.
+   (watters@gmail.com)
+
+ - Fix to support the Linux version increment from 3 to 4.  Without the
+   patch, both dumpfile and live sessions fail during initialization,
+   issuing the message WARNING: kernel version inconsistency between 
+   vmlinux and dumpfile or WARNING: kernel version inconsistency 
+   between vmlinux and live memory, followed by the nonsensical fatal
+   error message crash: incompatible arguments:  vmlinux is not SMP -- 
+   vmcore is SMP or crash: incompatible arguments:  vmlinux is not 
+   SMP -- live system is SMP.  To prevent unexpected kernel version
+   bumps in the future, support has been added for version 5.
+   (ander...@redhat.com)
+
+ - Add support for more than 16TB of physical memory space in the SADUMP
+   dumpfile format.  Without the patch, there is a limitation caused
+   by several 32-bit members of dump_header structure, in particular
+   the max_mapnr member, which overflows if the dumpfile contains more
+   than 16TB of physical memory space.  The header_version member of
+   the dump_header structure has been increased from 0 to 1 in this 
+   extended new format, and the new 64-bit members will be used.
+   (d.hatay...@jp.fujitsu.com)
+
+ - Fix for command lines that are redirected to a pipe.  Without the
+   patch, if an external piped-to command contains a quoted string that 
+   includes a | character, the command fails with the message crash: 
+   pipe operation failed.
+   (ander...@redhat.com)
+
+ - Fix for insecure temporary file usage in _rl_tropen() as reported by
+   readline library CVE-2014-2524.
+   (ander...@redhat.com)
+
+ - When the gdb-version.patch file has changed and a rebuild is 
+   done from within a previously-existing build tree, the patch -N 
+   option is used to ignore patches that have been previously applied; 
+   this patch also applies the patch -r- option to prevent unnecessary
+   .rej files from being created.
+   (ander...@redhat.com)
+
+ - Fix to account for Xen hypervisor's domain structure member name
+   change from is_paused_by_controller to controller_pause_count.
+   Without the patch, in Xen 4.2.5 and later, the crash session fails
+   during initialization with the error message 'crash: invalid 
+   structure member offset: domain_is_paused_by_controller.
+   (dietmar.h...@ts.fujitsu.com)
+
+ - During initialization, reject useless ARM64 (A) and (a) absolute
+   symbols that are below the text region.  Without the patch, several
+   recently-introduced absolute symbols have been introduced into the
+   kernel, which will be displayed by sym -l prior to the first kernel
+   virtual address symbol, and will show up in command output where 
+   memory values are translated into kernel symbol 

commit crash for openSUSE:Factory

2015-03-25 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2015-03-25 21:05:42

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2015-03-01 
14:46:46.0 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2015-03-25 
21:33:16.0 +0100
@@ -1,0 +2,6 @@
+Sun Mar 15 08:21:20 UTC 2015 - seife+...@b1-systems.com
+
+- add patch from upstream to handle kernel 4.0
+  0001-Prepare-for-the-future-increment-of-Linux-3.x-to-4.x.patch
+
+---

New:

  0001-Prepare-for-the-future-increment-of-Linux-3.x-to-4.x.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.yaaWDF/_old  2015-03-25 21:33:18.0 +0100
+++ /var/tmp/diff_new_pack.yaaWDF/_new  2015-03-25 21:33:18.0 +0100
@@ -70,6 +70,7 @@
 Patch12:eppic-switch-to-system-lib.patch
 Patch13:%{name}-patch-gdb.patch
 Patch15:%{name}_enable_snappy_support.patch
+Patch20:0001-Prepare-for-the-future-increment-of-Linux-3.x-to-4.x.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -261,6 +262,7 @@
 %if %{have_snappy}
 %patch15 -p1
 %endif
+%patch20 -p1
 ## GDB patches
 #for f in %{S:XXX} ; do
 #base=`basename $f`

++ 0001-Prepare-for-the-future-increment-of-Linux-3.x-to-4.x.patch ++
From db07dbf5a7e19806b1629bd4125e6643978c6f9f Mon Sep 17 00:00:00 2001
From: Dave Anderson ander...@redhat.com
Date: Thu, 19 Feb 2015 16:16:33 -0500
Subject: [PATCH] Prepare for the future increment of Linux 3.x to 4.x.
 (ander...@redhat.com)

---
 kernel.c | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/kernel.c b/kernel.c
index cf858c2..a5e0c64 100644
--- a/kernel.c
+++ b/kernel.c
@@ -1211,7 +1211,8 @@ verify_namelist()
sprintf(buffer3, (unknown));
 while (fgets(buffer, BUFSIZE-1, pipe)) {
if (!strstr(buffer, Linux version 2.) 
-   !strstr(buffer, Linux version 3.))
+   !strstr(buffer, Linux version 3.) 
+   !strstr(buffer, Linux version 4.))
continue;
 
 if (strstr(buffer, kt-proc_version)) {
@@ -4909,7 +4910,8 @@ debug_kernel_version(char *namelist)
argc = 0;
 while (fgets(buf, BUFSIZE-1, pipe)) {
 if (!strstr(buf, Linux version 2.) 
-   !strstr(buf, Linux version 3.))
+   !strstr(buf, Linux version 3.) 
+   !strstr(buf, Linux version 4.))
 continue;
 
argc = parse_line(buf, arglist); 
-- 
2.3.1


-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit crash for openSUSE:Factory

2015-03-01 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2015-03-01 14:46:42

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2014-11-26 
10:33:25.0 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2015-03-01 
14:46:46.0 +0100
@@ -1,0 +2,8 @@
+Fri Feb  6 22:36:34 UTC 2015 - dm...@suse.com
+
+- Upgrade to 7.1.0 from upstream. For a detailed changelog see
+  http://people.redhat.com/anderson/crash.changelog.html
+
+- Refreshed patch series with only re-alignment required.
+
+---

Old:

  crash-7.0.9.tar.gz

New:

  crash-7.1.0.tar.gz



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.WkJ1CT/_old  2015-03-01 14:46:48.0 +0100
+++ /var/tmp/diff_new_pack.WkJ1CT/_new  2015-03-01 14:46:48.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package crash
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -46,7 +46,7 @@
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
 License:GPL-3.0+ and GFDL-1.2
 Group:  Development/Tools/Debuggers
-Version:7.0.9
+Version:7.1.0
 Release:0
 Source: %{name}-%{version}.tar.gz
 Source2:crash_whitepaper-%{whitepaper_version}.tar.bz2

++ crash-7.0.9.tar.gz - crash-7.1.0.tar.gz ++
/work/SRC/openSUSE:Factory/crash/crash-7.0.9.tar.gz 
/work/SRC/openSUSE:Factory/.crash.new/crash-7.1.0.tar.gz differ: char 5, line 1

++ crash-compressed-booted-kernel.patch ++
--- /var/tmp/diff_new_pack.WkJ1CT/_old  2015-03-01 14:46:48.0 +0100
+++ /var/tmp/diff_new_pack.WkJ1CT/_new  2015-03-01 14:46:48.0 +0100
@@ -11,7 +11,7 @@
 
 --- a/filesys.c
 +++ b/filesys.c
-@@ -563,6 +563,7 @@ static int
+@@ -570,6 +570,7 @@ static int
  find_booted_kernel(void)
  {
char kernel[BUFSIZE];
@@ -19,7 +19,7 @@
char buffer[BUFSIZE];
char **searchdirs;
int i, preferred, wrapped;
-@@ -612,16 +613,24 @@ find_booted_kernel(void)
+@@ -619,16 +620,24 @@ find_booted_kernel(void)
sprintf(kernel, %s%s, searchdirs[i], dp-d_name);
  
if (mount_point(kernel) ||
@@ -48,7 +48,7 @@
if (found)
break;
}
-@@ -641,10 +650,19 @@ find_booted_kernel(void)
+@@ -648,10 +657,19 @@ find_booted_kernel(void)
if (CRASHDEBUG(1))
fprintf(fp, find_booted_kernel: found: %s\n, 
pc-namelist);


++ crash-make-emacs-default.diff ++
--- /var/tmp/diff_new_pack.WkJ1CT/_old  2015-03-01 14:46:48.0 +0100
+++ /var/tmp/diff_new_pack.WkJ1CT/_new  2015-03-01 14:46:48.0 +0100
@@ -4,7 +4,7 @@
 
 --- a/main.c
 +++ b/main.c
-@@ -1109,12 +1109,6 @@ setup_environment(int argc, char **argv)
+@@ -1122,12 +1122,6 @@ setup_environment(int argc, char **argv)
pc-flags |= READLINE;
pc-editing_mode = no_mode;
  
@@ -17,7 +17,7 @@
  
/*
 *  Resolve $HOME .rc file first, then the one in the local directory.
-@@ -1164,7 +1158,7 @@ setup_environment(int argc, char **argv)
+@@ -1177,7 +1171,7 @@ setup_environment(int argc, char **argv)
}
  
if (STREQ(pc-editing_mode, no_mode))

++ crash-patch-gdb.patch ++
--- /var/tmp/diff_new_pack.WkJ1CT/_old  2015-03-01 14:46:48.0 +0100
+++ /var/tmp/diff_new_pack.WkJ1CT/_new  2015-03-01 14:46:48.0 +0100
@@ -16,7 +16,7 @@
 
 --- a/Makefile
 +++ b/Makefile
-@@ -260,8 +260,11 @@ gdb_unzip:
+@@ -261,8 +261,11 @@ gdb_unzip:
  gdb_patch:
if [ -f ${GDB}.patch ]  [ -s ${GDB}.patch ]; then \
patch -p0  ${GDB}.patch; cp ${GDB}.patch ${GDB}; fi
@@ -28,5 +28,5 @@
 +  patch -d ${GDB} -p1 -F0  $$p ; \
 +  done  ${GDB}.series ; \
fi
- 
- library: make_build_data ${OBJECT_FILES}
+   if [ ${ARCH} = x86_64 ]  [ ${TARGET} = PPC64 ]  [ -f 
${GDB}-ppc64le-support.patch ]; then \
+   patch -d ${GDB} -p1 -F0  ${GDB}-ppc64le-support.patch ; \

++ crash-sles9-time.patch ++
--- /var/tmp/diff_new_pack.WkJ1CT/_old  2015-03-01 14:46:48.0 +0100
+++ /var/tmp/diff_new_pack.WkJ1CT/_new  2015-03-01 14:46:48.0 +0100
@@ -16,7 +16,7 @@
 
 

commit crash for openSUSE:Factory

2014-11-26 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2014-11-26 10:33:18

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2014-09-22 
09:23:12.0 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2014-11-26 
10:33:25.0 +0100
@@ -1,0 +2,8 @@
+Fri Nov 21 18:27:16 UTC 2014 - dm...@suse.com
+
+- Upgrade to 7.0.9 from upstream, For a detailed changelog see
+  http://people.redhat.com/anderson/crash.changelog.html
+
+- Refreshed patch series but no modifications required.
+
+---

Old:

  crash-7.0.8.tar.gz

New:

  crash-7.0.9.tar.gz



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.brLF8p/_old  2014-11-26 10:33:27.0 +0100
+++ /var/tmp/diff_new_pack.brLF8p/_new  2014-11-26 10:33:27.0 +0100
@@ -46,7 +46,7 @@
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
 License:GPL-3.0+ and GFDL-1.2
 Group:  Development/Tools/Debuggers
-Version:7.0.8
+Version:7.0.9
 Release:0
 Source: %{name}-%{version}.tar.gz
 Source2:crash_whitepaper-%{whitepaper_version}.tar.bz2

++ crash-7.0.8.tar.gz - crash-7.0.9.tar.gz ++
/work/SRC/openSUSE:Factory/crash/crash-7.0.8.tar.gz 
/work/SRC/openSUSE:Factory/.crash.new/crash-7.0.9.tar.gz differ: char 5, line 1

++ crash-compressed-booted-kernel.patch ++
--- /var/tmp/diff_new_pack.brLF8p/_old  2014-11-26 10:33:27.0 +0100
+++ /var/tmp/diff_new_pack.brLF8p/_new  2014-11-26 10:33:27.0 +0100
@@ -9,11 +9,9 @@
  filesys.c |   26 ++
  1 file changed, 22 insertions(+), 4 deletions(-)
 
-Index: b/filesys.c
-===
 --- a/filesys.c
 +++ b/filesys.c
-@@ -529,6 +529,7 @@ static int
+@@ -563,6 +563,7 @@ static int
  find_booted_kernel(void)
  {
char kernel[BUFSIZE];
@@ -21,7 +19,7 @@
char buffer[BUFSIZE];
char **searchdirs;
int i, preferred, wrapped;
-@@ -578,16 +579,24 @@ find_booted_kernel(void)
+@@ -612,16 +613,24 @@ find_booted_kernel(void)
sprintf(kernel, %s%s, searchdirs[i], dp-d_name);
  
if (mount_point(kernel) ||
@@ -50,7 +48,7 @@
if (found)
break;
}
-@@ -607,10 +616,19 @@ find_booted_kernel(void)
+@@ -641,10 +650,19 @@ find_booted_kernel(void)
if (CRASHDEBUG(1))
fprintf(fp, find_booted_kernel: found: %s\n, 
pc-namelist);

++ crash-debuginfo-compressed.patch ++
--- /var/tmp/diff_new_pack.brLF8p/_old  2014-11-26 10:33:27.0 +0100
+++ /var/tmp/diff_new_pack.brLF8p/_new  2014-11-26 10:33:27.0 +0100
@@ -12,11 +12,9 @@
  symbols.c |   17 ++---
  1 file changed, 10 insertions(+), 7 deletions(-)
 
-Index: b/symbols.c
-===
 --- a/symbols.c
 +++ b/symbols.c
-@@ -192,9 +192,9 @@ symtab_init(void)
+@@ -194,9 +194,9 @@ symtab_init(void)
 *  Pull a bait-and-switch on st-bfd if we've got a separate
   *  .gnu_debuglink file that matches the CRC. Not done for kerntypes.
 */
@@ -29,7 +27,7 @@
no_debugging_data(FATAL);
}

-@@ -253,13 +253,16 @@ check_gnu_debuglink(bfd *bfd)
+@@ -258,13 +258,16 @@ check_gnu_debuglink(bfd *bfd)
char *contents;
int crc_offset; 
unsigned long crc32;
@@ -47,7 +45,7 @@
return FALSE;
}
  
-@@ -280,14 +283,14 @@ check_gnu_debuglink(bfd *bfd)
+@@ -285,14 +288,14 @@ check_gnu_debuglink(bfd *bfd)
contents, crc32);
  
if ((pc-debuginfo_file = (char *)


++ crash-make-emacs-default.diff ++
--- /var/tmp/diff_new_pack.brLF8p/_old  2014-11-26 10:33:27.0 +0100
+++ /var/tmp/diff_new_pack.brLF8p/_new  2014-11-26 10:33:27.0 +0100
@@ -2,11 +2,9 @@
  main.c |8 +---
  1 file changed, 1 insertion(+), 7 deletions(-)
 
-Index: b/main.c
-===
 --- a/main.c
 +++ b/main.c
-@@ -1037,12 +1037,6 @@ setup_environment(int argc, char **argv)
+@@ -1109,12 +1109,6 @@ setup_environment(int argc, char **argv)
pc-flags |= READLINE;
pc-editing_mode = no_mode;
  
@@ -19,7 +17,7 @@
  
/*
 *  Resolve $HOME .rc file first, then the one in the 

commit crash for openSUSE:Factory

2014-09-22 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2014-09-22 09:23:10

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2014-08-14 
14:58:04.0 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2014-09-22 
09:23:12.0 +0200
@@ -1,0 +2,19 @@
+Wed Sep 17 14:53:05 UTC 2014 - je...@suse.com
+
+- Upgrade to 7.0.8 from upstream. For a detailed changelog see
+  http://people.redhat.com/anderson/crash.changelog.html
+
+- Dropped (now in upstream):
+  - crash-keep-file-orig-with-name-on-select.patch:
+  - As crash-7.0.8/gdb-7.6-ppc64le-support.patch:
+- crash-gdb-7.6-ppc64_sysv_abi_push_float.patch
+- crash-gdb-7.6-bound_minimal_symbol.patch
+- crash-gdb-7.6-add-powerpc64le-linux.patch
+- crash-gdb-7.6-update-autoconf-2013-04-24.patch
+- crash-gdb-7.6-ppc_insns_match_pattern.patch
+- crash-gdb-7.6-floatformat.patch
+- crash-gdb-7.6-ppc64-ELFv2-trampoline-match.patch
+- crash-gdb-7.6-update-autoconf-2013-06-10.patch
+- crash-gdb-7.6-ppc64le.patch
+
+---

Old:

  crash-7.0.7.tar.gz
  crash-gdb-7.6-add-powerpc64le-linux.patch
  crash-gdb-7.6-bound_minimal_symbol.patch
  crash-gdb-7.6-floatformat.patch
  crash-gdb-7.6-ppc64-ELFv2-trampoline-match.patch
  crash-gdb-7.6-ppc64_sysv_abi_push_float.patch
  crash-gdb-7.6-ppc64le.patch
  crash-gdb-7.6-ppc_insns_match_pattern.patch
  crash-gdb-7.6-update-autoconf-2013-04-24.patch
  crash-gdb-7.6-update-autoconf-2013-06-10.patch
  crash-keep-file-orig-with-name-on-select.patch

New:

  crash-7.0.8.tar.gz



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.WVWXhl/_old  2014-09-22 09:23:14.0 +0200
+++ /var/tmp/diff_new_pack.WVWXhl/_new  2014-09-22 09:23:14.0 +0200
@@ -46,7 +46,7 @@
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
 License:GPL-3.0+ and GFDL-1.2
 Group:  Development/Tools/Debuggers
-Version:7.0.7
+Version:7.0.8
 Release:0
 Source: %{name}-%{version}.tar.gz
 Source2:crash_whitepaper-%{whitepaper_version}.tar.bz2
@@ -59,15 +59,6 @@
 Source98:   %{name}-kmp-preamble
 Source99:   crash-rpmlintrc
 Source100:  %{name}-gdb-7.6.series
-Source101:  %{name}-gdb-7.6-ppc64_sysv_abi_push_float.patch
-Source102:  %{name}-gdb-7.6-bound_minimal_symbol.patch
-Source103:  %{name}-gdb-7.6-add-powerpc64le-linux.patch
-Source104:  %{name}-gdb-7.6-update-autoconf-2013-04-24.patch
-Source105:  %{name}-gdb-7.6-ppc_insns_match_pattern.patch
-Source106:  %{name}-gdb-7.6-floatformat.patch
-Source107:  %{name}-gdb-7.6-ppc64-ELFv2-trampoline-match.patch
-Source108:  %{name}-gdb-7.6-update-autoconf-2013-06-10.patch
-Source109:  %{name}-gdb-7.6-ppc64le.patch
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 Patch1: %{name}-make-emacs-default.diff
 Patch2: %{name}-sles9-quirk.patch
@@ -79,7 +70,6 @@
 Patch12:eppic-switch-to-system-lib.patch
 Patch13:%{name}-patch-gdb.patch
 Patch15:%{name}_enable_snappy_support.patch
-Patch16:%{name}-keep-file-orig-with-name-on-select.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -271,13 +261,12 @@
 %if %{have_snappy}
 %patch15 -p1
 %endif
-%patch16 -p1
 ## GDB patches
-for f in %{S:100} %{S:101} %{S:102} %{S:103} %{S:104} \
-   %{S:105} %{S:106} %{S:107} %{S:108} %{S:109} ; do
-base=`basename $f`
-cp $f ${base#%{name}-}
-done
+#for f in %{S:XXX} ; do
+#base=`basename $f`
+#cp $f ${base#%{name}-}
+#done
+
 ## SIAL patches
 cd sial-scripts-%{scripts_version}
 %patch90 -p1

++ crash-7.0.7.tar.gz - crash-7.0.8.tar.gz ++
/work/SRC/openSUSE:Factory/crash/crash-7.0.7.tar.gz 
/work/SRC/openSUSE:Factory/.crash.new/crash-7.0.8.tar.gz differ: char 5, line 1

++ crash-gdb-7.6.series ++
--- /var/tmp/diff_new_pack.WVWXhl/_old  2014-09-22 09:23:15.0 +0200
+++ /var/tmp/diff_new_pack.WVWXhl/_new  2014-09-22 09:23:15.0 +0200
@@ -1,9 +0,0 @@
-gdb-7.6-ppc64_sysv_abi_push_float.patch
-gdb-7.6-bound_minimal_symbol.patch
-gdb-7.6-add-powerpc64le-linux.patch
-gdb-7.6-update-autoconf-2013-04-24.patch
-gdb-7.6-ppc_insns_match_pattern.patch
-gdb-7.6-floatformat.patch
-gdb-7.6-ppc64-ELFv2-trampoline-match.patch
-gdb-7.6-update-autoconf-2013-06-10.patch
-gdb-7.6-ppc64le.patch

++ crash-patch-gdb.patch ++
--- /var/tmp/diff_new_pack.WVWXhl/_old  2014-09-22 09:23:15.0 +0200
+++ 

commit crash for openSUSE:Factory

2014-08-14 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2014-08-14 14:57:58

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2014-07-10 
14:55:54.0 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2014-08-14 
14:58:04.0 +0200
@@ -1,0 +2,6 @@
+Thu Jul 31 12:40:52 UTC 2014 - dims...@opensuse.org
+
+- Rename rpmlintrc to %{name}-rpmlintrc.
+  Follow the packaging guidelines.
+
+---

Old:

  rpmlintrc

New:

  crash-rpmlintrc



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.E47AGS/_old  2014-08-14 14:58:06.0 +0200
+++ /var/tmp/diff_new_pack.E47AGS/_new  2014-08-14 14:58:06.0 +0200
@@ -57,7 +57,7 @@
 Source96:   depmod.sh
 Source97:   mkinitrd.sh
 Source98:   %{name}-kmp-preamble
-Source99:   rpmlintrc
+Source99:   crash-rpmlintrc
 Source100:  %{name}-gdb-7.6.series
 Source101:  %{name}-gdb-7.6-ppc64_sysv_abi_push_float.patch
 Source102:  %{name}-gdb-7.6-bound_minimal_symbol.patch

++ crash-rpmlintrc ++
addFilter(devel-file-in-non-devel-package .*/usr/share/sial/crash.*)
# crash-7.0.7.tar compresses better with gzip than with bzip2
addFilter( source-or-patch-not-bzipped crash-7.0.7.tar.gz)
addFilter( source-or-patch-not-compressed bz2 crash-7.0.7.tar.gz)
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit crash for openSUSE:Factory

2014-07-10 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2014-07-10 14:55:37

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2014-06-24 
15:16:04.0 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2014-07-10 
14:55:54.0 +0200
@@ -1,0 +2,8 @@
+Tue Jul  8 09:38:55 UTC 2014 - ptesa...@suse.cz
+
+- Upgrade to 7.0.7 from upstream. For a detailed changelog see
+  http://people.redhat.com/anderson/crash.changelog.html
+
+- crash-x86_64-nested-nmi.patch: Dropped (now in upstream). 
+
+---

Old:

  crash-7.0.5.tar.gz
  crash-x86_64-nested-nmi.patch

New:

  crash-7.0.7.tar.gz



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.Y6mqMl/_old  2014-07-10 14:55:56.0 +0200
+++ /var/tmp/diff_new_pack.Y6mqMl/_new  2014-07-10 14:55:56.0 +0200
@@ -46,7 +46,7 @@
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
 License:GPL-3.0+ and GFDL-1.2
 Group:  Development/Tools/Debuggers
-Version:7.0.5
+Version:7.0.7
 Release:0
 Source: %{name}-%{version}.tar.gz
 Source2:crash_whitepaper-%{whitepaper_version}.tar.bz2
@@ -78,7 +78,6 @@
 Patch11:%{name}-compressed-booted-kernel.patch
 Patch12:eppic-switch-to-system-lib.patch
 Patch13:%{name}-patch-gdb.patch
-Patch14:%{name}-x86_64-nested-nmi.patch
 Patch15:%{name}_enable_snappy_support.patch
 Patch16:%{name}-keep-file-orig-with-name-on-select.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
@@ -269,7 +268,6 @@
 %patch10 -p1
 %patch11 -p1
 %patch13 -p1
-%patch14 -p1
 %if %{have_snappy}
 %patch15 -p1
 %endif

++ crash-7.0.5.tar.gz - crash-7.0.7.tar.gz ++
/work/SRC/openSUSE:Factory/crash/crash-7.0.5.tar.gz 
/work/SRC/openSUSE:Factory/.crash.new/crash-7.0.7.tar.gz differ: char 5, line 1

++ crash-patch-gdb.patch ++
--- /var/tmp/diff_new_pack.Y6mqMl/_old  2014-07-10 14:55:56.0 +0200
+++ /var/tmp/diff_new_pack.Y6mqMl/_new  2014-07-10 14:55:56.0 +0200
@@ -15,7 +15,7 @@
 @@ -247,6 +247,11 @@ gdb_unzip:
  gdb_patch:
if [ -f ${GDB}.patch ]  [ -s ${GDB}.patch ]; then \
-   patch -p0  ${GDB}.patch; fi
+   patch -p0  ${GDB}.patch; cp ${GDB}.patch ${GDB}; fi
 +  if [ -f ${GDB}.series ]; then \
 +  while read p; do \
 +  patch -d ${GDB} -p1 -F0  $$p ; \

++ rpmlintrc ++
--- /var/tmp/diff_new_pack.Y6mqMl/_old  2014-07-10 14:55:56.0 +0200
+++ /var/tmp/diff_new_pack.Y6mqMl/_new  2014-07-10 14:55:56.0 +0200
@@ -1,4 +1,4 @@
 addFilter(devel-file-in-non-devel-package .*/usr/share/sial/crash.*)
-# crash-6.0.6.tar compresses better with gzip than with bzip2
-addFilter( source-or-patch-not-bzipped crash-6.0.6.tar.gz)
-addFilter( source-or-patch-not-compressed bz2 crash-6.0.6.tar.gz)
+# crash-7.0.7.tar compresses better with gzip than with bzip2
+addFilter( source-or-patch-not-bzipped crash-7.0.7.tar.gz)
+addFilter( source-or-patch-not-compressed bz2 crash-7.0.7.tar.gz)

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit crash for openSUSE:Factory

2014-06-24 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2014-06-24 15:15:57

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2014-05-17 
21:43:20.0 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2014-06-24 
15:16:04.0 +0200
@@ -1,0 +2,7 @@
+Thu Jun 12 17:07:12 UTC 2014 - dm...@suse.com
+
+- crash-keep-file-orig-with-name-on-select.patch Fix the namelist
+  selection for gdb to have background state used to select file
+  to delete for expansion of compressed file (bnc#877367)
+
+---

New:

  crash-keep-file-orig-with-name-on-select.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.EaucRM/_old  2014-06-24 15:16:05.0 +0200
+++ /var/tmp/diff_new_pack.EaucRM/_new  2014-06-24 15:16:05.0 +0200
@@ -80,6 +80,7 @@
 Patch13:%{name}-patch-gdb.patch
 Patch14:%{name}-x86_64-nested-nmi.patch
 Patch15:%{name}_enable_snappy_support.patch
+Patch16:%{name}-keep-file-orig-with-name-on-select.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -272,6 +273,7 @@
 %if %{have_snappy}
 %patch15 -p1
 %endif
+%patch16 -p1
 ## GDB patches
 for f in %{S:100} %{S:101} %{S:102} %{S:103} %{S:104} \
%{S:105} %{S:106} %{S:107} %{S:108} %{S:109} ; do

++ crash-keep-file-orig-with-name-on-select.patch ++
From: David Mair dm...@suse.com
Subject: Make sure not to delete vmlinux file
References: bnc#877367
Patch-mainline: not yet

---
 symbols.c |7 +++
 1 file changed, 7 insertions(+)

--- a/symbols.c
+++ b/symbols.c
@@ -3346,6 +3346,7 @@ int
 select_namelist(char *new)
 {
struct stat stat1, stat2;
+   char *namecp;
 
if (pc-server_namelist) {
pc-namelist_debug = new;
@@ -3359,6 +3360,12 @@ select_namelist(char *new)
 
if (stat1.st_size  stat2.st_size) {
pc-namelist_debug = pc-namelist;
+   if (pc-namelist_orig)
+   {
+   namecp = pc-namelist_debug_orig;
+   pc-namelist_debug_orig = pc-namelist_orig;
+   pc-namelist_orig = namecp;
+   }
pc-namelist = new; 
} else if (stat2.st_size  stat1.st_size) 
pc-namelist_debug = new;
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit crash for openSUSE:Factory

2014-05-17 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2014-05-17 21:43:19

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2014-05-02 
13:54:42.0 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2014-05-17 
21:43:20.0 +0200
@@ -1,0 +2,5 @@
+Fri May 16 19:39:11 UTC 2014 - ptesa...@suse.cz
+
+- crash_enable_snappy_support.patch: enable snappy support.
+
+---

New:

  crash_enable_snappy_support.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.PQ7Wp2/_old  2014-05-17 21:43:21.0 +0200
+++ /var/tmp/diff_new_pack.PQ7Wp2/_new  2014-05-17 21:43:21.0 +0200
@@ -20,6 +20,14 @@
 %define scripts_version  2008-02-08
 %define gcore_version  2011-09-22
 
+%if 0%{!?have_snappy:1}
+%if 0%{?suse_version} = 1310
+%define have_snappy 1
+%else
+%define have_snappy 0
+%endif
+%endif
+
 Name:   crash
 %ifarch ppc
 %define build_sial 0
@@ -71,12 +79,16 @@
 Patch12:eppic-switch-to-system-lib.patch
 Patch13:%{name}-patch-gdb.patch
 Patch14:%{name}-x86_64-nested-nmi.patch
+Patch15:%{name}_enable_snappy_support.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
 BuildRequires:  libeppic-devel
 BuildRequires:  lzo-devel
 BuildRequires:  ncurses-devel
+%if %{have_snappy}
+BuildRequires:  snappy-devel
+%endif
 BuildRequires:  zlib-devel
 Requires:   /usr/bin/nm
 ExclusiveArch:  %ix86 x86_64 ia64 s390 s390x ppc64 ppc64le alpha
@@ -257,6 +269,9 @@
 %patch11 -p1
 %patch13 -p1
 %patch14 -p1
+%if %{have_snappy}
+%patch15 -p1
+%endif
 ## GDB patches
 for f in %{S:100} %{S:101} %{S:102} %{S:103} %{S:104} \
%{S:105} %{S:106} %{S:107} %{S:108} %{S:109} ; do

++ crash_enable_snappy_support.patch ++
From: Petr Tesarik ptesa...@suse.cz
Subject: enably snappy support
Patch-mainline: never, configurable default

Signed-off-by: Petr Tesarik ptesa...@suse.cz

---
 CFLAGS.extra  |2 +-
 LDFLAGS.extra |2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

--- a/CFLAGS.extra
+++ b/CFLAGS.extra
@@ -1 +1 @@
--DLZO
+-DLZO -DSNAPPY
--- a/LDFLAGS.extra
+++ b/LDFLAGS.extra
@@ -1 +1 @@
--llzo2
+-llzo2 -lsnappy
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit crash for openSUSE:Factory

2014-05-02 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2014-05-02 13:54:39

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2014-02-21 
06:55:19.0 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2014-05-02 
13:54:42.0 +0200
@@ -1,0 +2,6 @@
+Wed Apr 30 07:58:01 UTC 2014 - ptesa...@suse.cz
+
+- crash-x86_64-nested-nmi.patch: Fix NMI backtrace for kernels
+  patched to handle nested NMIs (bnc#874179).
+
+---

New:

  crash-x86_64-nested-nmi.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.2ZCqnm/_old  2014-05-02 13:54:43.0 +0200
+++ /var/tmp/diff_new_pack.2ZCqnm/_new  2014-05-02 13:54:43.0 +0200
@@ -70,6 +70,7 @@
 Patch11:%{name}-compressed-booted-kernel.patch
 Patch12:eppic-switch-to-system-lib.patch
 Patch13:%{name}-patch-gdb.patch
+Patch14:%{name}-x86_64-nested-nmi.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -82,7 +83,7 @@
 # Source code says it can do ppc32. Excluded here?
 ExcludeArch:ppc
 # crash driver KMP
-%if %build_kmp
+%if 0%{?build_kmp}
 BuildRequires:  kernel-syms
 BuildRequires:  module-init-tools
 %if 0%{?suse_version} = 1130
@@ -90,7 +91,7 @@
 %endif
 %endif
 
-%if %build_kmp
+%if 0%{?build_kmp}
 %if 0%{?suse_version} = 920
 %suse_kernel_module_package -n crash -p %_sourcedir/%{name}-kmp-preamble um
 %define arch %_target_cpu
@@ -221,7 +222,7 @@
 
 %endif
 
-%if %build_kmp
+%if 0%{?build_kmp}
 
 %package %kmp_pkg
 Summary:Memory driver for the crash utility
@@ -255,6 +256,7 @@
 %patch10 -p1
 %patch11 -p1
 %patch13 -p1
+%patch14 -p1
 ## GDB patches
 for f in %{S:100} %{S:101} %{S:102} %{S:103} %{S:104} \
%{S:105} %{S:106} %{S:107} %{S:108} %{S:109} ; do
@@ -278,7 +280,7 @@
 export GDB=gdb-%{gdb_version}
 make RPMPKG=`cat .rh_rpm_package` %{?jobs:-j%jobs}
 make extensions %{?jobs:-j%jobs}
-%if %build_kmp
+%if 0%{?build_kmp}
 export EXTRA_CFLAGS='-DVERSION=\%version\'
 for flavor in %flavors_to_build; do
 rm -rf kbuild/$flavor
@@ -316,7 +318,7 @@
 install -m 0644 sial-scripts-%{scripts_version}/*.c \
 $RPM_BUILD_ROOT/%{_datadir}/sial/crash
 %endif
-%if %build_kmp
+%if 0%{?build_kmp}
 # memory driver module
 export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
 export INSTALL_MOD_DIR=updates
@@ -396,7 +398,7 @@
 %doc extensions/README.gcore
 %endif
 
-%if build_kmp
+%if 0%{?build_kmp}
 %if 0%{?suse_version}  920
 
 %files %kmp_pkg

++ crash-x86_64-nested-nmi.patch ++
From: Petr Tesarik ptesa...@suse.cz
Subject: Fix NMI backtrace for kernels patched to handle nested NMIs
References: bnc#874179
Patch-mainline: not yet

Kernel commit 3f3c8b8c4b2a34776c3470142a7c8baafcda6eb0 changed the NMI stack
layout, adding 12 more values on the stack. The fix has two parts:

  1. Determine if this kernel has the nested NMI layout and set a
 machine-specific flag (NESTED_NMI) if it does.

  2. When backtracing an NMI stack, use the saved values instead of those
 found at the top of stack.

Additionally, kernel commit 28696f434fef0efa97534b59986ad33b9c4df7f8 changed
the stack layout again, swapping the location of the saved and copied
registers. This can be detected automatically, because the copied registers
contain either a copy of the saved registers, or point to repeat_nmi. So,
if restart_nmi is found as the return address, assume that this is the old
layout and adjust the stack pointer again.

Signed-off-by: Petr Tesarik ptesa...@suse.cz

---
 defs.h   |1 
 x86_64.c |   73 ---
 2 files changed, 57 insertions(+), 17 deletions(-)

--- a/defs.h
+++ b/defs.h
@@ -5090,6 +5090,7 @@ struct machine_specific {
 #define VM_XEN_RHEL4 (0x100)
 #define FRAMEPOINTER (0x200)
 #define GART_REGION  (0x400)
+#define NESTED_NMI   (0x800)
 
 #define VM_FLAGS (VM_ORIG|VM_2_6_11|VM_XEN|VM_XEN_RHEL4)
 
--- a/x86_64.c
+++ b/x86_64.c
@@ -468,6 +468,8 @@ x86_64_init(int when)
else
x86_64_per_cpu_init();
x86_64_ist_init();
+   if (symbol_exists(repeat_nmi))
+   machdep-flags |= NESTED_NMI;
machdep-in_alternate_stack = x86_64_in_alternate_stack;
 if ((machdep-machspec-irqstack = (char *)
malloc(machdep-machspec-stkinfo.isize)) == NULL)
@@ -3009,6 +3011,8 @@ in_exception_stack:
 }
 
stacktop = bt-stacktop - 

commit crash for openSUSE:Factory

2014-02-20 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2014-02-21 06:55:17

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2014-01-30 
11:23:26.0 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2014-02-21 
06:55:19.0 +0100
@@ -1,0 +2,94 @@
+Tue Feb 18 19:28:45 CET 2014 - dm...@suse.de
+
+- Implementation of 7.0.5 from upstream, including patch refresh
+  Changelog:
+
+ - Fix for the runq -g option for kernels that are configured with
+   CONFIG_FAIR_GROUP_SCHED, but not CONFIG_CFS_BANDWIDTH.  Without the
+   patch, the command fails with the message runq: invalid structure 
+   member offset: cfs_rq_throttled.
+   (vinayakm.l...@gmail.com)
+
+ - Add support for Xen PVH guest types introduced in Xen 4.4.  Without
+   the patch, running against a Xen 4.4 hypervisor binary would fail 
+   during session initialization with the error message crash: invalid 
+   structure member offset: domain_is_hvm.  In addition, the PVH guest
+   type is being registered internally as an HVM guest type, the debug
+   help -X ofs command's display of the domain_domain_flags offset
+   has been fixed to show it in decimal, and the setting of the internal
+   dc-domain_flags has been fixed to contain all flags set, not just 
+   the first one found.
+   (dsl...@verizon.com)
+
+ - Fix for the kmem -S command on Linux 3.1 and later kernels that are
+   configured with CONFIG_SLUB.  Because the the page structure's inuse 
+   and objects fields used by SLUB were changed from discrete u16 types
+   to bit-fields within an unsigned int, the display of per-node partial 
+   slab statistics are incorrect.  Without the patch, the TOTAL and 
+   ALLOCATED values are incorrectly shown as equal values, and therefore
+   the FREE value is always zero.
+   (ander...@redhat.com)
+
+ - Fix for the kmem -S command for kernels that are configured with 
+   CONFIG_SLUB.  Eash per-cpu slab object dump may show incorrect 
+   ALLOCATED and FREE values; and as seen on Linux 3.5 and later 
+   kernels, the TOTAL value and the number of individual objects dumped
+   may also be incorrect (too small).
+   (ander...@redhat.com)
+
+ - When executing the commands from an input file specified by the 
+   -i file command line option, or when accepting input from a 
+   file as a set of commands or as a set of command arguments using the
+redirection character, unconditionally cease the operation if 
+   CTRL-c is entered.  Without the patch, depending upon the command
+   that was running when the SIGINT was received, the operation may 
+   continue uninterruptibly until the file contents are consumed.
+   (ander...@redhat.com)
+
+ - Enhanced the bt -F option such that if -F is entered twice,
+   and if the stack frame contents reference a slab cache object, both 
+   the slab cache name and the stack contents will be displayed within 
+   brackets.
+   (ander...@redhat.com)
+ 
+ - Enhanced the rd -S option such that if -S is entered twice,
+   and if the memory contents reference a slab cache object, both the 
+   slab cache name and the memory contents will be displayed within 
+   brackets. 
+   (ander...@redhat.com)
+
+ - Fix for the X86_64 bt command to prevent an unwarranted message
+   indicating WARNING: possibly bogus exception frame generated
+   from a blocked kernel thread that was in the process of exec'ing
+   a user process via the call_usermodehelper() facility.
+   (ander...@redhat.com)
+
+ - Fix for the X86_64 bt command to more correctly determine the 
+   function frame that called into an interrupted function.  Without 
+   the patch, the first frame just above an IRQ exception frame
+   register dump may show an invalid/stale function.
+   (ander...@redhat.com)
+
+ - Fix for the X86_64 bt command if a page fault exception was
+   generated by the invalid contents of the RIP register.  Without 
+   the patch, the exception frame register dump is not displayed
+   above the page_fault stack frame; and in a related issue, the
+   bt -e option will not find and display the exception frame.
+   (ander...@redhat.com)
+
+ - When invoking a crash session with a compressed vmlinux file,
+   make the same host-machine/vmlinux endian verification that is 
+   done with uncompressed vmlinx files.
+   (ander...@redhat.com)
+
+ - Reduce the number of CTRL-c entries required to unconditionally
+   terminate any manually-entered command from three to one.
+   (ander...@redhat.com)
+
+ - Fix for the X86_64 bt command if an async page fault exception
+   occurred in a KVM guest running a Linux 2.6.38 or later kernel.
+   Without the patch, the exception frame register dump is not 

commit crash for openSUSE:Factory

2014-01-13 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2014-01-13 10:52:45

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2013-12-08 
19:26:20.0 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2014-01-13 
10:52:46.0 +0100
@@ -1,0 +2,5 @@
+Tue Dec 10 18:51:50 UTC 2013 - dval...@suse.com
+
+- enable ppc64le 
+
+---



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.Pwx3MW/_old  2014-01-13 10:52:47.0 +0100
+++ /var/tmp/diff_new_pack.Pwx3MW/_new  2014-01-13 10:52:47.0 +0100
@@ -67,7 +67,7 @@
 BuildRequires:  ncurses-devel
 BuildRequires:  zlib-devel
 Requires:   /usr/bin/nm
-ExclusiveArch:  %ix86 x86_64 ia64 s390 s390x ppc64 alpha
+ExclusiveArch:  %ix86 x86_64 ia64 s390 s390x ppc64 ppc64le alpha
 # Source code says it can do ppc32. Excluded here?
 ExcludeArch:ppc
 # crash driver KMP

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit crash for openSUSE:Factory

2013-12-08 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2013-12-08 19:26:18

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2013-11-22 
17:38:17.0 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2013-12-08 
19:26:20.0 +0100
@@ -1,0 +2,6 @@
+Fri Dec  6 11:27:53 UTC 2013 - ptesa...@suse.cz
+
+- crash-compressed-booted-kernel.patch: Fix a bug that may cause
+  removal of the booted kernel's vmlinux image (bnc#828260).
+
+---



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.THDFuA/_old  2013-12-08 19:26:21.0 +0100
+++ /var/tmp/diff_new_pack.THDFuA/_new  2013-12-08 19:26:21.0 +0100
@@ -16,7 +16,6 @@
 #
 
 
-%define crash_version  7.0.3
 %define whitepaper_version 2003
 %define scripts_version  2008-02-08
 %define gcore_version  2011-09-22
@@ -39,7 +38,7 @@
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
 License:GPL-3.0+ and GFDL-1.2
 Group:  Development/Tools/Debuggers
-Version:%{crash_version}
+Version:7.0.3
 Release:0
 Source: %{name}-%{version}.tar.gz
 Source2:crash_whitepaper-%{whitepaper_version}.tar.bz2

++ crash-compressed-booted-kernel.patch ++
--- /var/tmp/diff_new_pack.THDFuA/_old  2013-12-08 19:26:22.0 +0100
+++ /var/tmp/diff_new_pack.THDFuA/_new  2013-12-08 19:26:22.0 +0100
@@ -1,21 +1,25 @@
+From: Petr Tesarik ptesa...@suse.cz
+Subject: Automatically detect compressed booted kernel
+References: bnc#777516, bnc#828260
+Patch-mainline: not yet
+
+Signed-off-by: Petr Tesarik ptesa...@suse.cz
+
 ---
- filesys.c |   37 -
- 1 file changed, 28 insertions(+), 9 deletions(-)
+ filesys.c |   26 ++
+ 1 file changed, 22 insertions(+), 4 deletions(-)
 
-Index: crash-7.0.3/filesys.c
-===
 crash-7.0.3.orig/filesys.c
-+++ crash-7.0.3/filesys.c
-@@ -529,6 +529,8 @@ static int
+--- a/filesys.c
 b/filesys.c
+@@ -530,6 +530,7 @@ static int
  find_booted_kernel(void)
  {
char kernel[BUFSIZE];
-+  char *kernel_unpacked;
 +  char *real_kernel;
char buffer[BUFSIZE];
char **searchdirs;
int i, preferred, wrapped;
-@@ -578,16 +580,25 @@ find_booted_kernel(void)
+@@ -579,16 +580,24 @@ find_booted_kernel(void)
sprintf(kernel, %s%s, searchdirs[i], dp-d_name);
  
if (mount_point(kernel) ||
@@ -24,12 +28,8 @@
 +  !file_readable(kernel))
continue;
  
-+  if (is_compressed_kernel(kernel, kernel_unpacked))
-+  real_kernel = kernel_unpacked;
-+  else {
-+  kernel_unpacked = NULL;
++  if (!is_compressed_kernel(kernel, real_kernel))
 +  real_kernel = kernel;
-+  }
 +
if (CRASHDEBUG(1)) 
fprintf(fp, find_booted_kernel: check: %s\n, 
@@ -37,42 +37,34 @@
  
 -  found = match_file_string(kernel, kt-proc_version, 
buffer);
 -  
-+  if (!is_elf_file(real_kernel))
++  if (!is_elf_file(real_kernel)) {
++  if (real_kernel != kernel)
++  free(real_kernel);
 +  continue;
++  }
 +
 +  found = match_file_string(real_kernel, 
kt-proc_version, buffer);
 +
if (found)
break;
}
-@@ -598,17 +609,25 @@ find_booted_kernel(void)
-   build_searchdirs(DESTROY, NULL);
- 
-   if (found) {
--if ((pc-namelist = (char *)malloc
--  (strlen(kernel)+1)) == NULL) 
-+  if ((pc-namelist_orig = strdup(kernel)) == NULL)
-+  error(FATAL, booted kernel real name malloc: %s\n,
-+  strerror(errno));
-+  else if ((pc-namelist = strdup(real_kernel)) == NULL)
-   error(FATAL, booted kernel name malloc: %s\n,
-   strerror(errno));
--else {
--strcpy(pc-namelist, kernel);
-+else
+@@ -608,10 +617,19 @@ find_booted_kernel(void)
   

commit crash for openSUSE:Factory

2013-11-22 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2013-11-22 17:38:15

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2013-09-13 
14:45:42.0 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2013-11-22 
17:38:17.0 +0100
@@ -1,0 +2,168 @@
+Thu Nov 21 19:47:54 UTC 2013 - dm...@suse.com
+
+- Implementation of 7.0.3 from upstream and patch refresh.
+
+- Fix for the ARM architecture if the backtrace unwind information 
+  cannot be gathered during session initialization.  Without the patch, 
+  the two unwind-related warning messages indicating WARNING: UNWIND: 
+  failed to gather unwind_table list and WARNING: UNWIND: failed to 
+  initialize module unwind tables are followed by the fatal error 
+  message crash: cannot hash task_struct entries.
+  (ander...@redhat.com)
+
+- Fix for the help -[Dn] dumpfile information display of the GUID EFI
+  table in the header of SADUMP dumpfiles.  Without the patch, only 33 
+  of the 36 bytes in the table are translated.
+  (d.hatay...@jp.fujitsu.com)
+
+- Fix for the determination of the kernel NR_CPUS configurable for
+  Linux 3.8 and later kernels that are configured with CONFIG_SLAB. 
+  Without the patch, the kernel's compiled-in NR_CPUS value was 
+  incorrectly calculated to be the sum of the kernel's NR_CPUS and
+  MAX_NUMNODES configurables.
+  (ander...@redhat.com)
+ 
+- In the next release of makedumpfile, the status field of the 
+  dumpfile header of compressed kdumps will show the compression 
+  type that was utilized.  The help -[Dn] output has been updated
+  to display that information.
+  (ander...@redhat.com)
+
+- For kernels configured with CONFIG_SLAB in which an array_cache
+  pointer referenced by a kmem_cache structure is invalid, the
+  individual cache(s) will be marked as invalid.  During session
+  initialization, the message crash: kmem_cache: cache-address: 
+  invalid array_cache pointer will be displayed, and during runtime, 
+  attempts to access the cache(s) will result in a message indicating 
+  that the cache is [INVALID/CORRPUTED].  Without the patch, the 
+  message crash: unable to initialize kmem slab cache subsystem is 
+  displayed during session initialization, and run-time commands that 
+  attempt to access the kmem slab cache subsystem fail with the error
+  message kmem cache slab subsystem not available.
+  (ander...@redhat.com)
+
+- Fix for the kmem -[sS] slab-object-address option in Linux 3.6
+  and later kernels configured with CONFIG_SLAB.  Without the patch, 
+  the command fails with the message kmem: address is not allocated in 
+  slab subsystem: slab-object-address.  This also causes the 
+  kmem slab-object-address command to (quietly) fail to determine
+  that the address is a slab object.
+  (ander...@redhat.com)
+
+- Fix for the bt command if a kernel __init text address is 
+  encountered.  Without the patch, and depending upon the reallocation
+  of the __init text memory, a bogus framesize may be calculated, or 
+  more likely, in a compressed kdump, a warning message indicating 
+  bt: page excluded: kernel virtual address: address  type: 
+  gdb_readmem_callback will be displayed following the frame data.
+  (ander...@redhat.com)
+
+- Update for determining whether an S390X PTE contains a swap entry
+  in Linux 3.12 and later kernels.
+  (holz...@linux.vnet.ibm.com)
+
+- Resurrected the translation and display of the page.flags bits by the
+  kmem -p command on Linux 2.6.26 and later kernels whose vmlinux 
+  debuginfo data contains either the pageflags enumerator or the 
+  pageflag_names array of trace_print_flags structures.  If they are
+  not available, just the page.flags value is printed in hexadecimal,
+  as has been done since Linux 2.4.9.
+  (ander...@redhat.com)
+
+- Fix for the bt command when used with vmcore files that were
+  created with the recently-introduced virsh dump --memory-only, 
+  which dumps KVM guests into an ELF vmcore similar to those created 
+  by the kdump facility.  Without the patch, a faulty backtrace for the 
+  panic task may be generated due to the use of incorrect starting 
+  RSP/RIP registers; this happens because (unlike kdump) the 
+  non-panicking cpus are offlined prior to the dumpfile being created,
+  which in turn leads to the use of the wrong NT_PRSTATUS note. 
+  (ander...@redhat.com)
+
+- Fix for the CPU number display on systems with 255 or more cpus
+  during the initial banner, by the set command, the ps command, 
+  and by all commands that display the per-task header consisting of 
+  the task address, pid, cpu and command name.  Without the patch, for
+  cpu 255, the sys 

commit crash for openSUSE:Factory

2013-09-13 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2013-09-13 14:45:41

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2013-06-05 
11:44:25.0 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2013-09-13 
14:45:42.0 +0200
@@ -1,0 +2,18 @@
+Fri Sep 13 07:20:59 UTC 2013 - ptesa...@suse.com
+
+- crash-crosscrash-hint.diff: Removed, because crosscrash isn't
+  maintained any longer.
+
+---
+Thu Sep 12 19:03:05 UTC 2013 - dm...@suse.com
+
+- Implementation of v7.0.2 from upstream.
+  o See http://people.redhat.com/anderson/crash.changelog.html
+for a complete list of changes from 6.1.3.
+
+- crash-rl_digit_loop-return.patch - removed
+- crash-missing-declarations.patch - refreshed
+- crash-rl_digit_loop-return.patch - refreshed
+- eppic-switch-to-system-lib.patch - refreshed
+
+---

Old:

  crash-6.1.3.tar.gz
  crash-crosscrash-hint.diff
  crash-rl_digit_loop-return.patch

New:

  crash-7.0.2.tar.gz



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.DrMUUA/_old  2013-09-13 14:45:44.0 +0200
+++ /var/tmp/diff_new_pack.DrMUUA/_new  2013-09-13 14:45:44.0 +0200
@@ -16,7 +16,7 @@
 #
 
 
-%define crash_version  6.1.3
+%define crash_version  7.0.2
 %define whitepaper_version 2003
 %define scripts_version  2008-02-08
 %define gcore_version  2011-09-22
@@ -55,8 +55,6 @@
 Patch1: %{name}-make-emacs-default.diff
 Patch2: %{name}-sles9-quirk.patch
 Patch4: %{name}-sles9-time.patch
-Patch6: %{name}-crosscrash-hint.diff
-Patch7: %{name}-rl_digit_loop-return.patch
 Patch8: %{name}-missing-declarations.patch
 Patch9: %{name}-debuginfo-compressed.patch
 Patch10:%{name}_enable_lzo_support.patch
@@ -242,8 +240,6 @@
 %patch1 -p1
 %patch2 -p1
 %patch4 -p1
-%patch6 -p1
-%patch7 -p1
 %patch8 -p1
 %patch9 -p1
 %patch10 -p1

++ crash-6.1.3.tar.gz - crash-7.0.2.tar.gz ++
/work/SRC/openSUSE:Factory/crash/crash-6.1.3.tar.gz 
/work/SRC/openSUSE:Factory/.crash.new/crash-7.0.2.tar.gz differ: char 5, line 1

++ crash-missing-declarations.patch ++
--- /var/tmp/diff_new_pack.DrMUUA/_old  2013-09-13 14:45:44.0 +0200
+++ /var/tmp/diff_new_pack.DrMUUA/_new  2013-09-13 14:45:44.0 +0200
@@ -4,17 +4,17 @@
 This fixes a compilation failure on ppc64.
 
 ---
- gdb-7.3.1.patch |   10 ++
+ gdb-7.6.patch |   10 ++
  1 file changed, 10 insertions(+)
 
 a/gdb-7.3.1.patch
-+++ b/gdb-7.3.1.patch
-@@ -1253,6 +1253,16 @@
+--- a/gdb-7.6.patch
 b/gdb-7.6.patch
+@@ -17,6 +17,16 @@
./pex-djgpp.$(objext) ./pex-msdos.$(objext) \
 ./pex-unix.$(objext) ./pex-win32.$(objext) \
 ./putenv.$(objext) \
-+--- gdb-7.3.1/sim/common/gentmap.c.orig
- gdb-7.3.1/sim/common/gentmap.c
++--- gdb-7.6/sim/common/gentmap.c.orig
+ gdb-7.6/sim/common/gentmap.c
 +@@ -2,6 +2,7 @@
 + 
 + #include stdio.h
@@ -23,6 +23,6 @@
 + 
 + struct tdefs {
 +   char *symbol;
- --- gdb-7.3.1/gdb/symtab.c.orig
- +++ gdb-7.3.1/gdb/symtab.c
- @@ -4951,10 +4951,17 @@ static void
+ --- gdb-7.6/opcodes/i386-dis.c.orig
+ +++ gdb-7.6/opcodes/i386-dis.c
+ @@ -11510,6 +11510,10 @@ print_insn (bfd_vma pc, disassemble_info

++ eppic-switch-to-system-lib.patch ++
--- /var/tmp/diff_new_pack.DrMUUA/_old  2013-09-13 14:45:44.0 +0200
+++ /var/tmp/diff_new_pack.DrMUUA/_new  2013-09-13 14:45:44.0 +0200
@@ -40,9 +40,9 @@
cd eppic/libeppic  make
  
 -eppic.so: ../defs.h $(APPFILE) lib-eppic
--  gcc -g -I.. -Ieppic/libeppic -I../$(GDB)/bfd -I../$(GDB)/include 
-I../$(GDB)/gdb -I../$(GDB)/gdb/config -I../$(GDB)/gdb/common -I../$(GDB) 
-nostartfiles -shared -rdynamic -o eppic.so $(APPFILE) -fPIC $(TARGET_FLAGS) 
$(GDB_FLAGS) -Leppic/libeppic -leppic 
+-  gcc -g -Ieppic/libeppic -I../$(GDB)/gdb -I../$(GDB)/bfd 
-I../$(GDB)/include -I../$(GDB)/gdb/config -I../$(GDB)/gdb/common -I../$(GDB) 
-nostartfiles -shared -rdynamic -o eppic.so $(APPFILE) -fPIC $(TARGET_FLAGS) 
$(GDB_FLAGS) -Leppic/libeppic -leppic 
 +eppic.so: ../defs.h $(APPFILE)
-+  gcc -g -I.. -I../$(GDB)/bfd -I../$(GDB)/include -I../$(GDB)/gdb 
-I../$(GDB)/gdb/config -I../$(GDB)/gdb/common -I../$(GDB) -nostartfiles -shared 
-rdynamic -o eppic.so $(APPFILE) -fPIC $(TARGET_FLAGS) $(GDB_FLAGS) -leppic
++  gcc -g 

commit crash for openSUSE:Factory

2013-06-05 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2013-06-05 11:44:22

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2013-03-05 
15:49:47.0 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2013-06-05 
11:44:25.0 +0200
@@ -1,0 +2,19 @@
+Fri May 10 21:56:52 UTC 2013 - dm...@suse.com
+
+- Implementation of v6.1.3 from upstream.
+
+  crash-display-date-fix.patch   - removed/redundant
+  crash-kmem_cache_slab.patch- removed/redundant
+  crash-siginfo.patch- removed/redundant
+  crash-var_length_log_rec.patch - removed/redundant
+
+  eppic-switch-to-system-lib.patch - Implementation of EPPIC via
+  system library rather than retrieve and include in build. Added
+  eppic constants to spec file without removing the sial constants
+  for now.
+
+  crash-crosscrash-hint.diff- refreshed
+  crash-make-emacs-default.diff - refreshed
+  crash-sles9-time.patch- refreshed
+
+---

Old:

  crash-6.0.7.tar.gz
  crash-display-date-fix.patch
  crash-kmem_cache_slab.patch
  crash-siginfo.patch
  crash-var_length_log_rec.patch

New:

  crash-6.1.3.tar.gz
  eppic-switch-to-system-lib.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.srbn3A/_old  2013-06-05 11:44:26.0 +0200
+++ /var/tmp/diff_new_pack.srbn3A/_new  2013-06-05 11:44:26.0 +0200
@@ -16,7 +16,7 @@
 #
 
 
-%define crash_version  6.0.7
+%define crash_version  6.1.3
 %define whitepaper_version 2003
 %define scripts_version  2008-02-08
 %define gcore_version  2011-09-22
@@ -24,8 +24,10 @@
 Name:   crash
 %ifarch ppc
 %define build_sial 0
+%define build_eppic 0
 %else
-%define build_sial 1
+%define build_sial 0
+%define build_eppic 1
 %endif
 %ifarch %ix86 x86_64
 %define build_gcore 1
@@ -58,14 +60,12 @@
 Patch8: %{name}-missing-declarations.patch
 Patch9: %{name}-debuginfo-compressed.patch
 Patch10:%{name}_enable_lzo_support.patch
-Patch11:%{name}-siginfo.patch
-Patch12:%{name}-var_length_log_rec.patch
-Patch13:%{name}-compressed-booted-kernel.patch
-Patch14:%{name}-display-date-fix.patch
-Patch15:%{name}-kmem_cache_slab.patch
+Patch11:%{name}-compressed-booted-kernel.patch
+Patch12:eppic-switch-to-system-lib.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
+BuildRequires:  libeppic-devel
 BuildRequires:  lzo-devel
 BuildRequires:  ncurses-devel
 BuildRequires:  zlib-devel
@@ -143,6 +143,33 @@
 
 David Anderson ander...@redhat.com
 
+%if %build_eppic
+%package eppic
+Requires:   %{name} = %{version}
+%if %build_sial
+# Nothing to do
+%else
+Provides:   %{name}-sial = %{version}
+Obsoletes:  %{name}-sial  %{version}
+%endif
+Summary:Embeddable Pre-Processor and Interpreter for C extension for 
crash
+License:GPL-2.0+
+Group:  Development/Tools/Debuggers
+
+%description eppic
+EPPIC is a C interpreter that permits easy access to the symbol and type
+information stored in a executable image like a coredump or live memory
+interfaces (e.g. /dev/kmem, /dev/mem). Although it has a strong association
+with live or postmortem kernel analysis, it is not constraint to it and can be
+embedded in any tools that is C friendly.
+
+
+Authors:
+
+Luc Chouinard lucchou...@gmail.com
+
+%endif
+
 %if %build_sial
 
 %package sial
@@ -221,10 +248,6 @@
 %patch9 -p1
 %patch10 -p1
 %patch11 -p1
-%patch12 -p1
-%patch13 -p1
-%patch14 -p1
-%patch15 -p1
 ## SIAL patches
 cd sial-scripts-%{scripts_version}
 %patch90 -p1
@@ -233,11 +256,13 @@
 cd extensions
 tar xfvj %{S:5}
 cd -
+%patch12 -p1
 cp %{S:3} .
 mkdir kbuild
 
 %build
 export CFLAGS=$RPM_OPT_FLAGS -fno-builtin-memset -fno-strict-aliasing
+export GDB=gdb-%{gdb_version}
 make RPMPKG=`cat .rh_rpm_package` %{?jobs:-j%jobs}
 make extensions %{?jobs:-j%jobs}
 %if %build_kmp
@@ -266,8 +291,13 @@
 %if %build_gcore
 install -m 0644 extensions/gcore.so $RPM_BUILD_ROOT/%{_libdir}/crash/extensions
 %endif
+%if %build_eppic
+install -m 0644 extensions/eppic.so $RPM_BUILD_ROOT/%{_libdir}/crash/extensions
+%endif
 %if %build_sial
 install -m 0644 extensions/sial.so $RPM_BUILD_ROOT/%{_libdir}/crash/extensions
+%endif
+%if %build_eppic
 # scripts
 mkdir -p $RPM_BUILD_ROOT/%{_datadir}/sial/crash
 install -m 0644 sial-scripts-%{scripts_version}/*.c \
@@ -328,8 +358,15 @@
 %defattr(-,root,root)
 %doc crash_whitepaper/*
 
-%if %build_sial
+%if 

commit crash for openSUSE:Factory

2013-03-05 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2013-03-05 15:49:45

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash, Maintainer is ptesa...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2013-02-04 
21:07:54.0 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2013-03-05 
15:49:47.0 +0100
@@ -1,0 +2,28 @@
+Wed Feb 27 06:23:31 UTC 2013 - co...@suse.com
+
+- update license to new format
+
+---
+Mon Feb  4 23:26:14 UTC 2013 - dm...@suse.com
+
+- Re-execution of 150764 by tabra...@suse.com to re-align patch
+  content, re-number patches for latest spec contents and to
+  remove some incidental content (e.g. whitespace insertion and
+  leftover comments of new lines). Comment from tabraham follows:
+
+ - added crash-display-date-fix.patch
+   This is a backport of the fix from crash-6.0.9 to fix the date
+   displayed by the initial system banner and by the sys command
+   for linux kernel 3.6 and later. Without the patch, the date
+   displayed will be that of the UNIX epoch adjusted to local time.
+
+ - added crash-kmem_cache_slab.patch
+   This is a backport of the fix from crash-6.1.0 for Linux 3.0 and
+   later kernels that have been configured with CONFIG_SLAB and with-
+   out CONFIG_NODES_SHIFT. Without the patch, the warning messages
+   crash: nr_node_ids: symbol does not exist and crash: unable to
+   initialize kmem slab cache subsystem are displayed during
+   initialization, and the kmem -[sS] options fail with the message
+   kmem: kmem cache slab subsystem not available.
+
+---

New:

  crash-display-date-fix.patch
  crash-kmem_cache_slab.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.LvOxSn/_old  2013-03-05 15:49:51.0 +0100
+++ /var/tmp/diff_new_pack.LvOxSn/_new  2013-03-05 15:49:51.0 +0100
@@ -35,7 +35,7 @@
 %define build_kmp 1
 Url:http://people.redhat.com/anderson/
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
-License:GPL-3.0+ ; GFDL-1.2
+License:GPL-3.0+ and GFDL-1.2
 Group:  Development/Tools/Debuggers
 Version:%{crash_version}
 Release:0
@@ -61,6 +61,8 @@
 Patch11:%{name}-siginfo.patch
 Patch12:%{name}-var_length_log_rec.patch
 Patch13:%{name}-compressed-booted-kernel.patch
+Patch14:%{name}-display-date-fix.patch
+Patch15:%{name}-kmem_cache_slab.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -221,6 +223,8 @@
 %patch11 -p1
 %patch12 -p1
 %patch13 -p1
+%patch14 -p1
+%patch15 -p1
 ## SIAL patches
 cd sial-scripts-%{scripts_version}
 %patch90 -p1

++ crash-display-date-fix.patch ++
---
 defs.h|1 +
 kernel.c  |8 
 symbols.c |2 ++
 3 files changed, 11 insertions(+)

--- a/defs.h
+++ b/defs.h
@@ -1721,6 +1721,7 @@ struct offset_table {
long mount_mnt;
long task_struct_exit_state;
long timekeeper_xtime;
+   long timekeeper_xtime_sec;
long file_f_op;
long file_private_data;
long hstate_order;
--- a/kernel.c
+++ b/kernel.c
@@ -173,6 +173,7 @@ kernel_init()
kt-flags |= SMP|PER_CPU_OFF;

MEMBER_OFFSET_INIT(timekeeper_xtime, timekeeper, xtime);
+   MEMBER_OFFSET_INIT(timekeeper_xtime_sec, timekeeper, xtime_sec);
get_xtime(kt-date);

if (pc-flags  GET_TIMESTAMP) {
@@ -8055,12 +8056,19 @@ static void
 get_xtime(struct timespec *date)
 {
struct syment *sp;
+   uint64_t xtime_sec;
 
if (VALID_MEMBER(timekeeper_xtime) 
(sp = kernel_symbol_search(timekeeper))) {
 readmem(sp-value + OFFSET(timekeeper_xtime), KVADDR, 
date, sizeof(struct timespec),
 timekeeper xtime, RETURN_ON_ERROR);
+   } else if (VALID_MEMBER(timekeeper_xtime_sec) 
+(sp = kernel_symbol_search(timekeeper))) {
+   readmem(sp-value + OFFSET(timekeeper_xtime_sec), KVADDR,
+xtime_sec, sizeof(uint64_t),
+timekeeper xtime_sec, RETURN_ON_ERROR);
+   date-tv_sec = (__time_t)xtime_sec;
} else if (kernel_symbol_exists(xtime))
get_symbol_data(xtime, sizeof(struct timespec), date);
 }
--- a/symbols.c
+++ b/symbols.c
@@ -7470,6 +7470,8 @@ dump_offset_table(char *spec, ulong make
 
fprintf(fp,   

commit crash for openSUSE:Factory

2013-02-04 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2013-02-04 21:07:53

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash, Maintainer is ptesa...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2013-01-29 
12:05:40.0 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2013-02-04 
21:07:54.0 +0100
@@ -1,0 +2,6 @@
+Mon Feb  4 18:47:06 UTC 2013 - dm...@suse.com
+
+- crash-compressed-booted-kernel.patch: Fix for crash when invoked
+  without arguments fails to analyze the live system (bnc#777516).
+
+---

New:

  crash-compressed-booted-kernel.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.BAjVB5/_old  2013-02-04 21:07:56.0 +0100
+++ /var/tmp/diff_new_pack.BAjVB5/_new  2013-02-04 21:07:56.0 +0100
@@ -60,6 +60,7 @@
 Patch10:%{name}_enable_lzo_support.patch
 Patch11:%{name}-siginfo.patch
 Patch12:%{name}-var_length_log_rec.patch
+Patch13:%{name}-compressed-booted-kernel.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -219,6 +220,7 @@
 %patch10 -p1
 %patch11 -p1
 %patch12 -p1
+%patch13 -p1
 ## SIAL patches
 cd sial-scripts-%{scripts_version}
 %patch90 -p1

++ crash-compressed-booted-kernel.patch ++
---
 filesys.c |   37 -
 1 file changed, 28 insertions(+), 9 deletions(-)

--- a/filesys.c
+++ b/filesys.c
@@ -530,6 +530,8 @@ static int
 find_booted_kernel(void)
 {
char kernel[BUFSIZE];
+   char *kernel_unpacked;
+   char *real_kernel;
char buffer[BUFSIZE];
char **searchdirs;
int i, preferred, wrapped;
@@ -579,16 +581,25 @@ find_booted_kernel(void)
sprintf(kernel, %s%s, searchdirs[i], dp-d_name);
 
if (mount_point(kernel) ||
-   !file_readable(kernel) || 
-!is_elf_file(kernel))
+   !file_readable(kernel))
continue;
 
+   if (is_compressed_kernel(kernel, kernel_unpacked))
+   real_kernel = kernel_unpacked;
+   else {
+   kernel_unpacked = NULL;
+   real_kernel = kernel;
+   }
+
if (CRASHDEBUG(1)) 
fprintf(fp, find_booted_kernel: check: %s\n, 
kernel);
 
-   found = match_file_string(kernel, kt-proc_version, 
buffer);
-   
+   if (!is_elf_file(real_kernel))
+   continue;
+
+   found = match_file_string(real_kernel, 
kt-proc_version, buffer);
+
if (found)
break;
}
@@ -599,17 +610,25 @@ find_booted_kernel(void)
build_searchdirs(DESTROY, NULL);
 
if (found) {
-if ((pc-namelist = (char *)malloc
-   (strlen(kernel)+1)) == NULL) 
+   if ((pc-namelist_orig = strdup(kernel)) == NULL)
+   error(FATAL, booted kernel real name malloc: %s\n,
+   strerror(errno));
+   else if ((pc-namelist = strdup(real_kernel)) == NULL)
error(FATAL, booted kernel name malloc: %s\n,
strerror(errno));
-else {
-strcpy(pc-namelist, kernel);
+else
if (CRASHDEBUG(1))
fprintf(fp, find_booted_kernel: found: %s\n, 
pc-namelist);
+   if (kernel_unpacked)
+   free(kernel_unpacked);
 return TRUE;
-}
+   }
+
+   if (kernel_unpacked) {
+   remove(kernel_unpacked);
+   if (kernel_unpacked)
+   free(kernel_unpacked);
}
 
error(INFO, 
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit crash for openSUSE:Factory

2013-01-29 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2013-01-29 12:05:38

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash, Maintainer is ptesa...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2012-07-31 
13:57:15.0 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2013-01-29 
12:05:40.0 +0100
@@ -1,0 +2,6 @@
+Fri Jan 25 20:33:38 UTC 2013 - tabra...@suse.com
+
+- crash-var_length_log_rec.patch: support variable-length record
+  kernel log buffer present in kernel 3.5 and later (bnc#796151).
+
+---

New:

  crash-var_length_log_rec.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.n5a716/_old  2013-01-29 12:05:42.0 +0100
+++ /var/tmp/diff_new_pack.n5a716/_new  2013-01-29 12:05:42.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package crash
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -59,6 +59,7 @@
 Patch9: %{name}-debuginfo-compressed.patch
 Patch10:%{name}_enable_lzo_support.patch
 Patch11:%{name}-siginfo.patch
+Patch12:%{name}-var_length_log_rec.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -217,6 +218,7 @@
 %patch9 -p1
 %patch10 -p1
 %patch11 -p1
+%patch12 -p1
 ## SIAL patches
 cd sial-scripts-%{scripts_version}
 %patch90 -p1

++ crash-var_length_log_rec.patch ++
diff -ur crash-6.0.7.orig/defs.h crash-6.0.7/defs.h
--- crash-6.0.7.orig/defs.h 2012-12-31 10:40:27.997859461 -0500
+++ crash-6.0.7/defs.h  2012-12-31 12:35:19.693388207 -0500
@@ -1759,6 +1759,11 @@
long msg_queue_q_qnum;
long super_block_s_fs_info;
long rq_timestamp;
+   long log_ts_nsec;
+   long log_len;
+   long log_text_len;
+   long log_dict_len;
+   long log_level;
 };
 
 struct size_table { /* stash of commonly-used sizes */
@@ -1891,6 +1896,7 @@
long shmid_kernel;
long sem_array;
long msg_queue;
+   long log;
 };
 
 struct array_table {
@@ -4328,6 +4334,9 @@
 void dump_kernel_table(int);
 void dump_bt_info(struct bt_info *, char *where);
 void dump_log(int);
+#define SHOW_LOG_LEVEL (0x1)
+#define SHOW_LOG_DICT  (0x2)
+#define SHOW_LOG_TEXT  (0x4)
 void set_cpu(int);
 void clear_machdep_cache(void);
 struct stack_hook *gather_text_list(struct bt_info *);
diff -ur crash-6.0.7.orig/help.c crash-6.0.7/help.c
--- crash-6.0.7.orig/help.c 2012-05-30 14:25:37.0 -0400
+++ crash-6.0.7/help.c  2012-12-31 11:00:00.022779319 -0500
@@ -2921,10 +2921,18 @@
 char *help_log[] = {
 log,
 dump system message buffer,
-[-m],
-  This command dumps the kernel log_buf contents in chronological order.,
+[-tdm],  
+  This command dumps the kernel log_buf contents in chronological order.  
The,
+  command supports the older log_buf formats, which may or may not contain a,
+  timestamp inserted prior to each message, as well as the newer 
variable-length, 
+  record format, where the timestamp is contained in each log entry's 
header.,
   ,
--m  Display the message log level preceding each message.,
+-t  Display the message text without the timestamp; only applicable to 
the,
+variable-length record format.,  
+-d  Display the dictionary of key/value pair properties that are 
optionally,
+appended to a message by the kernel's dev_printk() function; only,   
+applicable to the variable-length record format.,
+-m  Display the message log level in brackets preceding each message.,   
 \nEXAMPLES,
   Dump the kernel message buffer:\n,
 %s log,
@@ -2973,6 +2981,49 @@
 6Installing knfsd (copyright (C) 1996 o...@monad.swb.de).,
 7nfsd_init: initialized fhcache, entries=256,
 ... ,
+ ,   
+  On a system with the variable-length record format, and whose log_buf has 
been,
+  filled and wrapped around, display the log with timestamp data:\n, 
+%s log, 
+[0.467730] pci :ff:02.0: [8086:2c10] type 00 class 0x06, 
+[0.467749] pci :ff:02.1: [8086:2c11] type 00 class 

commit crash for openSUSE:Factory

2012-07-31 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2012-07-31 13:29:39

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash, Maintainer is ptesa...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2012-07-23 
10:15:24.0 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2012-07-31 
13:57:15.0 +0200
@@ -1,0 +2,5 @@
+Sun Jul 29 07:04:13 UTC 2012 - a...@suse.de
+
+- Fix build with glibc 2.16 (struct siginfo - siginfo_t).
+
+---

New:

  crash-siginfo.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.1pKirt/_old  2012-07-31 13:58:21.0 +0200
+++ /var/tmp/diff_new_pack.1pKirt/_new  2012-07-31 13:58:21.0 +0200
@@ -58,6 +58,7 @@
 Patch8: %{name}-missing-declarations.patch
 Patch9: %{name}-debuginfo-compressed.patch
 Patch10:%{name}_enable_lzo_support.patch
+Patch11:%{name}-siginfo.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -215,6 +216,7 @@
 %patch8 -p1
 %patch9 -p1
 %patch10 -p1
+%patch11 -p1
 ## SIAL patches
 cd sial-scripts-%{scripts_version}
 %patch90 -p1

++ crash-siginfo.patch ++
--- crash-6.0.7/gdb-7.3.1.patch.orig2012-07-29 09:39:11.055997822 +0200
+++ crash-6.0.7/gdb-7.3.1.patch 2012-07-29 09:39:45.182254702 +0200
@@ -1454,3 +1454,166 @@
  Same as \print\ command, except that if you are running in the epoch\n\
  environment, the value is printed in its own window.));
 
+--- gdb-7.3.1/gdb/arm-linux-nat.c.orig
 gdb-7.3.1/gdb/arm-linux-nat.c
+@@ -1203,7 +1203,7 @@ arm_linux_remove_watchpoint (CORE_ADDR a
+ static int
+ arm_linux_stopped_data_address (struct target_ops *target, CORE_ADDR *addr_p)
+ {
+-  struct siginfo *siginfo_p = linux_nat_get_siginfo (inferior_ptid);
++  siginfo_t *siginfo_p = linux_nat_get_siginfo (inferior_ptid);
+   int slot = siginfo_p-si_errno;
+ 
+   /* This must be a hardware breakpoint.  */
+--- gdb-7.3.1/gdb/ia64-linux-nat.c.orig
 gdb-7.3.1/gdb/ia64-linux-nat.c
+@@ -640,7 +640,7 @@ static int
+ ia64_linux_stopped_data_address (struct target_ops *ops, CORE_ADDR *addr_p)
+ {
+   CORE_ADDR psr;
+-  struct siginfo *siginfo_p;
++  siginfo_t *siginfo_p;
+   struct regcache *regcache = get_current_regcache ();
+ 
+   siginfo_p = linux_nat_get_siginfo (inferior_ptid);
+--- gdb-7.3.1/gdb/ppc-linux-nat.c.orig
 gdb-7.3.1/gdb/ppc-linux-nat.c
+@@ -2161,7 +2161,7 @@ ppc_linux_thread_exit (struct thread_inf
+ static int
+ ppc_linux_stopped_data_address (struct target_ops *target, CORE_ADDR *addr_p)
+ {
+-  struct siginfo *siginfo_p;
++  siginfo_t *siginfo_p;
+ 
+   siginfo_p = linux_nat_get_siginfo (inferior_ptid);
+ 
+--- gdb-7.3.1/gdb/alpha-linux-tdep.c.orig
 gdb-7.3.1/gdb/alpha-linux-tdep.c
+@@ -115,7 +115,7 @@ alpha_linux_sigcontext_addr (struct fram
+   /* __NR_rt_sigreturn has a couple of structures on the stack.  This is:
+ 
+   struct rt_sigframe {
+-struct siginfo info;
++siginfo_t info;
+ struct ucontext uc;
+ };
+ 
+--- gdb-7.3.1/gdb/procfs.c.orig
 gdb-7.3.1/gdb/procfs.c
+@@ -263,7 +263,7 @@ typedef struct sigaction gdb_sigaction_t
+ #ifdef HAVE_PR_SIGINFO64_T
+ typedef pr_siginfo64_t gdb_siginfo_t;
+ #else
+-typedef struct siginfo gdb_siginfo_t;
++typedef siginfo_t gdb_siginfo_t;
+ #endif
+ 
+ /* On mips-irix, praddset and prdelset are defined in such a way that
+--- gdb-7.3.1/gdb/amd64-linux-nat.c.orig
 gdb-7.3.1/gdb/amd64-linux-nat.c
+@@ -695,13 +695,13 @@ siginfo_from_compat_siginfo (siginfo_t *
+INF.  */
+ 
+ static int
+-amd64_linux_siginfo_fixup (struct siginfo *native, gdb_byte *inf, int 
direction)
++amd64_linux_siginfo_fixup (siginfo_t *native, gdb_byte *inf, int direction)
+ {
+   /* Is the inferior 32-bit?  If so, then do fixup the siginfo
+  object.  */
+   if (gdbarch_addr_bit (get_frame_arch (get_current_frame ())) == 32)
+ {
+-  gdb_assert (sizeof (struct siginfo) == sizeof (compat_siginfo_t));
++  gdb_assert (sizeof (siginfo_t) == sizeof (compat_siginfo_t));
+ 
+   if (direction == 0)
+   compat_siginfo_from_siginfo ((struct compat_siginfo *) inf, native);
+--- gdb-7.3.1/gdb/linux-nat.h.orig
 gdb-7.3.1/gdb/linux-nat.h
+@@ -60,7 +60,7 @@ struct lwp_info
+ 
+   /* Non-zero si_signo if this LWP stopped with a trap.  si_addr may
+  be the address of a hardware watchpoint.  */
+-  struct siginfo siginfo;
++  siginfo_t siginfo;
+ 
+   /* STOPPED_BY_WATCHPOINT is non-zero if this LWP stopped with a data
+  watchpoint trap.  */
+@@ -160,7 +160,7 @@ void 

commit crash for openSUSE:Factory

2012-07-23 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2012-07-23 09:58:31

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash, Maintainer is ptesa...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2012-06-01 
22:31:33.0 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2012-07-23 
10:15:24.0 +0200
@@ -1,0 +2,6 @@
+Tue Jul 17 16:52:55 UTC 2012 - dm...@suse.com
+
+- Enabled support for reading dumpfiles compressed by LZO using
+  makedumpfile version 1.4.4 or later.
+
+---

New:

  crash_enable_lzo_support.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.lvmBoQ/_old  2012-07-23 10:15:26.0 +0200
+++ /var/tmp/diff_new_pack.lvmBoQ/_new  2012-07-23 10:15:26.0 +0200
@@ -57,9 +57,11 @@
 Patch7: %{name}-rl_digit_loop-return.patch
 Patch8: %{name}-missing-declarations.patch
 Patch9: %{name}-debuginfo-compressed.patch
+Patch10:%{name}_enable_lzo_support.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
+BuildRequires:  lzo-devel
 BuildRequires:  ncurses-devel
 BuildRequires:  zlib-devel
 Requires:   /usr/bin/nm
@@ -212,6 +214,7 @@
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
+%patch10 -p1
 ## SIAL patches
 cd sial-scripts-%{scripts_version}
 %patch90 -p1

++ crash_enable_lzo_support.patch ++
---
 CFLAGS.extra  |1 +
 LDFLAGS.extra |1 +
 2 files changed, 2 insertions(+)

--- /dev/null
+++ b/CFLAGS.extra
@@ -0,0 +1 @@
+-DLZO
--- /dev/null
+++ b/LDFLAGS.extra
@@ -0,0 +1 @@
+-llzo2
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit crash for openSUSE:Factory

2012-06-01 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2012-06-01 22:30:33

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash, Maintainer is ptesa...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2012-05-21 
07:24:18.0 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2012-06-01 
22:31:33.0 +0200
@@ -1,0 +2,114 @@
+Fri Jun  1 09:20:03 UTC 2012 - dm...@suse.com
+
+- Update to crash 6.0.7 from upstream and adjust patches to apply
+  without offsets. Upstream changes:
+  o Enhanced the search command to allow the searched-for value to
+be entered as a crash (expression) or a kernel symbol name. The
+resultant value of an (expression) or kernel symbol value must
+fit into in the designated value size if -w or -h are used, and
+neither variant may be used with the -c option.  If found, both
+the resultant value and the argument input string will be
+displayed next to the target address(es).
+  o Added a new search -t option that will restrict the search to
+the kernel stack pages of all tasks.  If one or more matches
+are found in a task's kernel stack, the output is preceded with
+a task-identifying header.
+  o Fix for the s390x bt -[tT] options when run on an active task
+on a live system.  Without the patch, the options fail with the 
+message bt: invalid/stale stack pointer for this task: 0.
+  o Fix for s390x vm -p option, which may show invalid user to
+physical address translation data if a page is not mapped.
+Without the patch, a page's translation may indicate
+address   SWAP: (unknown swap location)  OFFSET: 0,
+or show an incorrect swap offset on an actual swap device.
+  o Added new vm -[xd] options to be used in conjunction with
+vm -[mv], which override the current default output format 
+with hexadecimal or decimal format for just the command instance.  
+Without the patch, it would require changing the default output 
+format with hex or dec prior to executing vm -[mv].  The 
+new flags may also be used with foreach vm -[mv].
+  o Fix for the s390x vm -p and vtop -u user-address commands
+if the page containing the relevant PTE is not mapped.  Without
+the patch, the commands fail with the error message vm: read
+error: kernel virtual address: 0  type: entry or vtop: read
+error: kernel virtual address: 0  type: entry
+  o Fix for the s390x vm -p command and vtop -u user-address
+commands to properly translate pages that are swapped out into
+their swap file and offset.  Without the patch, the swap file
+and offset would not be displayed.
+  o Added new list -[xd] options to be used in conjunction with
+list -s, which override the current default output format 
+with hexadecimal or decimal format for just the command instance.
+Without the patch, it would require changing the default output 
+format with hex or dec prior to executing list -s.
+  o Added new net -[xd] options to be used in conjunction with 
+net -S, which override the current default output format
+with hexadecimal or decimal format for just the command instance.
+Without the patch, it would require changing the default output
+format with hex or dec prior to executing net -S.  The new 
+flags may also be used with foreach net -S.
+  o Added new mach -[xd] options to be used in conjunction with 
+mach -c, which override the current default output format
+with hexadecimal or decimal format for just the command instance.
+Without the patch, it would require changing the default output
+format with hex or dec prior to executing mach -c.
+  o If the value read from the cpu online, present, or possible masks
+contains a cpu bit value that is outside the architecture's maximum 
+NR_CPUS value, print a warning message during invocation.  Without
+the patch, a corrupt vmcore containing a bogus mask value could 
+quietly corrupt heap memory.
+  o Add support to for reading dumpfiles compressed by LZO using
+makedumpfile version 1.4.4 or later.  This feature is disabled by
+default.  To enable this feature, build the crash utility in the 
+following manner:
+(1) Install the LZO libraries by using the host system's package
+manager or by directly downloading libraries from author's 
+website.  The packages required are:
+  - lzo
+  - lzo-minilzo
+  - lzo-devel
+The author's website is: http://www.oberhumer.com/opensource/lzo
+(2) Create a CFLAGS.extra file and an LDFLAGS.extra file in top-level
+crash sources directory:
+  - enter -DLZO in the CFLAGS.extra 

commit crash for openSUSE:Factory

2012-05-20 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2012-05-21 07:24:10

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash, Maintainer is ptesa...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2012-03-29 
13:50:51.0 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2012-05-21 
07:24:18.0 +0200
@@ -1,0 +2,85 @@
+Thu May 17 07:54:29 UTC 2012 - ptesa...@suse.cz
+
+- delete crash-foreach-match-running.patch: upstream
+
+---
+Mon May 14 20:24:51 UTC 2012 - dm...@suse.com
+
+- Update to crash 6.0.6 from upstream
+  o Extend the supported cross-architecture build capability so
+that it applies to the SIAL extentension module. Without the
+patch, when building the SIAL module an environment where the
+overlying crash utility was built with make target=ARM,
+make target=PPC, or make target=X86, the SIAL extension
+module would continue to be built for the host architecture
+  o Fixes for memory leaks and possible segmentation violations
+when unloading SIAL extension module scripts.
+  o Fix for the new foreach RU task state qualifier.  Without the
+patch, the runnable tasks are not selected.
+  o Fix to disallow multiple task states from being entered using
+the foreach task-state qualifier.  Without the patch, if
+multiple states were entered, the last one on the command line 
+would be honored.
+  o Fix for the extend command to allow the usage of 32-bit PPC 
+extension modules.  Without the patch, the command fails with the
+message: extend: object.so: not an ELF format object file.
+  o If an input line starts with # or //, then the line will be 
+saved as a comment that is visible when re-cycling through the 
+command history list.
+  o Fix for a crash-5.1.9 regression that broke the bt -g option.
+Without the patch, the option is ignored completely.
+  o Fix for s390x virtual-to-physical translation of virtual
+addresses that are backed by 1MB pages.
+  o The s390x has a dumpfile method that creates live dumps, where
+the kernel continues to run while the dumpfile is being created.
+The initial system banner display and the sys command will
+inform the user that the dumpfile is a [LIVE DUMP], and the
+bt -a option will fail with the message bt: -a option not
+supported on a live system or live dump.
+  o Newly-created dumpfiles generated by the snap.c extension module
+will now be recognized as live dumps.  Accordingly, the initial
+system banner display and the sys command will inform the user
+that the dumpfile is a [LIVE DUMP], and the bt -a option will
+fail with the message bt: -a option not supported on a live
+system or live dump.
+  o If bt alone is attempted on an active task in a live dump, it
+will indicate (active), i.e., the same as if it were attempted
+on a live system.
+  o If an extension module does not define the appropriate architecture,
+i.e., -DX86, -DX86_64, etc., then the inclusion of defs.h
+will generate a compiler failure indicating error: 'NR_CPUS'
+undeclared here (not in a function).  In that case, the
+architecture will now default to that of the host machine.
+  o Prevent a highly-unlikely incorrect calculation of the maximum 
+cpudata array length of a kmem_cache during initialization of 
+of CONFIG_SLAB kernels.
+  o Prevent an infinite loop during the initialization of the
+kmem_cache subsystem in CONFIG_SLAB kernels if the cache list or
+the vmcore is corrupt.  If the kmem_cache list links back into
+itself, messages showing the first duplicate entry in the list
+and crash: unable to initialize kmem slab cache subsystem will
+be displayed.
+  o Update to the mod command to additionally search for module
+object files in the directory containing the kernel namelist
+(vmlinux) file. This will allow an alternate module-debuginfo
+directory tree to be set up like so:
+
+  # cd directory
+  # rpm2cpio kernel-debuginfo-release.rpm | cpio -idv
+
+Having done that, and by referencing the vmlinux file in that
+directory tree directly or by symbolic link, the mod command
+will search for module object files starting from the directory
+containing the vmlinux file if they are not found in the standard 
+/lib/modules/release directory.
+  o Update to the s390x bt command if a task was running in
+userspace. Without the patch, the back trace display ended at the
+kernel entry function frame; with the patch, the user space PSW
+register is displayed with a (user space) tag, followed by the
+  

commit crash for openSUSE:Factory

2012-03-29 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2012-03-29 13:50:48

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash, Maintainer is ptesa...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2012-03-16 
13:10:18.0 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2012-03-29 
13:50:51.0 +0200
@@ -1,0 +2,106 @@
+Tue Mar 27 16:30:23 UTC 2012 - dm...@suse.com
+
+- Update to crash 6.0.5 from upstream and adjust patch positions
+  to match current crash source.
+  6.0.5 changelog is:
+  o Enhancement to the foreach command to allow any of the name
+arguments to be POSIX extended regular expressions.  The
+expression string must be encompassed by ' characters, and
+will be matched against the names of all tasks.
+  o Fix for the embedded gdb module's ptype command, and by
+extension, the crash utility's struct command, to be able to
+fully display embedded structure or union members of a
+structure/union.  Without the patch, if a structure or union is
+a member of a structure or union that is a member of a
+structure or union, then it is displayed as struct {...} or
+union {...}.
+  o Extend the ps -l output to also display the task state next
+to its last_run/timestamp value.
+  o Enhancement to the foreach command which adds a new state
+task-indentifier argument that filters tasks by their task
+state. The state argument may be any of the task states
+displayed by the ps command: RU, IN, UN, ST, ZO, SW or DE.
+  o Implemented a new pc-cmd_cleanup function pointer and an
+optional pc-cmd_cleanup_arg argument that will allow any
+command to register a function and an optional argument that
+will be called after a command has completed successfully, or
+more likely, unsuccessfully. Normally the only cleanup required
+for a command is the freeing of buffers that were allocated
+with GETBUF(), but that is performed automatically after each
+command is run.  However, with the introduction of the new
+POSIX regular expression functionality of the foreach
+command, there needed to be a way to call regfree() in the case
+where where regcomp() was called successfully, but then the
+command later encountered one of several fatal error
+conditions. This facility is also available for use by
+extension module commands.
+  o Enforce the usage of a kernel thread's pgd from its active_mm
+for the ARM vtop -c command; if its active_mm is NULL, make
+the command fail similarly to the other architectures,
+displaying the error message vtop: no active_mm for this
+kernel thread.
+  o Fix for the x86_64 bt command running against recent kernels
+if an active task was operating on its IRQ stack when the crash
+occurred.  Without the patch, the determination of the IRQ
+exception frame was off-by-8, displaying invalid register data
+and the error message bt: WARNING: possibly bogus exception
+frame.
+  o Update to handle the vfsmount structure change in 3.3 kernels,
+in which most members of the vfsmount structure have been moved
+into a new struct mount, and the vfsmount structure has been
+embedded in the new mount structure.  Without the patch, the
+following commands will fail, displaying the following error
+messages:
+
+  mount: mount: invalid structure member offset: vfsmount_mnt_list
+  files: files: invalid structure member offset: dentry_d_covers
+ vm: vm: invalid structure member offset: dentry_d_covers
+   swap: swap: invalid structure member offset: dentry_d_covers
+  fuser: files: invalid structure member offset: dentry_d_covers
+
+The fuser command generates the above error because it uses
+the files command behind the scenes.
+  o Fix for the ps command to prevent the display of ?? under
+the ST (task state) column.  Without the patch, in more recent
+kernels, if more than one bit were set in the task_struct.state
+field, the state would display ??.  With the fix, the primary
+state will always be displayed.
+  o Update to the output of the set command when it displays a
+task's state.  Without the patch, if more than one bit was set
+in the task_struct.state field, STATE: (unknown) would be
+displayed.  With the fix, all bits in both the task_struct.state
+and task_struct.exit_state fields are translated.
+  o Implemented a new vm -P vma-address option, which is similar
+to vm -p, but only does the page translations of the specified
+VM area of a context.
+  o Add support for the Freescale PowerPC e500mc version of the E500
+processor chipset, and rework 

commit crash for openSUSE:Factory

2012-03-16 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2012-03-16 13:10:14

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash, Maintainer is ptesa...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2012-02-16 
14:55:35.0 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2012-03-16 
13:10:18.0 +0100
@@ -1,0 +2,45 @@
+Wed Feb 29 22:12:17 UTC 2012 - dm...@suse.com
+
+- Update to crash 6.0.4 from upstream and adjust patch locations
+  to match current crash source.
+  6.0.4 changelog is:
+  o Fix to allow the recently-added mod -g and mod -r options
+to be used together.
+  o Additional update for 3.1.x and later kernels configured with
+CONFIG_SLAB, which have replaced the kmem_cache.nodelists[]
+array with a pointer to an outside array.
+  o Document the crash [-h|--help] all option in the crash.8 man 
+page and in the crash [-h|--help] output.
+  o Fix the S390/S390X-specific s390dbf command's hex_ascii
+debug data printing routine to prevent the display of
+non-ASCII characters.
+  o Fix for ARM stack unwinding on 3.2 and later kernels due to
+commit:
+  http://git.kernel.org/linus/de66a979012dbc66b1ec0125795a3f79ee667b8a
+  o Implemented a new search -x count option that displays the
+memory contents before and after any found search target.
+  o  Fix for the x86_64 Xen hypervisor bt command.  Without the
+ patch, the contents of the RDX register in exception frames
+ incorrectly shows the contents of the RCX register.
+  o Implementation of a platform-based vmalloc address translation
+scheme for the 32-bit PPC architecture, introducing suppport
+for the PPC44X platform while maintaining the current default
+platform.
+  o Fix for the usage of native gdb commands where the command
+output is redirected to a pipe and then redirected to a file.
+  o Fix to prevent a crash session that is run over a network
+connection that is killed/removed from going into 100%
+cpu-time loop.
+  o Fix for the support of PPC64 compressed kdumps, a regression
+that was introduced in crash-6.0.3 when support for 32-bit PPC
+compressed kdumps was implemented.
+  o Fix for the x86_64 bt command to prevent the possible
+skipping of the stack frame just above an exception frame that
+indicates [exception RIP: unknown or invalid address].
+  Patches with modified target locations are:
+crash-make-emacs-default.diff
+crash-sles9-time.patch
+crash-crosscrash-hint.diff
+crash-missing-declarations.patch
+
+---

Old:

  crash-6.0.3.tar.gz

New:

  crash-6.0.4.tar.gz



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.AUByvf/_old  2012-03-16 13:10:21.0 +0100
+++ /var/tmp/diff_new_pack.AUByvf/_new  2012-03-16 13:10:21.0 +0100
@@ -16,7 +16,7 @@
 #
 
 
-%define crash_version  6.0.3
+%define crash_version  6.0.4
 %define whitepaper_version 2003
 %define scripts_version  2008-02-08
 %define gcore_version  2011-09-22

++ crash-6.0.3.tar.gz - crash-6.0.4.tar.gz ++
/work/SRC/openSUSE:Factory/crash/crash-6.0.3.tar.gz 
/work/SRC/openSUSE:Factory/.crash.new/crash-6.0.4.tar.gz differ: char 5, line 1

++ crash-crosscrash-hint.diff ++
--- /var/tmp/diff_new_pack.AUByvf/_old  2012-03-16 13:10:22.0 +0100
+++ /var/tmp/diff_new_pack.AUByvf/_new  2012-03-16 13:10:22.0 +0100
@@ -15,7 +15,7 @@
 
 --- a/tools.c
 +++ b/tools.c
-@@ -4680,7 +4680,12 @@ machine_type_mismatch(char *file, char *
+@@ -4728,7 +4728,12 @@ machine_type_mismatch(char *file, char *
fprintf(fp,  crash utility: %s\n, MACHINE_TYPE);
fprintf(fp,  %s: %s%s%s\n\n, file, e_machine,
alt ?  or  : , alt ? alt : );

++ crash-make-emacs-default.diff ++
--- /var/tmp/diff_new_pack.AUByvf/_old  2012-03-16 13:10:22.0 +0100
+++ /var/tmp/diff_new_pack.AUByvf/_new  2012-03-16 13:10:22.0 +0100
@@ -4,7 +4,7 @@
 
 --- a/main.c
 +++ b/main.c
-@@ -966,12 +966,6 @@ setup_environment(int argc, char **argv)
+@@ -1007,12 +1007,6 @@ setup_environment(int argc, char **argv)
pc-flags |= READLINE;
pc-editing_mode = no_mode;
  
@@ -17,7 +17,7 @@
  
/*
 *  Resolve $HOME .rc file first, then the one in the local directory.
-@@ -1021,7 +1015,7 @@ setup_environment(int argc, char **argv)
+@@ -1062,7 +1056,7 @@ setup_environment(int argc, char **argv)
}
  
if (STREQ(pc-editing_mode, no_mode))

++ crash-missing-declarations.patch ++

commit crash for openSUSE:Factory

2012-02-16 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2012-02-16 14:55:33

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash, Maintainer is ptesa...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2012-01-10 
14:50:53.0 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2012-02-16 
14:55:35.0 +0100
@@ -1,0 +2,75 @@
+Tue Feb  7 16:31:37 UTC 2012 - dm...@suse.com
+
+- Update to crash 6.0.3 from upstream and modifications to compile.
+  6.0.3 change log is:
+  o Fix to gdb-7.3.1/bfd/bfdio.c to properly zero out a complete
+struct stat with a corrected memset argument
+  o Fix for the SIAL extension module to remove a call to
+sial_free() for an uninitialised variable
+  o Fix for the runq command for kernels that are configured
+with CONFIG_FAIR_GROUP_SCHED
+  o Implemented build and code for the analysis of 32-bit PPC ELF
+kdump vmcores
+  o Implemented the capability of building a PPC crash binary on
+a PPC64 host, which can be done by entering make target=PPC
+  o Determine the PPC page size from the kdump PAGESIZE vmcoreinfo
+data
+  o Fix for the kmem -[sS], kmem -[fF] and kmem address
+options in 3.2 kernels
+  o Addition of a set of dumpfile read diagnostic debug statements
+  o Fix for X86 kernels that have CONFIG_X86_32,
+CONFIG_DISCONTIGMEM, CONFIG_DISCONTIGMEM_MANUAL and CONFIG_NUMA
+all configured
+  o Fix for the vtop command on large NUMA X86 kernels where a
+node's starting physical address is larger than 32-bits
+  o Update for the ARM architecture to recognize a recent change
+of its vmlinux section name from .init to .init.text
+  o Significant speed increase of the kmem -p command, especially
+on large-memory systems
+  o Implemented new irq -a and irq -s options
+  o Removal of a redundant read of the kernel's __per_cpu_offset
+pointers in the ARM architecture's arm_get_crash_notes()
+function
+  o Fix for an ARM architecture segmentation violation because of a
+stack overflow due to recursion in the page table translation
+code
+  o Fix for the the FREE HIGH tally in the X86 kmem -i display
+  o Fix for the kmem -n output display for 32-bit architectures
+that are configured with CONFIG_SPARSEMEM
+  o Cleanup of several SIAL extension module files to address bison
+2.5 and gcc 4.4.3 compile-time warnings
+  o Fix for net -[sS] command options on the ARM architecture
+  o Fix for the ARM bt command to allow the core kernel unwind
+tables to be used in cases where the module unwind tables are
+inaccessible
+  o Implementation of a new dev -d option that displays disk
+device I/O statistics
+  o Update for 3.1.x and later kernels configured with CONFIG_SLAB,
+which have replaced the kmem_cache.nodelists[] array with a
+pointer to an  outside array
+  o Implemented build and code for analysis of 32-bit PPC
+compressed kdump vmcores
+  o Prevent the runq command from dumping an unending loop of
+tasks if the CFS runqueue has been corrupted
+  o Repurposed/renamed the rarely-used and rarely-needed mod -r
+option to mod -R
+  o Implemented a new mod -r option, which will pass the
+-readnow flag to the embedded gdb module, which will override
+the two-stage strategy that it uses for reading symbol tables
+from module object files
+  o Performance increase for the kmem -s address option on 
+kernels configured with CONFIG_SLAB, most notably on kernels
+whose kmem_cache.array[NR_CPUS] array is several pages in size
+  o Require that the slabname argument to kmem -s slabname 
+be escaped with a '\' character in two situations:
+(1) in the highly-unlikely case of a kmem_cache slab named
+list, to prevent the ambiguity with the kmem -s list
+command option.
+(2) if the first character of the slabname actually is a '\'
+character
+  Modifications to compile are as follows:
+  o Replacement of crash-6.0.2.tar.gz with crash-6.0.3.tar.gz
+  o Remove crash-wrong-memset.patch the fix is present in 6.0.3
+  o Remove crash-add-read-diags.patch the change is in 6.0.3
+
+---

Old:

  crash-6.0.2.tar.gz
  crash-add-read-diags.patch
  crash-wrong-memset.patch

New:

  crash-6.0.3.tar.gz



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.AOHLSR/_old  2012-02-16 14:55:39.0 +0100
+++ /var/tmp/diff_new_pack.AOHLSR/_new  2012-02-16 14:55:39.0 +0100
@@ -16,7 +16,7 @@
 #
 
 
-%define crash_version  6.0.2
+%define crash_version 

commit crash for openSUSE:Factory

2012-01-10 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2012-01-10 14:50:49

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash, Maintainer is ptesa...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2011-12-27 
18:13:07.0 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2012-01-10 
14:50:53.0 +0100
@@ -1,0 +2,10 @@
+Mon Jan  9 22:05:10 UTC 2012 - ptesa...@suse.cz
+
+- crash-wrong-memset.patch: fix compilation on SLE11. 
+
+---
+Thu Jan  5 17:14:24 UTC 2012 - dm...@suse.com
+
+- Update to crash 6.0.2 from upstream and modifications to compile.
+
+---

Old:

  crash-6.0.0.tar.gz

New:

  crash-6.0.2.tar.gz
  crash-add-read-diags.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.gLC3WS/_old  2012-01-10 14:50:58.0 +0100
+++ /var/tmp/diff_new_pack.gLC3WS/_new  2012-01-10 14:50:58.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package crash
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,7 @@
 #
 
 
-%define crash_version  6.0.0
+%define crash_version  6.0.2
 %define whitepaper_version 2003
 %define scripts_version  2008-02-08
 %define gcore_version  2011-09-22
@@ -58,6 +58,7 @@
 Patch8: %{name}-missing-declarations.patch
 Patch9: %{name}-debuginfo-compressed.patch
 Patch10:%{name}-wrong-memset.patch
+Patch11:%{name}-add-read-diags.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison
 BuildRequires:  flex
@@ -214,6 +215,7 @@
 %patch8 -p1
 %patch9 -p1
 %patch10 -p1
+%patch11 -p1
 ## SIAL patches
 cd sial-scripts-%{scripts_version}
 %patch90 -p1

++ crash-6.0.0.tar.gz - crash-6.0.2.tar.gz ++
/work/SRC/openSUSE:Factory/crash/crash-6.0.0.tar.gz 
/work/SRC/openSUSE:Factory/.crash.new/crash-6.0.2.tar.gz differ: char 5, line 1

++ crash-add-read-diags.patch ++
From: David Mair dm...@suse.com
Subject: [PATCH] Add read offset debug output to read_mem()
Patch-mainline: never
References: BNC #732433

This patch adds read offset calculation path and result debug output
to read_mem()


Signed-off-by: David Mair dm...@suse.com

--- 
--- a/diskdump.c2012-01-04 09:23:32.0 -0700
+++ b/diskdump.c2012-01-04 11:13:01.0 -0700
@@ -432,6 +432,9 @@ restart:
 
dd-dumpable_bitmap = calloc(bitmap_len, 1);
 
+   if (CRASHDEBUG(8))
+   error(INFO, 
+memory bitmap: %llx\n, offset);
if (FLAT_FORMAT()) {
if (!read_flattened_format(dd-dfd, offset, dd-bitmap, 
bitmap_len)) {
error(INFO, %s: cannot read memory bitmap\n,
@@ -829,6 +832,11 @@ read_diskdump(int fd, void *bufptr, int
 
pfn = paddr_to_pfn(paddr);
 
+   if (CRASHDEBUG(8))
+   error(INFO, 
+   read_diskdump(%d, %llx, %d, %lx, %llx), pfn=%lx\n,
+   fd, (ulonglong)bufptr, cnt, addr, (ulonglong)paddr, 
pfn);
+
if (KDUMP_SPLIT()) {
/* Find proper dd */
int i;
@@ -845,26 +853,67 @@ read_diskdump(int fd, void *bufptr, int
}
 
if (i == num_dumpfiles)
+   {
+   if (CRASHDEBUG(8))
+   error(INFO, 
+   Address is beyond last dumpfile.\n);
return SEEK_ERROR;
+   }
}
 
curpaddr = paddr  ~((physaddr_t)(dd-block_size-1));
page_offset = paddr  ((physaddr_t)(dd-block_size-1));
 
if ((pfn = dd-header-max_mapnr) || !page_is_ram(pfn))
+   {
+   if (CRASHDEBUG(8)  (pfn = dd-header-max_mapnr))
+   error(INFO, 
+   pfn (%lx) is = maximum map number (%lx)\n,
+   pfn, dd-header-max_mapnr);
+   if (CRASHDEBUG(8)  !page_is_ram(pfn))
+   error(INFO, 
+   pfn (%lx) is not in ram\n, 
+ pfn);
return SEEK_ERROR;
+   }
if (!page_is_dumpable(pfn)) {
if ((dd-flags  (ZERO_EXCLUDED|ERROR_EXCLUDED)) ==
ERROR_EXCLUDED)
+   {
+ 

commit crash for openSUSE:Factory

2011-12-27 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2011-12-27 18:13:06

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash, Maintainer is ptesa...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2011-11-16 
17:17:40.0 +0100
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2011-12-27 
18:13:07.0 +0100
@@ -1,0 +2,5 @@
+Tue Dec 27 12:46:46 UTC 2011 - idon...@suse.com
+
+- Fix wrong size parameter in memset call 
+
+---

New:

  crash-wrong-memset.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.SPQ8kw/_old  2011-12-27 18:13:13.0 +0100
+++ /var/tmp/diff_new_pack.SPQ8kw/_new  2011-12-27 18:13:13.0 +0100
@@ -15,7 +15,6 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
 
 %define crash_version  6.0.0
 %define whitepaper_version 2003
@@ -36,10 +35,10 @@
 %define build_kmp 1
 Url:http://people.redhat.com/anderson/
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
-Version:%{crash_version}
-Release:1
 License:GPL-3.0+ ; GFDL-1.2
 Group:  Development/Tools/Debuggers
+Version:%{crash_version}
+Release:0
 Source: %{name}-%{version}.tar.gz
 Source2:crash_whitepaper-%{whitepaper_version}.tar.bz2
 Source3:README.SUSE
@@ -58,15 +57,20 @@
 Patch7: %{name}-rl_digit_loop-return.patch
 Patch8: %{name}-missing-declarations.patch
 Patch9: %{name}-debuginfo-compressed.patch
+Patch10:%{name}-wrong-memset.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
-BuildRequires:  bison flex ncurses-devel zlib-devel
+BuildRequires:  bison
+BuildRequires:  flex
+BuildRequires:  ncurses-devel
+BuildRequires:  zlib-devel
 Requires:   /usr/bin/nm
 ExclusiveArch:  %ix86 x86_64 ia64 s390 s390x ppc64 alpha
 # Source code says it can do ppc32. Excluded here?
 ExcludeArch:ppc
 # crash driver KMP
 %if %build_kmp
-BuildRequires:  kernel-syms module-init-tools
+BuildRequires:  kernel-syms
+BuildRequires:  module-init-tools
 %if 0%{?suse_version} = 1130
 BuildRequires:  kernel-devel
 %endif
@@ -99,9 +103,9 @@
 David Anderson ander...@redhat.com
 
 %package doc
-License:GFDL-1.2
 Requires:   %{name} = %{version}
 Summary:Documentation for Crash
+License:GFDL-1.2
 Group:  Development/Tools/Debuggers
 
 %description doc
@@ -114,9 +118,9 @@
 David Anderson ander...@redhat.com
 
 %package devel
-License:GPL-2.0+
 Requires:   %{name} = %{version}
 Summary:Development files for crash
+License:GPL-2.0+
 Group:  Development/Tools/Debuggers
 
 %description devel
@@ -136,9 +140,9 @@
 %if %build_sial
 
 %package sial
-License:GPL-2.0+
 Requires:   %{name} = %{version}
 Summary:SIAL extension for crash
+License:GPL-2.0+
 Group:  Development/Tools/Debuggers
 
 %description sial
@@ -159,9 +163,9 @@
 %if %build_gcore
 
 %package gcore
-License:GPL-2.0+
 Requires:   %{name} = %{version}
 Summary:Gcore extension for crash
+License:GPL-2.0+
 Group:  Development/Tools/Debuggers
 
 %description gcore
@@ -179,12 +183,12 @@
 %if %build_kmp
 
 %package %kmp_pkg
-Group:  System/Kernel
-License:GPL-2.0
 Summary:Memory driver for the crash utility
+License:GPL-2.0
+Group:  System/Kernel
 %if 0%{?suse_version}  920
 Version:%{version}_%{kver_}
-
+Release:0
 
 Requires:   kernel = %kver
 %endif
@@ -209,6 +213,7 @@
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
+%patch10 -p1
 ## SIAL patches
 cd sial-scripts-%{scripts_version}
 %patch90 -p1

++ crash-wrong-memset.patch ++
Index: crash-6.0.0/gdb-7.3.1.patch
===
--- crash-6.0.0.orig/gdb-7.3.1.patch
+++ crash-6.0.0/gdb-7.3.1.patch
@@ -1263,3 +1263,14 @@
  
  struct tdefs {
char *symbol;
+--- gdb-7.3.1/bfd/bfdio.c
 gdb-7.3.1/bfd/bfdio.c
+@@ -577,7 +577,7 @@ memory_bstat (bfd *abfd, struct stat *st
+ {
+   struct bfd_in_memory *bim = (struct bfd_in_memory *) abfd-iostream;
+ 
+-  memset (statbuf, 0, sizeof (statbuf));
++  memset (statbuf, 0, sizeof (struct stat));
+   statbuf-st_size = bim-size;
+ 
+   return 0;
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit crash for openSUSE:Factory

2011-12-06 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2011-12-06 18:04:28

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash, Maintainer is ptesa...@suse.com

Changes:




Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.nhPTKW/_old  2011-12-06 18:07:04.0 +0100
+++ /var/tmp/diff_new_pack.nhPTKW/_new  2011-12-06 18:07:04.0 +0100
@@ -38,7 +38,7 @@
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
 Version:%{crash_version}
 Release:1
-License:GPLv3+; GFDLv1.2
+License:GPL-3.0+ ; GFDL-1.2
 Group:  Development/Tools/Debuggers
 Source: %{name}-%{version}.tar.gz
 Source2:crash_whitepaper-%{whitepaper_version}.tar.bz2
@@ -99,7 +99,7 @@
 David Anderson ander...@redhat.com
 
 %package doc
-License:GFDLv1.2
+License:GFDL-1.2
 Requires:   %{name} = %{version}
 Summary:Documentation for Crash
 Group:  Development/Tools/Debuggers
@@ -114,7 +114,7 @@
 David Anderson ander...@redhat.com
 
 %package devel
-License:GPLv2+
+License:GPL-2.0+
 Requires:   %{name} = %{version}
 Summary:Development files for crash
 Group:  Development/Tools/Debuggers
@@ -136,7 +136,7 @@
 %if %build_sial
 
 %package sial
-License:GPLv2+
+License:GPL-2.0+
 Requires:   %{name} = %{version}
 Summary:SIAL extension for crash
 Group:  Development/Tools/Debuggers
@@ -159,7 +159,7 @@
 %if %build_gcore
 
 %package gcore
-License:GPLv2+
+License:GPL-2.0+
 Requires:   %{name} = %{version}
 Summary:Gcore extension for crash
 Group:  Development/Tools/Debuggers
@@ -180,7 +180,7 @@
 
 %package %kmp_pkg
 Group:  System/Kernel
-License:GPL v2 only
+License:GPL-2.0
 Summary:Memory driver for the crash utility
 %if 0%{?suse_version}  920
 Version:%{version}_%{kver_}

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit crash for openSUSE:Factory

2011-11-16 Thread h_root
Hello community,

here is the log from the commit of package crash for openSUSE:Factory checked 
in at 2011-11-16 17:17:34

Comparing /work/SRC/openSUSE:Factory/crash (Old)
 and  /work/SRC/openSUSE:Factory/.crash.new (New)


Package is crash, Maintainer is ptesa...@suse.com

Changes:

--- /work/SRC/openSUSE:Factory/crash/crash.changes  2011-10-14 
09:50:13.0 +0200
+++ /work/SRC/openSUSE:Factory/.crash.new/crash.changes 2011-11-16 
17:17:40.0 +0100
@@ -1,0 +2,5 @@
+Mon Nov  7 20:16:26 UTC 2011 - dm...@suse.com
+
+- Update to crash 6.0.0 from upstream and modifications to compile.
+
+---

Old:

  crash-5.1.6.tar.gz

New:

  crash-6.0.0.tar.gz



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.PgXqnE/_old  2011-11-16 17:17:47.0 +0100
+++ /var/tmp/diff_new_pack.PgXqnE/_new  2011-11-16 17:17:47.0 +0100
@@ -17,7 +17,7 @@
 
 # norootforbuild
 
-%define crash_version  5.1.6
+%define crash_version  6.0.0
 %define whitepaper_version 2003
 %define scripts_version  2008-02-08
 %define gcore_version  2011-09-22

++ crash-5.1.6.tar.gz - crash-6.0.0.tar.gz ++
/work/SRC/openSUSE:Factory/crash/crash-5.1.6.tar.gz 
/work/SRC/openSUSE:Factory/.crash.new/crash-6.0.0.tar.gz differ: char 5, line 1

++ crash-missing-declarations.patch ++
--- /var/tmp/diff_new_pack.PgXqnE/_old  2011-11-16 17:17:47.0 +0100
+++ /var/tmp/diff_new_pack.PgXqnE/_new  2011-11-16 17:17:47.0 +0100
@@ -4,17 +4,17 @@
 This fixes a compilation failure on ppc64.
 
 ---
- gdb-7.0.patch |   10 ++
+ gdb-7.3.1.patch |   10 ++
  1 file changed, 10 insertions(+)
 
 a/gdb-7.0.patch
-+++ b/gdb-7.0.patch
-@@ -1694,3 +1694,13 @@
- add_symbol_to_list (sym, global_symbols);
-   }
- child_die = sibling_die (child_die);
-+--- gdb-7.0/sim/common/gentmap.c.orig
- gdb-7.0/sim/common/gentmap.c
+--- a/gdb-7.3.1.patch
 b/gdb-7.3.1.patch
+@@ -1253,3 +1253,13 @@
+   ./pex-djgpp.$(objext) ./pex-msdos.$(objext) \
+./pex-unix.$(objext) ./pex-win32.$(objext) \
+./putenv.$(objext) \
++--- gdb-7.3.1/sim/common/gentmap.c.orig
+ gdb-7.3.1/sim/common/gentmap.c
 +@@ -2,6 +2,7 @@
 + 
 + #include stdio.h

++ crash-rl_digit_loop-return.patch ++
--- /var/tmp/diff_new_pack.PgXqnE/_old  2011-11-16 17:17:47.0 +0100
+++ /var/tmp/diff_new_pack.PgXqnE/_new  2011-11-16 17:17:47.0 +0100
@@ -1,13 +1,13 @@
 ---
- gdb-7.0.patch |9 +
+ gdb-7.3.1.patch |9 +
  1 file changed, 9 insertions(+)
 
 a/gdb-7.0.patch
-+++ b/gdb-7.0.patch
-@@ -1201,6 +1201,15 @@
+--- a/gdb-7.3.1.patch
 b/gdb-7.3.1.patch
+@@ -1177,6 +1177,15 @@
   extern int rl_show_char PARAMS((int));
- --- gdb-7.0/readline/misc.c.orig
- +++ gdb-7.0/readline/misc.c
+ --- gdb-7.3.1/readline/misc.c.orig
+ +++ gdb-7.3.1/readline/misc.c
 +@@ -212,6 +212,8 @@ rl_digit_loop ()
 +   if (r = 0 || (RL_ISSTATE (RL_STATE_NUMERICARG) == 0))
 + break;

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit crash for openSUSE:Factory

2011-10-14 Thread h_root

Hello community,

here is the log from the commit of package crash for openSUSE:Factory
checked in at Fri Oct 14 09:47:09 CEST 2011.




--- openSUSE:Factory/crash/crash.changes2011-10-13 00:12:09.0 
+0200
+++ /mounts/work_src_done/STABLE/crash/crash.changes2011-10-13 
15:40:34.0 +0200
@@ -1,0 +2,6 @@
+Thu Oct 13 13:39:36 UTC 2011 - ptesa...@suse.cz
+
+- crash-debuginfo-compressed.patch: Search debuginfo files in the
+  same directory as the original gzipped kernel image (bnc#723639).
+
+---

calling whatdependson for head-i586


New:

  crash-debuginfo-compressed.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.UUj4Yv/_old  2011-10-14 09:47:04.0 +0200
+++ /var/tmp/diff_new_pack.UUj4Yv/_new  2011-10-14 09:47:04.0 +0200
@@ -57,6 +57,7 @@
 Patch6: %{name}-crosscrash-hint.diff
 Patch7: %{name}-rl_digit_loop-return.patch
 Patch8: %{name}-missing-declarations.patch
+Patch9: %{name}-debuginfo-compressed.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison flex ncurses-devel zlib-devel
 Requires:   /usr/bin/nm
@@ -207,6 +208,7 @@
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
+%patch9 -p1
 ## SIAL patches
 cd sial-scripts-%{scripts_version}
 %patch90 -p1

++ crash-debuginfo-compressed.patch ++
From: Petr Tesarik ptesa...@suse.cz
Subject: Search debuginfo files in the original directory
References: bnc#723639

If debuginfo is in a separate file and the kernel image is compressed,
then it should be found in the same directory as the original (compressed)
image, not in the directory with the uncompressed image (TMPDIR).

Signed-off-by: Petr Tesarik ptesa...@suse.cz

---
 symbols.c |   17 ++---
 1 file changed, 10 insertions(+), 7 deletions(-)

--- a/symbols.c
+++ b/symbols.c
@@ -182,9 +182,9 @@ symtab_init(void)
 *  Pull a bait-and-switch on st-bfd if we've got a separate
  *  .gnu_debuglink file that matches the CRC. Not done for kerntypes.
 */
-   if (!(LKCD_KERNTYPES()) 
-   !(bfd_get_file_flags(st-bfd)  HAS_SYMS)) {
-   if (!check_gnu_debuglink(st-bfd))
+   if (!(LKCD_KERNTYPES())) {
+   if (!check_gnu_debuglink(st-bfd) 
+   !(bfd_get_file_flags(st-bfd)  HAS_SYMS))
no_debugging_data(FATAL);
}

@@ -243,13 +243,16 @@ check_gnu_debuglink(bfd *bfd)
char *contents;
int crc_offset; 
unsigned long crc32;
+   char *namelist;
char *dirname;
char *namelist_debug;
 char **matching;
 
+   namelist = pc-namelist_orig ? pc-namelist_orig : pc-namelist;
+
 sect = bfd_get_section_by_name(bfd, .gnu_debuglink);
if (!sect) {
-   error(INFO, %s: no .gnu_debuglink section\n, pc-namelist);
+   error(INFO, %s: no .gnu_debuglink section\n, namelist);
return FALSE;
}
 
@@ -270,14 +273,14 @@ check_gnu_debuglink(bfd *bfd)
contents, crc32);
 
if ((pc-debuginfo_file = (char *)
-   malloc(((strlen(pc-namelist) + strlen(/.debug/) +
+   malloc(((strlen(namelist) + strlen(/.debug/) +
+ strlen(.debug) + strlen( /usr/lib/debug/boot/ ))*10)
+ strlen(pc-namelist_debug ? pc-namelist_debug :  ))) == NULL)
error(FATAL, debuginfo file name malloc: %s\n, 
strerror(errno));
 
-   dirname = GETBUF(strlen(pc-namelist)+1);
-   strcpy(dirname, pc-namelist);
+   dirname = GETBUF(strlen(namelist)+1);
+   strcpy(dirname, namelist);
 
for (i = strlen(dirname)-1; i = 0; i--)
{
continue with q...



Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit crash for openSUSE:Factory

2011-10-12 Thread h_root

Hello community,

here is the log from the commit of package crash for openSUSE:Factory
checked in at Thu Oct 13 00:09:16 CEST 2011.




--- openSUSE:Factory/crash/crash.changes2011-10-02 09:53:29.0 
+0200
+++ /mounts/work_src_done/STABLE/crash/crash.changes2011-10-11 
15:35:04.0 +0200
@@ -1,0 +2,16 @@
+Tue Oct 11 13:24:38 UTC 2011 - ptesa...@suse.cz
+
+- Add Requires: kernel-$flavor to new-style KMP packages.
+- Provide old-styl crash-kmp (for SLES9).
+
+---
+Mon Oct 10 16:04:01 UTC 2011 - ptesa...@suse.cz
+
+- Build the crash memory driver kernel module as a KMP.
+
+---
+Mon Oct 10 15:48:55 UTC 2011 - ptesa...@suse.cz
+
+- Change the license from GPLv3 (only) to GPLv3 or higher.
+
+---

calling whatdependson for head-i586


New:

  crash-kmp-preamble
  depmod.sh
  get-kernel-flavors.sh
  mkinitrd.sh



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.rjWQFp/_old  2011-10-13 00:09:10.0 +0200
+++ /var/tmp/diff_new_pack.rjWQFp/_new  2011-10-13 00:09:10.0 +0200
@@ -33,17 +33,22 @@
 %else
 %define build_gcore 0
 %endif
+%define build_kmp 1
 Url:http://people.redhat.com/anderson/
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
 Version:%{crash_version}
 Release:1
-License:GPLv3; GFDLv1.2
+License:GPLv3+; GFDLv1.2
 Group:  Development/Tools/Debuggers
 Source: %{name}-%{version}.tar.gz
 Source2:crash_whitepaper-%{whitepaper_version}.tar.bz2
 Source3:README.SUSE
 Source4:sial-scripts-%{scripts_version}.tar.bz2
 Source5:gcore-%{gcore_version}.tar.bz2
+Source95:   get-kernel-flavors.sh
+Source96:   depmod.sh
+Source97:   mkinitrd.sh
+Source98:   %{name}-kmp-preamble
 Source99:   rpmlintrc
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 Patch1: %{name}-make-emacs-default.diff
@@ -58,6 +63,27 @@
 ExclusiveArch:  %ix86 x86_64 ia64 s390 s390x ppc64 alpha
 # Source code says it can do ppc32. Excluded here?
 ExcludeArch:ppc
+# crash driver KMP
+%if %build_kmp
+BuildRequires:  kernel-syms module-init-tools
+%if 0%{?suse_version} = 1130
+BuildRequires:  kernel-devel
+%endif
+%endif
+
+%if %build_kmp
+%if 0%{?suse_version} = 920
+%suse_kernel_module_package -n crash -p %_sourcedir/%{name}-kmp-preamble um
+%define arch %_target_cpu
+%define kmp_pkg KMP
+%else
+%define kver %(rpm -q --qf '%{VERSION}-%{RELEASE}' kernel-source)
+%define kver_ %(rpm -q --qf '%{VERSION}_%{RELEASE}' kernel-source)
+%define arch %(echo %_target_cpu | sed -e 's/i.86/i386/')
+%define flavors_to_build %(sh %_sourcedir/get-kernel-flavors.sh %arch)
+%define kmp_pkg kmp
+%endif
+%endif
 
 %description
 The core analysis suite is a self-contained tool that can be used to
@@ -149,6 +175,30 @@
 
 %endif
 
+%if %build_kmp
+
+%package %kmp_pkg
+Group:  System/Kernel
+License:GPL v2 only
+Summary:Memory driver for the crash utility
+%if 0%{?suse_version}  920
+Version:%{version}_%{kver_}
+
+
+Requires:   kernel = %kver
+%endif
+
+%description %kmp_pkg
+To run the crash utility on a live system, a memory device must be present.
+Due to many limitations of the /dev/mem interface, a separate kernel module
+is provided to access all RAM through the /dev/crash device.
+
+Authors:
+
+David Anderson ander...@redhat.com
+
+%endif
+
 %prep
 %setup -q -a 2 -a 4
 %patch1 -p1
@@ -166,11 +216,21 @@
 tar xfvj %{S:5}
 cd -
 cp %{S:3} .
+mkdir kbuild
 
 %build
 export CFLAGS=$RPM_OPT_FLAGS -fno-builtin-memset -fno-strict-aliasing
 make RPMPKG=`cat .rh_rpm_package` %{?jobs:-j%jobs}
 make extensions %{?jobs:-j%jobs}
+%if %build_kmp
+export EXTRA_CFLAGS='-DVERSION=\%version\'
+for flavor in %flavors_to_build; do
+rm -rf kbuild/$flavor
+cp -r memory_driver kbuild/$flavor
+make -C /usr/src/linux-obj/%arch/$flavor modules \
+  M=$PWD/kbuild/$flavor
+done
+%endif
 
 %install
 mkdir -p %{buildroot}%{_bindir}
@@ -195,6 +255,41 @@
 install -m 0644 sial-scripts-%{scripts_version}/*.c \
 $RPM_BUILD_ROOT/%{_datadir}/sial/crash
 %endif
+%if %build_kmp
+# memory driver module
+export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
+export INSTALL_MOD_DIR=updates
+for flavor in %flavors_to_build; do
+ make -C /usr/src/linux-obj/%arch/$flavor modules_install \
+   M=$PWD/kbuild/$flavor
+done
+
+# Ugly SLES9-style KMP
+%if 0%{?suse_version}  920
+set -- $(ls $RPM_BUILD_ROOT/lib/modules)
+KERNELRELEASES=$*
+
+set -- $(find $RPM_BUILD_ROOT/lib/modules -type f -name '*.ko' \
+| sed -e 's:.*/::' -e 's:\.ko$::' | sort -u)
+MODULES=$*
+
+(   cat -EOF
+   # IMPORTANT: Do not change the 

commit crash for openSUSE:Factory

2011-10-02 Thread h_root

Hello community,

here is the log from the commit of package crash for openSUSE:Factory
checked in at Sun Oct 2 09:53:29 CEST 2011.




--- openSUSE:Factory/crash/crash.changes2011-09-23 01:54:15.0 
+0200
+++ /mounts/work_src_done/STABLE/crash/crash.changes2011-09-22 
23:45:30.0 +0200
@@ -1,0 +2,7 @@
+Thu Sep 22 19:02:09 UTC 2011 - lchiqui...@suse.com
+
+- Add the gcore extension as a subpackage for i386 and x86_64.
+  This extension can be used to create a core dump file of a
+  user-space task that was running in a kernel dumpfile.
+
+---

calling whatdependson for head-i586


New:

  gcore-2011-09-22.tar.bz2



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.z8wlvu/_old  2011-10-02 09:53:25.0 +0200
+++ /var/tmp/diff_new_pack.z8wlvu/_new  2011-10-02 09:53:25.0 +0200
@@ -20,6 +20,7 @@
 %define crash_version  5.1.6
 %define whitepaper_version 2003
 %define scripts_version  2008-02-08
+%define gcore_version  2011-09-22
 
 Name:   crash
 %ifarch ppc
@@ -27,6 +28,11 @@
 %else
 %define build_sial 1
 %endif
+%ifarch %ix86 x86_64
+%define build_gcore 1
+%else
+%define build_gcore 0
+%endif
 Url:http://people.redhat.com/anderson/
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
 Version:%{crash_version}
@@ -37,6 +43,7 @@
 Source2:crash_whitepaper-%{whitepaper_version}.tar.bz2
 Source3:README.SUSE
 Source4:sial-scripts-%{scripts_version}.tar.bz2
+Source5:gcore-%{gcore_version}.tar.bz2
 Source99:   rpmlintrc
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
 Patch1: %{name}-make-emacs-default.diff
@@ -122,6 +129,26 @@
 
 %endif
 
+%if %build_gcore
+
+%package gcore
+License:GPLv2+
+Requires:   %{name} = %{version}
+Summary:Gcore extension for crash
+Group:  Development/Tools/Debuggers
+
+%description gcore
+Create a core dump file of a user-space task that was running in a
+kernel dumpfile. 
+
+
+
+Authors:
+
+Daisuke Hatayama  d.hatay...@jp.fujitsu.com
+
+%endif
+
 %prep
 %setup -q -a 2 -a 4
 %patch1 -p1
@@ -134,6 +161,10 @@
 cd sial-scripts-%{scripts_version}
 %patch90 -p1
 cd -
+## gcore extension
+cd extensions
+tar xfvj %{S:5}
+cd -
 cp %{S:3} .
 
 %build
@@ -153,8 +184,11 @@
 # permissions
 chmod 644 COPYING3
 # extensions
-%if %build_sial
 mkdir -p $RPM_BUILD_ROOT/%{_libdir}/crash/extensions
+%if %build_gcore
+install -m 0644 extensions/gcore.so $RPM_BUILD_ROOT/%{_libdir}/crash/extensions
+%endif
+%if %build_sial
 install -m 0644 extensions/sial.so $RPM_BUILD_ROOT/%{_libdir}/crash/extensions
 # scripts
 mkdir -p $RPM_BUILD_ROOT/%{_datadir}/sial/crash
@@ -170,6 +204,8 @@
 %{_bindir}/crash
 %{_mandir}/man8/crash.8*
 %doc README README.SUSE COPYING3
+%dir %{_libdir}/crash
+%dir %{_libdir}/crash/extensions
 
 %files devel
 %defattr(-,root,root)
@@ -178,6 +214,7 @@
 %files doc
 %defattr(-,root,root)
 %doc crash_whitepaper/*
+
 %if %build_sial
 
 %files sial
@@ -186,8 +223,14 @@
 %{_libdir}/crash/extensions/sial.so
 %{_datadir}/sial/crash
 %dir %{_datadir}/sial
-%dir %{_libdir}/crash
-%dir %{_libdir}/crash/extensions
+%endif
+
+%if %build_gcore
+
+%files gcore
+%defattr(-,root,root)
+%{_libdir}/crash/extensions/gcore.so
+%doc extensions/README.gcore
 %endif
 
 %changelog

continue with q...



Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit crash for openSUSE:Factory

2011-06-15 Thread h_root

Hello community,

here is the log from the commit of package crash for openSUSE:Factory
checked in at Wed Jun 15 09:12:46 CEST 2011.




--- crash/crash.changes 2011-05-25 16:55:32.0 +0200
+++ /mounts/work_src_done/STABLE/crash/crash.changes2011-06-10 
18:18:32.0 +0200
@@ -1,0 +2,46 @@
+Fri Jun 10 16:17:08 UTC 2011 - ptesa...@suse.de
+
+- Put correct licenses in the RPM header.
+
+---
+Fri Jun 10 13:53:07 UTC 2011 - ptesa...@suse.de
+
+- crash-missing-declarations.patch: re-apply the patch, because
+  this is still not fixed upstreams and still breaks ppc64 builds.
+
+---
+Thu Jun  9 14:40:50 UTC 2011 - ptesa...@suse.de
+
+- Update to 5.1.6
+  o add kmem -o option (each CPU's per-cpu offset value)
+  o remove obsolete kmem [-[l|L][a|i]] options from the kmem help
+page
+  o add kmem -g [flags] option to display the enumerator value of
+bits in the page structure's flags field
+  o add rd -a option to display printable ASCII data only
+  o add rd -N option to use network byte order
+  o extend mach to display the size and address of each per-cpu
+IRQ stack and per-cpu exception stack, if they exist
+  o extend kmem address to display module name if appropriate
+  o arm: support CONFIG_SPARSEMEM
+  o fixes to enable Linux 3.x numbering
+  o x86: fix search -k if the first memmap page struct does not
+map to physical address 0
+  o fix search -k for kernels with multiple non-sequential NUMA
+nodes, memory holes between them and no memmap page structures
+refering to the holes
+  o fix kmem -s address for addresses in a non-first page of
+a compound slab and kernels compiled with CONFIG_SLUB and
+CONFIG_PAGEFLAGS_EXTENDED
+  o fix NR_SECTION_ROOTS to ensure a non-zero value
+  o arm: fix a potential double free in read_module_unwind_table()
+  o fix compiler warnings when building with make warn
+  o fix several typos in the crash(8) man page
+  o see http://people.redhat.com/anderson/crash.changelog.html for
+the complete changelog
+- drop crash-xen-x86_64-increase-max-vcpus.patch: superseded by
+  mainline's allocating VCPU structures dynamically
+- refresh all patches
+- specfile cleanups
+
+---

calling whatdependson for head-i586


Old:

  crash-5.1.5.tar.gz
  crash-xen-x86_64-increase-max-vcpus.patch

New:

  crash-5.1.6.tar.gz
  crash-missing-declarations.patch



Other differences:
--
++ crash.spec ++
--- /var/tmp/diff_new_pack.Zn4vMx/_old  2011-06-15 09:10:39.0 +0200
+++ /var/tmp/diff_new_pack.Zn4vMx/_new  2011-06-15 09:10:39.0 +0200
@@ -17,7 +17,7 @@
 
 # norootforbuild
 
-%define crash_version  5.1.5
+%define crash_version  5.1.6
 %define whitepaper_version 2003
 %define scripts_version  2008-02-08
 
@@ -31,9 +31,9 @@
 Summary:Crash utility for live systems; netdump, diskdump, LKCD or 
mcore dumpfiles
 Version:%{crash_version}
 Release:1
-License:GFDLv1.2
+License:GPLv3; GFDLv1.2
 Group:  Development/Tools/Debuggers
-Source: %{name}-%{crash_version}.tar.gz
+Source: %{name}-%{version}.tar.gz
 Source2:crash_whitepaper-%{whitepaper_version}.tar.bz2
 Source3:README.SUSE
 Source4:sial-scripts-%{scripts_version}.tar.bz2
@@ -44,7 +44,7 @@
 Patch4: %{name}-sles9-time.patch
 Patch6: %{name}-crosscrash-hint.diff
 Patch7: %{name}-rl_digit_loop-return.patch
-Patch13:%{name}-xen-x86_64-increase-max-vcpus.patch
+Patch8: %{name}-missing-declarations.patch
 Patch90:%{name}-sial-ps-2.6.29.diff
 BuildRequires:  bison flex ncurses-devel zlib-devel
 Requires:   /usr/bin/nm
@@ -80,7 +80,7 @@
 David Anderson ander...@redhat.com
 
 %package devel
-License:LGPLv2.1+
+License:GPLv2+
 Requires:   %{name} = %{version}
 Summary:Development files for crash
 Group:  Development/Tools/Debuggers
@@ -102,7 +102,7 @@
 %if %build_sial
 
 %package sial
-License:GPLv2+ ; LGPLv2.1+
+License:GPLv2+
 Requires:   %{name} = %{version}
 Summary:SIAL extension for crash
 Group:  Development/Tools/Debuggers
@@ -123,13 +123,13 @@
 %endif
 
 %prep
-%setup -q -n %{name}-%{crash_version} -a 2 -a 4
+%setup -q -a 2 -a 4
 %patch1 -p1
 %patch2 -p1
 %patch4 -p1
 %patch6 -p1
 %patch7 -p1
-%patch13 -p1
+%patch8 -p1
 ## SIAL patches
 cd sial-scripts-%{scripts_version}
 %patch90 -p1

++ crash-5.1.5.tar.gz - crash-5.1.6.tar.gz ++
crash/crash-5.1.5.tar.gz /mounts/work_src_done/STABLE/crash/crash-5.1.6.tar.gz 
differ: char 5, line 1

++ crash-crosscrash-hint.diff ++
--- /var/tmp/diff_new_pack.Zn4vMx/_old  2011-06-15 09:10:39.0 +0200
+++