Bug 1018 - Segfault in debug_autotest on Alpine
Summary: Segfault in debug_autotest on Alpine
Status: UNCONFIRMED
Alias: None
Product: DPDK
Classification: Unclassified
Component: other (show other bugs)
Version: unspecified
Hardware: x86 Linux
: Normal normal
Target Milestone: ---
Assignee: Thomas Monjalon
URL:
Depends on:
Blocks:
 
Reported: 2022-05-26 19:37 CEST by Owen Hilyard
Modified: 2023-03-10 11:14 CET (History)
2 users (show)



Attachments

Description Owen Hilyard 2022-05-26 19:37:40 CEST
When running the debug_autotest under meson or as an independent invocation of dpdk_test, there is a segfault inside of rte_dump_stack. This seems to be related to the alpine port of libexecinfo. 

ARM and POWERPC were not tested, since Alpine is currently only run on x86.
Comment 1 Thomas Monjalon 2023-03-09 18:38:31 CET
The libexecinfo support has been completely removed from Alpine, so the test should not crash anymore.

See this commit: bc1db4f45af3 ("build: detect backtrace availability")
Comment 2 David Marchand 2023-03-10 10:51:06 CET
There is another issue.

Running debug_autotest ends up with a timeout.

08:30:00 DPDK_TEST='debug_autotest' /__w/dpdk/dpdk/build/app/test/dpdk-test --no-huge -m 2048 --file-prefix=debug_autotest
--- stdout ---
RTE>>debug_autotest
Child process terminated as expected - Test passed!
--- stderr ---
EAL: Detected CPU lcores: 2
EAL: Detected NUMA nodes: 1
EAL: Detected shared linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/debug_autotest/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: Cannot open VFIO container /dev/vfio/vfio, error 2 (No such file or directory)
EAL: VFIO support could not be initialized
APP: HPET is not enabled, using TSC as default timer
PANIC in test_panic():
Test Debug
test_exit_val


Attaching gdb to it (sorry I lost the output, so this is from memory..), the main thread was waiting for a child process on waitpid(-1).
There may be an issue with musl waitpid..

Note You need to log in before you can comment on or make changes to this bug.