Catch crash if any and print backtrace from every thread
This commit is contained in:
parent
76c39dad0f
commit
3c3fcd60ec
@ -11,6 +11,7 @@ addons:
|
|||||||
- ubuntu-toolchain-r-test
|
- ubuntu-toolchain-r-test
|
||||||
packages:
|
packages:
|
||||||
- g++-4.8
|
- g++-4.8
|
||||||
|
- gdb
|
||||||
|
|
||||||
script: ./CIbuild.sh
|
script: ./CIbuild.sh
|
||||||
|
|
||||||
|
@ -17,11 +17,14 @@ echo "Building..."
|
|||||||
make -j 2;
|
make -j 2;
|
||||||
make -j 2 test ARGS="-V";
|
make -j 2 test ARGS="-V";
|
||||||
|
|
||||||
|
# Create .gdbinit in home directory. Switches off the confirmation on quit
|
||||||
|
echo -e "define hook-quit\n\tset confirm off\nend\n" > ~/.gdbinit
|
||||||
|
|
||||||
echo "Testing..."
|
echo "Testing..."
|
||||||
cd Server/;
|
cd Server/;
|
||||||
touch apiCheckFailed.flag
|
touch apiCheckFailed.flag
|
||||||
if [ "$TRAVIS_CUBERITE_BUILD_TYPE" != "COVERAGE" ]; then
|
if [ "$TRAVIS_CUBERITE_BUILD_TYPE" != "COVERAGE" ]; then
|
||||||
$CUBERITE_PATH << EOF
|
gdb -return-child-result -ex run -ex "bt" -ex "info threads" -ex "thread apply all bt" -ex "quit" --args $CUBERITE_PATH << EOF
|
||||||
load APIDump
|
load APIDump
|
||||||
apicheck
|
apicheck
|
||||||
restart
|
restart
|
||||||
|
Loading…
Reference in New Issue
Block a user