Skip to content

Commit 7f00df3

Browse files
DO-NOT-MERGE: Enable malloc debugging for ex_MQ_pixel_split
1 parent 48c79f6 commit 7f00df3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

examples/MQ/pixelSimSplit/run/scripts/test-splitMQ.sh.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,10 @@ for DEVICE in "${!DEVICES[@]}"
8282
do
8383
LOGS[$DEVICE]="$(pwd)/$DEVICE.log"
8484
printf "%12s: " $DEVICE
85+
export LD_PRELOAD=libc_malloc_debug.so
86+
export MALLOC_CHECK_=3
8587
${DEVICES[$DEVICE]} > ${LOGS[$DEVICE]} 2>&1 & # Run device
88+
unset LD_PRELOAD MALLOC_CHECK_
8689
PIDS[$DEVICE]=$!
8790
echo "PID=${PIDS[$DEVICE]}, LOG=${LOGS[$DEVICE]}"
8891
done

0 commit comments

Comments
 (0)