Skip to content
Snippets Groups Projects

Extend setupTask.sh with support for running task interactively in an xterm through gdb

@@ -164,7 +164,7 @@ exec_gaudirun() {
if [[ ! -z ${PRELOAD_SANITIZER_LIB-} ]]; then
LD_PRELOAD=${PRELOAD_SANITIZER_LIB}
#else
# We don't use tcmalloc as we suspect it's the cause of
# We don't use tcmalloc as we suspect it's the cause of
# random crashes correlated between nodes.
# LD_PRELOAD=libtcmalloc.so
fi
@@ -191,6 +191,11 @@ exec_gaudirun() {
cmd+=(
setarch x86_64 --addr-no-randomize bash -c "LD_PRELOAD=${LD_PRELOAD}"' exec -a "$0" "$@"'
${UTGID}
)
if [[ ${PARTITION} == "TEST"* && ! -z ${INTERACTIVE_GDB_IN_XTERM-} ]]; then
cmd+=( xterm -geometry 180x50 -e gdb -ex run --args )
fi
cmd+=(
${executable}
`which gaudirun.py`
--application=$application
Loading