Skip to content

Commit 86d752e

Browse files
committed
[temp] probe: print the fault, not the command that asks for it
1 parent 946826d commit 86d752e

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

‎.github/workflows/probe-win-unit-av.yml‎

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,14 @@ jobs:
7777
PY
7878
)
7979
echo "args=$args"
80-
echo "--- with the launch's arguments"
81-
"$cdb" -cf cdb.txt "$(cygpath -w "$exe")" $args > cdb1.log 2>&1
82-
grep -a -n '==AV==' cdb1.log | head -2
83-
sed -n '/==AV==/,$p' cdb1.log | head -150
84-
if ! grep -aq '==AV==' cdb1.log; then
85-
tail -30 cdb1.log
86-
echo "--- with no arguments"
87-
"$cdb" -cf cdb.txt "$(cygpath -w "$exe")" > cdb2.log 2>&1
88-
sed -n '/==AV==/,$p' cdb2.log | head -150
89-
grep -aq '==AV==' cdb2.log || tail -30 cdb2.log
80+
"$cdb" -cf cdb.txt "$(cygpath -w "$exe")" > cdb1.log 2>&1
81+
echo "cdb exit: $?"; wc -l cdb1.log
82+
n=$(grep -a -n '^==AV==' cdb1.log | head -1 | cut -d: -f1)
83+
echo "AV at line ${n:-none}"
84+
if [ -n "$n" ]; then
85+
sed -n "$((n > 12 ? n - 12 : 1)),$((n + 140))p" cdb1.log
86+
else
87+
tail -40 cdb1.log
9088
fi
9189
- name: the bytes around the caller, and what the objects leave undefined
9290
shell: bash

0 commit comments

Comments
 (0)