--- old/test/failure_handler/src/share/conf/mac.properties 2016-12-16 14:42:23.000000000 +0100 +++ new/test/failure_handler/src/share/conf/mac.properties 2016-12-16 14:42:23.000000000 +0100 @@ -29,6 +29,7 @@ # process info to gather ################################################################################ onTimeout=\ + native.DevToolsSecurity \ native.vmmap native.heap native.leaks native.spindump \ native.stack native.core ################################################################################ @@ -36,22 +37,34 @@ native.javaOnly=false native.args=%p -# Some of them require root privileges -native.vmmap.app=vmmap -native.heap.app=heap -native.leaks.app=leaks +native.DevToolsSecurity.app=DevToolsSecurity +native.DevToolsSecurity.args=--status + +# spindump requires root privileges native.spindump.app=spindump native.spindump.args=%p -stdout -native.stack.app=lldb +native.vmmap.app=bash +native.vmmap.delimiter=\0 +native.vmmap.args=-c\0DevToolsSecurity --status | grep enabled > /dev/null && vmmap %p + +native.leaks.app=bash +native.leaks.delimiter=\0 +native.leaks.args=-c\0DevToolsSecurity --status | grep enabled > /dev/null && leaks %p + +native.heap.app=bash +native.heap.delimiter=\0 +native.heap.args=-c\0DevToolsSecurity --status | grep enabled > /dev/null && heap %p + +native.stack.app=bash native.stack.delimiter=\0 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 enabled > /dev/null && lldb -o 'attach %p' -o 'thread backtrace all' -o 'detach' -o 'quit' native.core.app=bash native.core.delimiter=\0 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 enabled > /dev/null && lldb -o 'attach %p' -o 'process save-core core.%p' -o 'detach' -o 'quit') native.core.params.timeout=3600000 ################################################################################ # environment info to gather @@ -89,7 +102,6 @@ memory.vmstat.app=vm_stat memory.vmstat.args=-c 3 3 - netstat.app=netstat netstat.av.args=-av netstat.aL.args=-aL