Skip to content

Commit

Permalink
Generate back traces
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
azeey committed Oct 13, 2023
1 parent 8a82ace commit 8b52776
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ cd $WORKSPACE
[[ ! -d $WORKSPACE/build ]] && mkdir -p $WORKSPACE/build
cd $WORKSPACE/build
cmake $WORKSPACE/${SOFTWARE_DIR} ${BUILDING_EXTRA_CMAKE_PARAMS} \
-DCMAKE_INSTALL_PREFIX=/usr
-DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_INSTALL_PREFIX=/usr
echo '# END SECTION'
echo '# BEGIN SECTION: compiling'
Expand All @@ -97,6 +97,13 @@ if $GENERIC_ENABLE_TESTS; then
init_stopwatch TEST
mkdir -p \$HOME
make test ARGS="-VV ${BUILDING_EXTRA_MAKETEST_PARAMS}" || true
if [[ -d $WORKSPACE/core_dumps ]]; then
cd $WORKSPACE/core_dumps
for corefile in core.*
do
gdb --batch -ex "thread apply all bt" --core $corefile > ${corefile}_backtrace.txt
done
fi
stop_stopwatch TEST
echo '# END SECTION'
else
Expand Down
1 change: 1 addition & 0 deletions jenkins-scripts/lib/dependencies_archive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ fi
# gnupg apt-key requires gnupg, gnupg2 or gnupg1
BASE_DEPENDENCIES="build-essential \\
cmake \\
gdb \\
debhelper \\
mesa-utils \\
x11-utils \\
Expand Down

0 comments on commit 8b52776

Please sign in to comment.