Skip to content

Commit bee158b

Browse files
committed
Dump GDB backtraces on segfault
1 parent e521dd4 commit bee158b

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

ci/gpu/build.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,15 @@ gpuci_mamba_retry install -y -c ${LIBCUCIM_BLD_PATH} -c ${CUCIM_BLD_PATH} -c rap
8888
cucim
8989

9090
gpuci_logger "Testing cuCIM import"
91-
python -c 'import cucim'
91+
ulimit -c unlimited
92+
cat /proc/sys/kernel/core_pattern
93+
cat /var/log/apport.log || true
94+
python -c 'import cucim' || true
95+
if [ -e core ]; then
96+
gdb -ex 'bt' -ex 'quit' `which python` coredump
97+
fi
98+
cat /var/log/apport.log || true
99+
ls -al /var/crash/ || true
92100

93101
gpuci_logger "Check versions"
94102
python --version

conda/recipes/cucim/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Copyright (c) 2021, NVIDIA CORPORATION.
22

3-
CUCIM_BUILD_TYPE=${CUCIM_BUILD_TYPE:-release}
3+
CUCIM_BUILD_TYPE=${CUCIM_BUILD_TYPE:-rel-debug}
44

55
echo "CC : ${CC}"
66
echo "CXX : ${CXX}"

conda/recipes/libcucim/build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Copyright (c) 2021, NVIDIA CORPORATION.
22

3-
CUCIM_BUILD_TYPE=${CUCIM_BUILD_TYPE:-release}
4-
3+
CUCIM_BUILD_TYPE=${CUCIM_BUILD_TYPE:-rel-debug}
4+
echo "#####################################"
5+
echo "cat /proc/sys/kernel/core_pattern : $(cat /proc/sys/kernel/core_pattern)"
56
echo "CC : ${CC}"
67
echo "CXX : ${CXX}"
78
echo "CUDAHOSTCXX : ${CUDAHOSTCXX}"

python/cucim/src/cucim/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,17 @@
3838
# python3: Relink `/usr/lib/x86_64-linux-gnu/libnccl.so.2.8.3' with `/lib/x86_64-linux-gnu/librt.so.1' for IFUNC symbol `clock_gettime'
3939
# Segmentation fault
4040
try:
41+
print("Trying to import cupy...")
4142
import cupy
43+
print("Importing cupy done.")
4244
_is_cupy_available = True
4345
except ImportError:
4446
pass
4547

4648
try:
49+
print("Trying to import clara...")
4750
from .clara import CuImage, __version__, cli
51+
print("Importing clara done.")
4852
_is_clara_available = True
4953
except ImportError:
5054
from ._version import get_versions

0 commit comments

Comments
 (0)