8302226: failure_handler native.core should wait for coredump to finish

Reviewed-by: erikj
This commit is contained in:
Ludvig Janiuk 2023-02-17 14:57:00 +00:00 committed by Erik Joelsson
parent fef3eab9bd
commit 6120319afd
2 changed files with 10 additions and 4 deletions

View File

@ -54,8 +54,11 @@ native.stack.args.delimiter=\0
native.stack.params.repeat=6
# has to be the last command
native.core.app=kill
native.core.args=-ABRT %p
native.core.app=bash
# The below trick was found on https://stackoverflow.com/a/41613532
native.core.args=-c\0kill -ABRT %p && tail --pid=%p -f /dev/null
native.core.args.delimiter=\0
native.core.timeout=600000
cores=native.gdb
native.gdb.app=gdb

View File

@ -62,8 +62,11 @@ native.stack.params.repeat=6
native.stack.args=-c\0DevToolsSecurity --status | grep -q enabled && lldb -o 'attach %p' -o 'thread backtrace all' -o 'detach' -o 'quit'
# has to be the last command
native.core.app=kill
native.core.args=-ABRT %p
native.core.app=bash
# The below trick was found on https://stackoverflow.com/a/41613532
native.core.args=-c\0kill -ABRT %p && lsof -p %p +r 1 &>/dev/null
native.core.delimiter=\0
native.core.timeout=600000
cores=native.lldb
native.lldb.app=lldb