8171366: macOS: Do not run failure handler commands that require Developer mode access

Reviewed-by: erikj, iignatyev
This commit is contained in:
Staffan Larsen 2016-12-19 10:47:26 +01:00
parent de18583f29
commit afd296c799

View File

@ -29,6 +29,7 @@ config.getChildren.args=-P %p
# process info to gather # process info to gather
################################################################################ ################################################################################
onTimeout=\ onTimeout=\
native.DevToolsSecurity \
native.vmmap native.heap native.leaks native.spindump \ native.vmmap native.heap native.leaks native.spindump \
native.stack native.core native.stack native.core
################################################################################ ################################################################################
@ -36,22 +37,34 @@ native.pattern=%p
native.javaOnly=false native.javaOnly=false
native.args=%p native.args=%p
# Some of them require root privileges native.DevToolsSecurity.app=DevToolsSecurity
native.vmmap.app=vmmap native.DevToolsSecurity.args=--status
native.heap.app=heap
native.leaks.app=leaks # spindump requires root privileges
native.spindump.app=spindump native.spindump.app=spindump
native.spindump.args=%p -stdout native.spindump.args=%p -stdout
native.stack.app=lldb native.vmmap.app=bash
native.vmmap.delimiter=\0
native.vmmap.args=-c\0DevToolsSecurity --status | grep -q enabled && vmmap %p
native.leaks.app=bash
native.leaks.delimiter=\0
native.leaks.args=-c\0DevToolsSecurity --status | grep -q enabled && leaks %p
native.heap.app=bash
native.heap.delimiter=\0
native.heap.args=-c\0DevToolsSecurity --status | grep -q enabled && heap %p
native.stack.app=bash
native.stack.delimiter=\0 native.stack.delimiter=\0
native.stack.params.repeat=6 native.stack.params.repeat=6
native.stack.args=-o\0attach %p\0-o\0thread backtrace all\0-o\0detach\0-o\0quit native.stack.args=-c\0DevToolsSecurity --status | grep -q enabled && lldb -o 'attach %p' -o 'thread backtrace all' -o 'detach' -o 'quit'
native.core.app=bash native.core.app=bash
native.core.delimiter=\0 native.core.delimiter=\0
native.core.args=-c\0gcore -o ./core.%p %p || \ native.core.args=-c\0gcore -o ./core.%p %p || \
lldb -o 'attach %p' -o 'process save-core core.%p' -o 'detach' -o 'quit' (DevToolsSecurity --status | grep -q enabled && lldb -o 'attach %p' -o 'process save-core core.%p' -o 'detach' -o 'quit')
native.core.params.timeout=3600000 native.core.params.timeout=3600000
################################################################################ ################################################################################
# environment info to gather # environment info to gather
@ -89,7 +102,6 @@ process.top.args=-l 1
memory.vmstat.app=vm_stat memory.vmstat.app=vm_stat
memory.vmstat.args=-c 3 3 memory.vmstat.args=-c 3 3
netstat.app=netstat netstat.app=netstat
netstat.av.args=-av netstat.av.args=-av
netstat.aL.args=-aL netstat.aL.args=-aL