summaryrefslogtreecommitdiffstats
path: root/tests/backtrace.c
diff options
context:
space:
mode:
authorYonghong Song <[email protected]>2019-01-29 13:33:03 -0800
committerMark Wielaard <[email protected]>2019-01-31 22:18:10 +0100
commitcfaf954701fdb74f8d1da2a8f8f4ddb666e39b34 (patch)
tree7d42b2016784a4b1e7990c093e779c2dd0fea020 /tests/backtrace.c
parentcd7ded3df43f655af945c869976401a602e46fcd (diff)
tests: parse inode in /proc/pid/maps/correctly in run-backtrace-data.sh
The backtrace-data.c parsed the inode in /proc/pid/maps with format "%*x". This caused failure if inode is big. For example, 7f269223d000-7f269226b000 r-xp 00000000 00:50 10224326387095067468 /home/... The error likes below: -bash-4.4$ cat run-backtrace-data.sh.log backtrace-data: /home/engshare/elfutils/0.174/src/elfutils-0.174/tests/backtrace-data.c:110: maps_lookup: Assertion `errno == 0' failed. /home/engshare/elfutils/0.174/src/elfutils-0.174/tests/test-subr.sh: line 84: 3123578 Aborted (core dumped) LD_LIBRARY_PATH="${built_library_path}${LD_LIBRARY_PATH:+:}$LD_LIBRARY_PATH" $VALGRIND_CMD "$@" data: no main -bash-4.4$ The reason is errno is ERANGE. Fix the test with inode format string "%*u" as inode here is presented as decimal numbers. Suggested-by: Mark Wielaard <[email protected]> Signed-off-by: Yonghong Song <[email protected]>
Diffstat (limited to 'tests/backtrace.c')
0 files changed, 0 insertions, 0 deletions