Using Core dumps from CI - TileDB-Inc/TileDB-VCF GitHub Wiki
CI has been altered to allow core dumps to be uploaded. To debug a segfault download the build directory artifact.
First extract the build directory:
tar xf linux_tiledb_source_build-build-dir.tar.gz
Next cd into the build directory where the core dump is located:
cd libtiledbvcf/build
You'll need to re-create the sysroot folder hierarchy:
mkdir -p home/vsts/work/1/s/libtiledbvcf/build/libtiledbvcf/src/
mkdir -p home/vsts/work/1/s/libtiledbvcf/build/externals/install/lib/
mkdir -p home/vsts/work/1/s/libtiledbvcf/build/libtiledbvcf/test/
cp libtiledbvcf/src/tiledbvcf home/vsts/work/1/s/libtiledbvcf/build/libtiledbvcf/src/
cp libtiledbvcf/src/libtiledbvcf.so home/vsts/work/1/s/libtiledbvcf/build/libtiledbvcf/src/
cp libtiledbvcf/test/tiledb_vcf_unit home/vsts/work/1/s/libtiledbvcf/build/libtiledbvcf/test/
cp -r externals home/vsts/work/1/s/libtiledbvcf/build/
Lastly start gdb and set sysroot:
gdb
set sysroot .
file libtiledbvcf/test/tiledb_vcf_unit
core-file core