RFR: 8172842 Invoke lldb with --batch from failure handler
Erik Joelsson
erik.joelsson at oracle.com
Mon Jan 16 10:48:27 UTC 2017
Looks good to me.
/Erik
On 2017-01-16 09:24, Staffan Larsen wrote:
> When the failure handler invokes lldb to create a core it looks something like this:
>
> lldb -o 'attach %p' -o 'process save-core core.%p' -o 'detach' -o 'quit'
>
> However if the attach command fails, the rest of the commands - including 'quit' - are not being run. This means the lldb process is hung.
>
> Adding '--batch' to the command line overcomes this problem.
>
> Thanks,
> /Staffan
>
>
> diff --git a/test/failure_handler/src/share/conf/mac.properties b/test/failure_handler/src/share/conf/mac.properties
> --- a/test/failure_handler/src/share/conf/mac.properties
> +++ b/test/failure_handler/src/share/conf/mac.properties
> @@ -64,7 +64,7 @@
> native.core.app=bash
> native.core.delimiter=\0
> native.core.args=-c\0gcore -o ./core.%p %p || \
> - (DevToolsSecurity --status | grep -q enabled && lldb -o 'attach %p' -o 'process save-core core.%p' -o 'detach' -o 'quit')
> + (DevToolsSecurity --status | grep -q enabled && lldb --batch -o 'attach %p' -o 'process save-core core.%p' -o 'detach' -o 'quit')
> native.core.params.timeout=3600000
> ################################################################################
> # environment info to gather
>
More information about the build-dev
mailing list