Package: am-utils
Version: 6.2+rc20130922-1
Severity: important

Dear Maintainer,
just wanted to report
after upgrade of libc6 to 2.19-11,
amd is crashing frequently ...on kernels 3.14, 3.16 alike.

with errors...
[  489.075564] amd[4369]: segfault at 8 ip 00007f3f6f50121a sp 00007fff92516318 
error 4 in libc-2.19.so[7f3f6f471000+19f000]
[  917.201125] amd[9567]: segfault at 8 ip 00007f0fe885821a sp 00007ffffce3e0e8 
error 4 in libc-2.19.so[7f0fe87c8000+19f000]
...

this am-utils version is a made up from, 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=727770

has anyone experienced similare issues?

thanks,

Christian Montanari.

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-2-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages am-utils depends on:
ii  debconf            1.5.53
ii  debianutils        4.4
ii  libamu4            6.2+rc20130922-1
ii  libc6              2.19-11
ii  libgdbm3           1.8.3-13
ii  libhesiod0         3.2.1-3
ii  libldap-2.4-2      2.4.39-1.1+b1
ii  libwrap0           7.6.q-25
ii  rpcbind [portmap]  0.2.1-6
ii  ucf                3.0030

am-utils recommends no packages.

Versions of packages am-utils suggests:
ii  am-utils-doc  6.2+rc20110530-3.2
ii  nis           3.17-33

-- Configuration Files:
/etc/am-utils/amd.conf changed:
[global] 
  auto_dir = /amd
  log_file = syslog
  restart_mounts = yes
  selectors_in_defaults = yes
  unmount_on_exit = yes
  vendor = Debian
  nfs_vers = 3
  log_options   = fatal,error,warn
  debug_options = amq
[/homes/k]
  map_type = file
  map_name = /etc/am-utils/amd.homes
[/home]
  map_name = amd.home
  map_type = nis

/etc/init.d/am-utils changed:
PATH=/usr/sbin:/sbin:/usr/bin:/bin
export PATH
CONF=/etc/default/am-utils
test -x /usr/sbin/amd || exit 0
get_amd_args() {
    if [ ! -f "$CONF" ]
    then
        echo "$0: not configured yet (try running \"dpkg-reconfigure 
am-utils\")." 1>&2
        exit 1
    fi
    . "$CONF"
    if test "$AM_UTILS_USE_NIS" = true
    then
        map="$AM_UTILS_NIS_MASTER_MAP"
        case "$AM_UTILS_NIS_MASTER_MAP_KEY_STYLE" in
            config)
                key="$AM_UTILS_NIS_KEY"
                AMDARGS="`ypmatch \"$key\" \"$map\"`"
                ;;
            onekey)
                AMDARGS="`ypcat \"$map\"`"
                ;;
            mountpoint)
                AMDARGS="`ypcat -k \"$map\"`"
                ;;
            custom)
                AMDARGS="`sh -c \"$AM_UTILS_NIS_CUSTOM\"`"
                ;;
            *)
                echo "$0: bad key style"
                exit 1
                ;;
        esac
        if [ -z "$AMDARGS" ]
        then
            echo "$0: cannot find master map" 1>&2
            exit 1
        fi
    else
        AMDARGS=""
        if [ "$AM_UTILS_MAP_NET" = true ]
        then
            AMDARGS="$AMDARGS /net /usr/share/am-utils/amd.net"
        fi
        if [ "$AM_UTILS_MAP_HOME" = true ]
        then
            AMDARGS="$AMDARGS /home /etc/passwd"
        fi
        AMDARGS="$AMDARGS $AM_UTILS_MAP_OTHERS"
    fi
    if  [ "$AM_UTILS_CLUSTERNAME" != "" ]; then
        AMDARGS="-C \"$AM_UTILS_CLUSTERNAME\" $AMDARGS"
    fi
}
start_amd() {
    pid="`amq -p 2>/dev/null`"
    if [ -n "$pid" ]; then
        echo "Starting automounter: amd is already running" 1>&2
        exit 0
    fi
    # If the hostname is not a FQHN, add the -d command line switch,
    # so that hostnames in the maps are stripped correctly.
    case `hostname` in
        *.*)    dnsdomain=''
                ;;
        *)      if test "$AM_UTILS_USE_NIS" = true; then
                  dnsdomainname=`dnsdomainname`
                  if [ "$dnsdomainname" ] ; then
                    dnsdomain="-d $dnsdomainname"
                  else
                    echo "$0: please setup your domainname" 1>&2
                    exit 1
                  fi
                else
                  dnsdomain=''
                fi
                ;;
    esac
    get_amd_args
    echo -n "Starting automounter: amd"
    
    /usr/sbin/amd -F /etc/am-utils/amd.conf $dnsdomain $AMDARGS
    echo "."
}
raze_amd() {
  # This function tries to kill an amd which hasn't exited nicely.
  # This happens really easily, especially if using mount_type autofs
  # Get the currently mounted filesystems
  filesystems=`/bin/tempfile -s .amd`
  if [ $? -ne 0 ]; then
    return 1
  fi
  amq | awk '$2 !~ "root" {print $1}' > $filesystems
  # Kill the daemon
  kill -9 "$pid"
  sleep 10
  if kill -s 0 $pid; then
    rm -f $filesystems
    return 1
  fi
  # Attempt to forcibly unmount the remaining filesystems
  returncode=0
  tac $filesystems | while read fs; do
    umount -l -f "$fs" || returncode=1
    sleep 1
  done
  rm -f $filesystems
  return $returncode
}
stop_amd() {
    pid="`amq -p 2>/dev/null`"
    if [ -z "$pid" ]; then
        echo "Stopping automounter: amd not running" 1>&2
        if [ $# -eq 0 ]
        then
            exit 0
        else
            return
        fi
    fi
    echo -n "Requesting amd unmount filesystems: "
    amq | awk '{print $1}' | tac | xargs -r -n 1 amq -u
    echo " done."
    echo -n "Stopping automounter: amd "
    kill -s TERM "$pid"
    # wait until amd has finished; this may take a little bit, and amd can't
    # start while an old one is running
    i=0
    maxsecs=120
    while [ $i -le $maxsecs ] && kill -s 0 $pid >/dev/null 2>&1; do
        echo -n "."
        sleep 1
        i="`expr $i + 1`"
        [ $i -eq 15 ] && echo -n " [will wait `expr $maxsecs - $i` secs more] "
    done
    if kill -s 0 $pid >/dev/null 2>&1
    then
        if raze_amd; then
          echo " done."
        else
          echo " failed."
          exit 1
        fi
    else
        echo " done."
    fi
}
case "$1" in
  start)
        start_amd
        ;;
  stop)
        stop_amd
        ;;
  restart|force-reload)
        stop_amd -noquit
        start_amd
        ;;
  reload)
        # amd tests itself if its map files have changed, so nothing to do here
        ;;
  *)
        echo "Usage: /etc/init.d/amd {start|stop|restart|[force-]reload}"
        exit 1
esac
exit 0


-- debconf information:
  am-utils/nis-master-map: amd.master
  am-utils/import-amd-conf-done: false
  am-utils/import-amd-failed:
  am-utils/log-to-file:
  am-utils/nis-custom: echo "/amd-is-misconfigured /usr/share/am-utils/amd.net"
  am-utils/nis-master-map-key-style: onekey
  am-utils/rpc-localhost:
* am-utils/use-nis: false
  am-utils/map-net: true
  am-utils/nis-key: default
  am-utils/clustername:
  am-utils/map-home: false
  am-utils/map-others:
  am-utils/import-amd-conf: false


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to