Re: [PATCH 1/1] CI: cirrus-ci: display gdb bt if any

2023-09-21 Thread Willy Tarreau
On Thu, Sep 21, 2023 at 11:55:03PM +0200,  ??? wrote:
> ping :)

yeah sorry, I noticed it just after previous release and thought I
had merged it already. It's done now, thanks!

Willy



Re: [PATCH 1/1] CI: cirrus-ci: display gdb bt if any

2023-09-21 Thread Илья Шипицин
ping :)

пт, 8 сент. 2023 г. в 22:57, Ilya Shipitsin :

> previously, if test process crashes (either BUG_ON or segfault), no
> coredump were collected and analysed
> ---
>  .cirrus.yml | 7 ++-
>  1 file changed, 6 insertions(+), 1 deletion(-)
>
> diff --git a/.cirrus.yml b/.cirrus.yml
> index 2993b943a..4bf3fb672 100644
> --- a/.cirrus.yml
> +++ b/.cirrus.yml
> @@ -6,8 +6,13 @@ FreeBSD_task:
>install_script:
>  - pkg update -f && pkg upgrade -y && pkg install -y openssl git gmake
> lua53 socat pcre
>script:
> +- sudo sysctl kern.corefile=/tmp/%N.%P.core
> +- sudo sysctl kern.sugid_coredump=1
>  - scripts/build-vtest.sh
>  - gmake CC=clang V=1 ERR=1 TARGET=freebsd USE_ZLIB=1 USE_PCRE=1
> USE_OPENSSL=1 USE_LUA=1 LUA_INC=/usr/local/include/lua53
> LUA_LIB=/usr/local/lib LUA_LIB_NAME=lua-5.3
>  - ./haproxy -vv
>  - ldd haproxy
> -- env VTEST_PROGRAM=../vtest/vtest gmake reg-tests
> REGTESTS_TYPES=default,bug,devel || (for folder in /tmp/*regtest*/vtc.*; do
> cat $folder/INFO $folder/LOG; done && exit 1)
> +  test_script:
> +- env VTEST_PROGRAM=../vtest/vtest gmake reg-tests
> REGTESTS_TYPES=default,bug,devel
> +  on_failure:
> +debug_script: (for folder in /tmp/*regtest*/vtc.*; do cat
> $folder/INFO $folder/LOG; done && ls /tmp/haproxy.*.core && gdb -ex 'thread
> apply all bt full' ./haproxy /tmp/haproxy.*.core)
> --
> 2.35.3.windows.1
>
>


[PATCH 1/1] CI: cirrus-ci: display gdb bt if any

2023-09-08 Thread Ilya Shipitsin
previously, if test process crashes (either BUG_ON or segfault), no
coredump were collected and analysed
---
 .cirrus.yml | 7 ++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/.cirrus.yml b/.cirrus.yml
index 2993b943a..4bf3fb672 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -6,8 +6,13 @@ FreeBSD_task:
   install_script:
 - pkg update -f && pkg upgrade -y && pkg install -y openssl git gmake 
lua53 socat pcre
   script:
+- sudo sysctl kern.corefile=/tmp/%N.%P.core
+- sudo sysctl kern.sugid_coredump=1
 - scripts/build-vtest.sh
 - gmake CC=clang V=1 ERR=1 TARGET=freebsd USE_ZLIB=1 USE_PCRE=1 
USE_OPENSSL=1 USE_LUA=1 LUA_INC=/usr/local/include/lua53 LUA_LIB=/usr/local/lib 
LUA_LIB_NAME=lua-5.3
 - ./haproxy -vv
 - ldd haproxy
-- env VTEST_PROGRAM=../vtest/vtest gmake reg-tests 
REGTESTS_TYPES=default,bug,devel || (for folder in /tmp/*regtest*/vtc.*; do cat 
$folder/INFO $folder/LOG; done && exit 1)
+  test_script:
+- env VTEST_PROGRAM=../vtest/vtest gmake reg-tests 
REGTESTS_TYPES=default,bug,devel
+  on_failure:
+debug_script: (for folder in /tmp/*regtest*/vtc.*; do cat $folder/INFO 
$folder/LOG; done && ls /tmp/haproxy.*.core && gdb -ex 'thread apply all bt 
full' ./haproxy /tmp/haproxy.*.core)
-- 
2.35.3.windows.1