travis: gdb
authorMichael Wallner <mike@php.net>
Thu, 7 Sep 2017 15:13:17 +0000 (17:13 +0200)
committerMichael Wallner <mike@php.net>
Thu, 7 Sep 2017 15:13:17 +0000 (17:13 +0200)
.travis.yml
scripts/gen_travis_yml.php

index b781d2054f85c1a904381c4e8c584bd4c8eb5528..5bade48bce1eed31c3690995c67d1a69ec85ec1b 100644 (file)
@@ -9,14 +9,15 @@ addons:
    - php5-cli
    - php-pear
    - valgrind
    - php5-cli
    - php-pear
    - valgrind
+   - gdb
    - re2c
    - libidn11-dev
    - libsqlite3-dev
 
 env:
  matrix:
    - re2c
    - libidn11-dev
    - libsqlite3-dev
 
 env:
  matrix:
-  - LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so PHP=master enable_debug=no enable_psi=yes enable_psi_posix=all
-  - LD_PRELOAD=/lib/x86_64-linux-gnu/libSegFault.so PHP=master enable_debug=yes enable_psi=yes enable_psi_posix=all
+  - PHP=master enable_debug=no enable_psi=yes enable_psi_posix=all
+  - PHP=master enable_debug=yes enable_psi=yes enable_psi_posix=all
 
 before_script:
  # make sure we do not try to regenerate files with broken bison
 
 before_script:
  # make sure we do not try to regenerate files with broken bison
@@ -29,6 +30,7 @@ script:
 
 after_failure:
  - cat config.log | curl -F 'sprunge=<-' http://sprunge.us
 
 after_failure:
  - cat config.log | curl -F 'sprunge=<-' http://sprunge.us
+ - test -f core && gdb -q -ex bt --batch $HOME/job-$TRAVIS_JOB_NUMBER/bin/php core
 
 notifications:
   webhooks:
 
 notifications:
   webhooks:
index 2997c20ffe456f55743ba3b972f609a6b305d8f5..28073580a6f25ce05835b90020fa315b34625fa4 100755 (executable)
@@ -10,6 +10,7 @@ addons:
    - php5-cli
    - php-pear
    - valgrind
    - php5-cli
    - php-pear
    - valgrind
+   - gdb
    - re2c
    - libidn11-dev
    - libsqlite3-dev
    - re2c
    - libidn11-dev
    - libsqlite3-dev
@@ -20,7 +21,6 @@ env:
 
 $gen = include __DIR__."/../travis/pecl/gen-matrix.php";
 $env = $gen([
 
 $gen = include __DIR__."/../travis/pecl/gen-matrix.php";
 $env = $gen([
-       "LD_PRELOAD" => ["/lib/x86_64-linux-gnu/libSegFault.so"],
        "PHP" => ["master"],
        "enable_debug",
        #"enable_maintainer_zts",
        "PHP" => ["master"],
        "enable_debug",
        #"enable_maintainer_zts",
@@ -44,6 +44,7 @@ script:
 
 after_failure:
  - cat config.log | curl -F 'sprunge=<-' http://sprunge.us
 
 after_failure:
  - cat config.log | curl -F 'sprunge=<-' http://sprunge.us
+ - test -f core && gdb -q -ex bt --batch $HOME/job-$TRAVIS_JOB_NUMBER/bin/php core
 
 notifications:
   webhooks:
 
 notifications:
   webhooks: