From 9d0132a2fb379f6464ea0c08c98e77d361eb564d Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Tue, 12 Dec 2017 11:58:52 +0100 Subject: pkg/report: move guilty file test data to testdir/ linux_test.go is total mess and very hard to work with. Turns out we had 2 tests that do exactly the same (verify Report), but nobody ever noticed. Move all test data to testdir/. One file per crash. --- pkg/report/testdata/linux/guilty/16 | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 pkg/report/testdata/linux/guilty/16 (limited to 'pkg/report/testdata/linux/guilty/16') diff --git a/pkg/report/testdata/linux/guilty/16 b/pkg/report/testdata/linux/guilty/16 new file mode 100644 index 000000000..458dd0d85 --- /dev/null +++ b/pkg/report/testdata/linux/guilty/16 @@ -0,0 +1,18 @@ +FILE: ipc/util.c + +------------[ cut here ]------------ +WARNING: CPU: 1 PID: 7733 at mm/vmalloc.c:1473 __vunmap+0x1ca/0x300 mm/vmalloc.c:1472() +Trying to vfree() bad address (ffff8800b3254fc0) +Kernel panic - not syncing: panic_on_warn set ... + +Call Trace: + [] __dump_stack lib/dump_stack.c:15 [inline] + [] dump_stack+0xc1/0x124 lib/dump_stack.c:51 + [] __panic+0x11f/0x30b kernel/panic.c:179 + [] panic_saved_regs+0xba/0xba kernel/panic.c:280 + [] warn_slowpath_common+0x12f/0x150 kernel/panic.c:642 + [] warn_slowpath_fmt+0xb0/0xe0 kernel/panic.c:658 + [] __vunmap+0x1ca/0x300 mm/vmalloc.c:1472 + [] vfree+0x55/0xe0 mm/vmalloc.c:1533 + [] ipc_free+0x44/0x50 ipc/util.c:420 + [] semctl_main+0x20d/0x1ba0 ipc/sem.c:1496 -- cgit mrf-deployment