Source: procps
Version: 2:4.0.6-2
Tags: ftbfs patch
User: [email protected]
Usertags: alpha
Severity: important

procps FTBFS on Alpha in the pmap test with [1]

                === pmap tests ===

Schedule of variations:
    unix

Running target unix
Using /usr/share/dejagnu/baseboards/unix.exp as board description file for 
target.
Using /usr/share/dejagnu/config/unix.exp as generic interface file for target.
Using /build/reproducible-path/procps-4.0.6/testsuite/config/unix.exp as 
tool-and-target-specific interface file.
Running /build/reproducible-path/procps-4.0.6/testsuite/pmap.test/pmap.exp ...
FAIL: pmap printing names provided by kernel (--use-kernel-name) (items eof)
FAIL: pmap printing names provided by kernel (-k) (items eof)

The reason for the test failure is because the test suite assumes one
of the vdso or vsyscall kernel interfaces will be memory mapped into
the process memory space, however alpha (and presumably hppa and
sparc64 too) does not have vdso or vsyscall.  On Alpha the only
named kernel memory mapped facilities are the stack and the heap.  I
have attached a patch that updates the test to allow "[heap]" in
addition to "[vdso]" "[vsyscall]" thus generalising the test to be
valid also for arches without vdso and vsyscall.

Cheers,
Michael.

[1] 
https://buildd.debian.org/status/fetch.php?pkg=procps&arch=alpha&ver=2%3A4.0.6-2&stamp=1782871961&raw=0
--- a/testsuite/pmap.test/pmap.exp
+++ b/testsuite/pmap.test/pmap.exp
@@ -14,7 +14,7 @@
 set pmap_std_items "\(\[0-9a-f\]+\\s+\\d+K \[rwx-\]{5}\\s+\\S+\[^\\r\]+\\s*\)+"
 set pmap_device_items "\(\[0-9a-f\]+\\s+\\d+ 
\[rwx-\]{5}\\s+\[0-9a-f\]+\\s+\[0-9a-f\]{3}:\[0-9a-f\]{5}\\s+\\S+\[^\\r\]+\\s*\)+"
 set pmap_ext_items "\(\[0-9a-f\]+\\s+\\d+\\s+\\d+\\s+\\d+ 
\[rwx-\]{5}\\s+\\S+\[^\\r\]+\\s*\)+"
-set pmap_kernel_items "\(\[0-9a-f\]+\\s+\\d+K 
\[rwx-\]{5}\\s+\\\[(vdso|vsyscall)\\\]\\s*\)+"
+set pmap_kernel_items "\(\[0-9a-f\]+\\s+\\d+K 
\[rwx-\]{5}\\s+\\\[(vdso|vsyscall|heap)\\\]\\s*\)+"
 
 set pmap_std_footer "total\\s+\\d+K\\s*\$"
 set pmap_device_footer 
"mapped:\\s+\\d+K\\s+writeable\/private:\\s+\\d+K\\s+shared:\\s+\\d+K\\s*\$"

Reply via email to