summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--examples/not_oops3.right1
-rw-r--r--examples/not_oops3.test15
-rw-r--r--lib/Plugins/KerneloopsSysLog.cpp2
3 files changed, 17 insertions, 1 deletions
diff --git a/examples/not_oops3.right b/examples/not_oops3.right
new file mode 100644
index 00000000..5f2c00f0
--- /dev/null
+++ b/examples/not_oops3.right
@@ -0,0 +1 @@
+dumpoops: found oopses: 0
diff --git a/examples/not_oops3.test b/examples/not_oops3.test
new file mode 100644
index 00000000..759c9c48
--- /dev/null
+++ b/examples/not_oops3.test
@@ -0,0 +1,15 @@
+Mar 16 23:27:35 localhost kernel: agpgart-ati 0000:00:00.0: AGP 2.0 bridge
+Mar 16 23:27:35 localhost kernel: agpgart-ati 0000:00:00.0: putting AGP V2 device into 4x mode
+Mar 16 23:27:35 localhost kernel: pci 0000:01:05.0: putting AGP V2 device into 4x mode
+Mar 16 23:27:36 localhost kernel: [drm] Setting GART location based on new memory map
+Mar 16 23:27:36 localhost kernel: [drm] Loading R100 Microcode
+Mar 16 23:27:36 localhost kernel: platform radeon_cp.0: firmware: requesting radeon/R100_cp.bin
+Mar 16 23:27:37 localhost kernel: [drm] writeback test succeeded in 1 usecs
+Mar 16 23:28:08 localhost gnome-session[1443]: WARNING: Could not launch application 'gnome-power-manager.desktop': Unable to start application: Failed to execute child process "gnome-power-manager" (No such file or directory)
+Mar 16 23:28:33 localhost gnome-keyring-daemon[1627]: couldn't set environment variable in session: The name org.gnome.SessionManager was not provided by any .service files
+Mar 16 23:28:53 localhost setroubleshoot: SELinux not enabled, setroubleshootd exiting...
+Mar 16 23:30:23 localhost ntpd[1330]: synchronized to 77.78.110.71, stratum 2
+Mar 16 23:30:23 localhost ntpd[1330]: kernel time sync status change 2001
+Mar 16 23:32:46 localhost hald: mounted /dev/sdb1 on behalf of uid 500
+Mar 16 23:34:51 localhost kernel: ALSA sound/core/pcm_lib.c:181: BUG: pcmC0D0p:0, pos = 0x4000, buffer size = 0x4000, period size = 0x400
+Mar 16 23:34:55 localhost kernel: ALSA sound/core/pcm_lib.c:181: BUG: pcmC0D0p:0, pos = 0x4000, buffer size = 0x4000, period size = 0x400
diff --git a/lib/Plugins/KerneloopsSysLog.cpp b/lib/Plugins/KerneloopsSysLog.cpp
index 7c605050..a5ee68b9 100644
--- a/lib/Plugins/KerneloopsSysLog.cpp
+++ b/lib/Plugins/KerneloopsSysLog.cpp
@@ -353,7 +353,7 @@ next_line:
} /* while (i < linecount) */
/* process last oops if we have one */
- if (oopsstart >= 0) {
+ if (oopsstart >= 0 && inbacktrace) {
int oopsend = i-1;
VERB3 log("End of oops at line %d (end of file): '%s'", oopsend, lines_info[oopsend].ptr);
if (record_oops(oopses, lines_info, oopsstart, oopsend))