autofs 5.1.2-1ubuntu2 crashes on nfs mount
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autofs (Ubuntu) |
Fix Released
|
High
|
Andreas Hasenack |
Bug Description
Using the latest autofs package (with libtirpc support) the automount process crashes when mounting a nfs share (at least when using IPv4).
I am using a file /etc/auto.
/net -hosts -intr,soft --timeout=60
When trying to access a share (e.g. with the command "cd /net/192.168.1.104" - using the hostname has the same effect) automount crashes:
$ sudo systemctl stop autofs.service
$ source /etc/default/autofs
$ sudo gdb --args /usr/sbin/automount $OPTIONS -d -v -f
(gdb) run
[...]
attempting to mount entry /net/192.168.1.104
lookup_mount: lookup(hosts): 192.168.1.104 -> (null)
get_exports: lookup(hosts): fetchng export list for 192.168.1.104
Thread 6 "automount" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff7fc7700 (LWP 4640)]
0x0000000000000000 in ?? ()
(gdb) bt
#0 0x0000000000000000 in ?? ()
#1 0x00007ffff435b8dc in ?? () from /lib/x86_
#2 0x00007ffff29b11ec in ?? () from /usr/lib/
#3 0x00007ffff29b23fa in rpc_get_exports () from /usr/lib/
#4 0x00007ffff29ad516 in ?? () from /usr/lib/
#5 0x00007ffff29ae013 in lookup_mount () from /usr/lib/
#6 0x000055555556c70d in do_lookup_mount ()
#7 0x000055555556d441 in lookup_nss_mount ()
#8 0x00005555555634d5 in ?? ()
#9 0x00007ffff7bbd7fc in start_thread () from /lib/x86_
#10 0x00007ffff7325b0f in clone () from /lib/x86_
The segfault disappears if the autofs package is recompiled without "--with-libtirpc" in debian/rules.
$ lsb_release -rd
Description: Ubuntu Bionic Beaver (development branch)
Release: 18.04
$ apt-cache policy autofs
autofs:
Installiert: 5.1.2-1ubuntu2
Installations
Versionstabelle:
*** 5.1.2-1ubuntu2 500
500 http://
100 /var/lib/
$ apt-cache policy libtirpc1
libtirpc1:
Installiert: 0.2.5-1.2
Installations
Versionstabelle:
*** 0.2.5-1.2 500
500 http://
100 /var/lib/
BTW: libtirpc1 seems to be quite old in Ubuntu, the current release is 1.0.2
Related branches
- Nish Aravamudan (community): Approve
- Canonical Server: Pending requested
-
Diff: 43 lines (+9/-4)3 files modifieddebian/changelog (+7/-0)
debian/control (+1/-2)
debian/rules (+1/-2)
tags: | added: server-next |
Changed in autofs (Ubuntu): | |
assignee: | nobody → Andreas Hasenack (ahasenack) |
importance: | Undecided → High |
status: | Confirmed → In Progress |
here same on bionic server