test/failure_handler/src/share/conf/mac.properties
author amlu
Tue, 08 May 2018 12:37:39 +0800
changeset 50044 2566ad726765
parent 43055 b340deebb341
child 50108 2e9dc3f896c8
permissions -rw-r--r--
8202581: failure_handler: gather more environment information on macOS Reviewed-by: psandoz
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
35016
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
     1
#
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
     2
# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
     3
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
     4
#
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
     5
# This code is free software; you can redistribute it and/or modify it
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
     6
# under the terms of the GNU General Public License version 2 only, as
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
     7
# published by the Free Software Foundation.
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
     8
#
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
     9
# This code is distributed in the hope that it will be useful, but WITHOUT
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    10
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    11
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    12
# version 2 for more details (a copy is included in the LICENSE file that
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    13
# accompanied this code).
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    14
#
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    15
# You should have received a copy of the GNU General Public License version
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    16
# 2 along with this work; if not, write to the Free Software Foundation,
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    17
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    18
#
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    19
# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    20
# or visit www.oracle.com if you need additional information or have any
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    21
# questions.
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    22
#
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    23
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    24
config.execSuffix=
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    25
config.getChildren.pattern=%p
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    26
config.getChildren.app=pgrep
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    27
config.getChildren.args=-P %p
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    28
################################################################################
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    29
# process info to gather
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    30
################################################################################
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    31
onTimeout=\
42535
a270040dcd31 8171366: macOS: Do not run failure handler commands that require Developer mode access
sla
parents: 35016
diff changeset
    32
  native.DevToolsSecurity \
35016
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    33
  native.vmmap native.heap native.leaks native.spindump \
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    34
  native.stack native.core
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    35
################################################################################
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    36
native.pattern=%p
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    37
native.javaOnly=false
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    38
native.args=%p
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    39
42535
a270040dcd31 8171366: macOS: Do not run failure handler commands that require Developer mode access
sla
parents: 35016
diff changeset
    40
native.DevToolsSecurity.app=DevToolsSecurity
a270040dcd31 8171366: macOS: Do not run failure handler commands that require Developer mode access
sla
parents: 35016
diff changeset
    41
native.DevToolsSecurity.args=--status
a270040dcd31 8171366: macOS: Do not run failure handler commands that require Developer mode access
sla
parents: 35016
diff changeset
    42
a270040dcd31 8171366: macOS: Do not run failure handler commands that require Developer mode access
sla
parents: 35016
diff changeset
    43
# spindump requires root privileges
35016
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    44
native.spindump.app=spindump
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    45
native.spindump.args=%p -stdout
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    46
42535
a270040dcd31 8171366: macOS: Do not run failure handler commands that require Developer mode access
sla
parents: 35016
diff changeset
    47
native.vmmap.app=bash
a270040dcd31 8171366: macOS: Do not run failure handler commands that require Developer mode access
sla
parents: 35016
diff changeset
    48
native.vmmap.delimiter=\0
a270040dcd31 8171366: macOS: Do not run failure handler commands that require Developer mode access
sla
parents: 35016
diff changeset
    49
native.vmmap.args=-c\0DevToolsSecurity --status | grep -q enabled && vmmap %p
a270040dcd31 8171366: macOS: Do not run failure handler commands that require Developer mode access
sla
parents: 35016
diff changeset
    50
a270040dcd31 8171366: macOS: Do not run failure handler commands that require Developer mode access
sla
parents: 35016
diff changeset
    51
native.leaks.app=bash
a270040dcd31 8171366: macOS: Do not run failure handler commands that require Developer mode access
sla
parents: 35016
diff changeset
    52
native.leaks.delimiter=\0
a270040dcd31 8171366: macOS: Do not run failure handler commands that require Developer mode access
sla
parents: 35016
diff changeset
    53
native.leaks.args=-c\0DevToolsSecurity --status | grep -q enabled && leaks %p
a270040dcd31 8171366: macOS: Do not run failure handler commands that require Developer mode access
sla
parents: 35016
diff changeset
    54
a270040dcd31 8171366: macOS: Do not run failure handler commands that require Developer mode access
sla
parents: 35016
diff changeset
    55
native.heap.app=bash
a270040dcd31 8171366: macOS: Do not run failure handler commands that require Developer mode access
sla
parents: 35016
diff changeset
    56
native.heap.delimiter=\0
a270040dcd31 8171366: macOS: Do not run failure handler commands that require Developer mode access
sla
parents: 35016
diff changeset
    57
native.heap.args=-c\0DevToolsSecurity --status | grep -q enabled && heap %p
a270040dcd31 8171366: macOS: Do not run failure handler commands that require Developer mode access
sla
parents: 35016
diff changeset
    58
a270040dcd31 8171366: macOS: Do not run failure handler commands that require Developer mode access
sla
parents: 35016
diff changeset
    59
native.stack.app=bash
35016
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    60
native.stack.delimiter=\0
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    61
native.stack.params.repeat=6
42535
a270040dcd31 8171366: macOS: Do not run failure handler commands that require Developer mode access
sla
parents: 35016
diff changeset
    62
native.stack.args=-c\0DevToolsSecurity --status | grep -q enabled && lldb -o 'attach %p' -o 'thread backtrace all' -o 'detach' -o 'quit'
35016
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    63
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    64
native.core.app=bash
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    65
native.core.delimiter=\0
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    66
native.core.args=-c\0gcore -o ./core.%p %p || \
43055
b340deebb341 8172842: Invoke lldb with --batch from failure handler
sla
parents: 42535
diff changeset
    67
  (DevToolsSecurity --status | grep -q enabled && lldb --batch -o 'attach %p' -o 'process save-core core.%p' -o 'detach' -o 'quit')
35016
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    68
native.core.params.timeout=3600000
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    69
################################################################################
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    70
# environment info to gather
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    71
################################################################################
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    72
environment=\
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    73
  users.current users.logged users.last \
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    74
  disk \
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    75
  env \
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    76
  system.dmesg system.sysctl \
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    77
  process.ps process.top \
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    78
  memory.vmstat \
50044
2566ad726765 8202581: failure_handler: gather more environment information on macOS
amlu
parents: 43055
diff changeset
    79
  netstat.av netstat.aL netstat.m netstat.s \
2566ad726765 8202581: failure_handler: gather more environment information on macOS
amlu
parents: 43055
diff changeset
    80
  ifconfig \
2566ad726765 8202581: failure_handler: gather more environment information on macOS
amlu
parents: 43055
diff changeset
    81
  scutil.nwi scutil.proxy
35016
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    82
################################################################################
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    83
users.current.app=id
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    84
users.current.args=-a
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    85
users.logged.app=who
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    86
users.logged.args=-a
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    87
users.last.app=last
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    88
users.last.args=-10
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    89
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    90
disk.app=df
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    91
disk.args=-h
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    92
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    93
env.app=env
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    94
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    95
system.dmesg.app=dmesg
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    96
system.sysctl.app=sysctl
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    97
system.sysctl.args=-a
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    98
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
    99
process.ps.app=ps
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
   100
process.ps.args=-Meo pid,pcpu,cputime,start,pmem,vsz,rss,state,wchan,user,args
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
   101
process.top.app=top
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
   102
process.top.args=-l 1
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
   103
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
   104
memory.vmstat.app=vm_stat
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
   105
memory.vmstat.args=-c 3 3
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
   106
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
   107
netstat.app=netstat
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
   108
netstat.av.args=-av
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
   109
netstat.aL.args=-aL
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
   110
netstat.m.args=-m
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
   111
netstat.s.args=-s
50044
2566ad726765 8202581: failure_handler: gather more environment information on macOS
amlu
parents: 43055
diff changeset
   112
2566ad726765 8202581: failure_handler: gather more environment information on macOS
amlu
parents: 43055
diff changeset
   113
ifconfig.app=ifconfig
2566ad726765 8202581: failure_handler: gather more environment information on macOS
amlu
parents: 43055
diff changeset
   114
ifconfig.args=-a
2566ad726765 8202581: failure_handler: gather more environment information on macOS
amlu
parents: 43055
diff changeset
   115
2566ad726765 8202581: failure_handler: gather more environment information on macOS
amlu
parents: 43055
diff changeset
   116
scutil.app=scutil
2566ad726765 8202581: failure_handler: gather more environment information on macOS
amlu
parents: 43055
diff changeset
   117
scutil.nwi.args=--nwi
2566ad726765 8202581: failure_handler: gather more environment information on macOS
amlu
parents: 43055
diff changeset
   118
scutil.proxy.args=--proxy
35016
b509dfa96469 8132961: JEP 279: Improve Test-Failure Troubleshooting
iignatyev
parents:
diff changeset
   119
################################################################################