This file is indexed.

/usr/sbin/a-rex-backtrace-collect is in nordugrid-arc-arex 5.4.2-1build1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/bin/bash

readconfigvar() {
    fname=$1
    if [ ! -r "$fname" ]; then
        return
    fi
    bname="[$2]"
    vname=$3
    value=
    cat "$fname" | sed -e 's/\r$//' -e 's/^\r//' | grep -e '^\[' -e "^${vname}=" | {
        while true; do
            read line
            if [ ! $? = 0 ] ; then
                return
            fi
            if [ "$line" = "$bname" ] ; then
                while true ; do
                    read line
                    if [ ! $? = 0 ] ; then
                        return
                    fi
                    lstart=`echo "$line" | head -c 1`
                    if [ "$lstart" = '[' ] ; then
                        return
                    fi
                    vlname=`echo "$line" | sed 's/=.*//;t;s/.*//'`
                    if [ "$vlname" = "$vname" ] ; then
                        val=`echo "$line" | sed 's/[^=]*=//'`
                        eval "echo $val"
                        return
                    fi
                done
            fi
        done
    }
}


# ARC_LOCATION
ARC_LOCATION=${ARC_LOCATION:-/usr}


if [ "x$ARC_CONFIG" = "x" ]; then
    if [ -r $ARC_LOCATION/etc/arc.conf ]; then
        ARC_CONFIG=$ARC_LOCATION/etc/arc.conf
    elif [ -r /etc/arc.conf ]; then
        ARC_CONFIG=/etc/arc.conf
    fi
fi
if [ "x$ARC_CONFIG" = "x" ]; then
    echo "Can't find configuration file."
    exit 1
fi
if [ ! -f "${ARC_CONFIG}" ]; then
    echo "Can't find configuration file at ${ARC_CONFIG}."
    exit 1
fi

ARCHED="${ARC_LOCATION}/sbin/arched"
if [ ! -f "${ARCHED}" ]; then
    echo "Can't find arched at ${ARCHED}."
    exit 1
fi

LOGFILE=`readconfigvar "$ARC_CONFIG" grid-manager logfile`
LOGFILE=${LOGFILE:-/var/log/arc/grid-manager.log}
COREDIR=`dirname "${LOGFILE}"`/arccore
if [ ! -d "${COREDIR}" ]; then
    echo "Can't find core collection folder at ${COREDIR}."
    exit 1
fi
backtrace_generated=no
for corename in "${COREDIR}"/*; do
    echo "${corename}" | grep '\.backtrace$'
    if [ ! "$?" = '0' ]; then
        backtracename="${corename}.backtrace"
        echo "--- Processing ${corename} - storing into ${backtracename} ---"
        gdb --batch --core="${corename}" "${ARCHED}" --eval-command='thread apply all bt full' 1>"${backtracename}" 2>&1
        backtrace_generated=yes
    fi
done

if [ $backtrace_generated = yes ]; then
  echo "Please send generated backtrace(s) to support@nordugrid.org or report them on http://bugzilla.nordugrid.org"
fi