Skip to content

Commit 9eb972b

Browse files
committed
Run PHPUnit under gdb to capture segfault backtrace
1 parent 9c0b24d commit 9eb972b

1 file changed

Lines changed: 10 additions & 3 deletions

File tree

.github/workflows/phpunit-tests-turso.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,16 @@ jobs:
317317
-ex "bt" \
318318
--args "$(command -v php)"
319319
320-
- name: Run PHPUnit tests against Turso DB
320+
- name: Run PHPUnit tests against Turso DB (under gdb)
321321
continue-on-error: true
322322
env:
323-
LD_PRELOAD: ${{ steps.preload.outputs.value }}
323+
PRELOAD: ${{ steps.preload.outputs.value }}
324324
working-directory: packages/mysql-on-sqlite
325-
run: php ./vendor/bin/phpunit -c ./phpunit.xml.dist
325+
run: |
326+
gdb -batch \
327+
-ex "set confirm off" \
328+
-ex "set pagination off" \
329+
-ex "set environment LD_PRELOAD=$PRELOAD" \
330+
-ex "run ./vendor/bin/phpunit -c ./phpunit.xml.dist" \
331+
-ex "bt 30" \
332+
--args "$(command -v php)" || true

0 commit comments

Comments
 (0)