Skip to content

Commit ef3f78a

Browse files
rh-mcermakMark Wielaard
authored andcommitted
Silence false positive failure of LTP munmap01
After upgrading LTP testsuite version to 20250930 (tracked in bug 510169) munmap01 syscall test started failing. It however turns out that this testcase was substantially rewritten and the failure is expected. This update will silence mentioned false positive. https://bugs.kde.org/show_bug.cgi?id=510292
1 parent 438ca21 commit ef3f78a

3 files changed

Lines changed: 38 additions & 1 deletion

File tree

NEWS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ are not entered into bugzilla tend to get forgotten about or ignored.
207207
509642 Add missing ppc64-linux syswraps
208208
509643 Add missing s390x-linux syswraps
209209
510169 Update the LTP version in valgrind testsuite to 20250930
210+
510292 Silence false positive failure of LTP munmap01
210211
510694 Handle qExecAndArgs remote protocol packet
211212

212213
To see details of a given bug, visit

auxprogs/Makefile.am

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ dist_noinst_SCRIPTS = \
1818
LTP_FILTERS = \
1919
filters/mmap18 \
2020
filters/prctl10 \
21-
filters/select03
21+
filters/select03 \
22+
filters/munmap01
2223

2324
LTP_PATCHES =
2425

auxprogs/filters/munmap01

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/bin/awk -f
2+
3+
# Filter out stuff like the following, since it is expected output for the munmap01 testcase:
4+
5+
# munmap01: unempty log2.filtered:
6+
# ==1980523==
7+
# ==1980523== Process terminating with default action of signal 11 (SIGSEGV): dumping core
8+
# ==1980523== Access not within mapped region at address 0x483F000
9+
# ==1980523== at 0x401F9A: run (munmap01.c:46)
10+
# ==1980523== by 0x40D42F: fork_testrun.isra.0 (tst_test.c:1669)
11+
# ==1980523== by 0x40F894: tst_run_tcases (tst_test.c:2041)
12+
# ==1980523== by 0x401DCD: main (tst_test.h:738)
13+
# ==1980523== If you believe this happened as a result of a stack
14+
# ==1980523== overflow in your program's main thread (unlikely but
15+
# ==1980523== possible), you can try to increase the size of the
16+
# ==1980523== main thread stack using the --main-stacksize= flag.
17+
# ==1980523== The main thread stack size used in this run was 8388608.
18+
# ==1980540==
19+
# ==1980540== Process terminating with default action of signal 11 (SIGSEGV): dumping core
20+
# ==1980540== Access not within mapped region at address 0x4840000
21+
# ==1980540== at 0x401F9A: run (munmap01.c:46)
22+
# ==1980540== by 0x40D42F: fork_testrun.isra.0 (tst_test.c:1669)
23+
# ==1980540== by 0x40F894: tst_run_tcases (tst_test.c:2041)
24+
# ==1980540== by 0x401DCD: main (tst_test.h:738)
25+
# ==1980540== If you believe this happened as a result of a stack
26+
# ==1980540== overflow in your program's main thread (unlikely but
27+
# ==1980540== possible), you can try to increase the size of the
28+
# ==1980540== main thread stack using the --main-stacksize= flag.
29+
# ==1980540== The main thread stack size used in this run was 8388608.
30+
31+
skip = 0
32+
/==[0-9][0-9]*==/ { skip = 1 }
33+
/Process terminating with default action of signal 11/ { skip = 1; skipblock=1 }
34+
/The main thread stack size used in this run was/ { skip = 1; skipblock=0 }
35+
!skip && !skipblock { print }

0 commit comments

Comments
 (0)