Autofs 5.1.1-1ubuntu2 crashes with segfault on startup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
autofs (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Wily |
Fix Released
|
High
|
Brian Murray |
Bug Description
I'm running Wily Beta 2, updated to the latest packages in the wily repository, with autofs-ldap using mounts stored in LDAP. On startup systemd immediately puts autofs into a failed state as it segfaults when reading the auto.master.
Autofs & autofs-ldap version is 5.1.1-1ubuntu2.
[Impact]
This bug prevents the autofs-ldap module from loading, and causes it to segfault on startup. The proposed fix allows the module to load normally. The fix initialises configuration cache before it is first used (it is the access to the uninitialised cache which causes the segfault).
[Test Case]
Install the autofs-ldap package and have it read an automount map from LDAP. The necessary auto.master & ldap.conf configuration is dependent on the LDAP server that provides the automount maps.
[Regression Potential]
Given the shipped package does not load at all, it can't be a regression on the shipped binary.
[Other Info]
The log in journalctl looks like this:
Oct 05 15:47:45 <hostname> autofs[2232]: * Starting automount...
Oct 05 15:47:45 <hostname> automount[2240]: Starting automounter version 5.1.1, master map /etc/auto.master
Oct 05 15:47:45 <hostname> automount[2240]: using kernel protocol version 5.02
Oct 05 15:47:45 <hostname> automount[2240]: lookup_
Oct 05 15:47:45 <hostname> automount[2240]: parse_init: parse(sun): init gathered global options: (null)
Oct 05 15:47:45 <hostname> automount[2240]: spawn_mount: mtab link detected, passing -n to mount
Oct 05 15:47:45 <hostname> automount[2240]: spawn_umount: mtab link detected, passing -n to mount
Oct 05 15:47:45 <hostname> automount[2240]: lookup_read_master: lookup(file): read entry /net
Oct 05 15:47:45 <hostname> automount[2240]: lookup_read_master: lookup(file): read entry +dir:/etc/
Oct 05 15:47:45 <hostname> automount[2240]: lookup_
Oct 05 15:47:45 <hostname> automount[2240]: lookup(dir): dir map /etc/auto.master.d missing or not readable
Oct 05 15:47:45 <hostname> automount[2240]: lookup(file): failed to read included master map dir:/etc/
Oct 05 15:47:45 <hostname> automount[2240]: lookup_read_master: lookup(file): read entry +auto.master
Oct 05 15:47:45 <hostname> automount[2240]: lookup_
Oct 05 15:47:45 <hostname> automount[2240]: parse_init: parse(sun): init gathered global options: (null)
Oct 05 15:47:45 <hostname> automount[2240]: lookup_
Oct 05 15:47:45 <hostname> kernel: automount[2240]: segfault at 0 ip 00007fb87ade5bcb sp 00007ffc30b34550 error 4 in lookup_
Oct 05 15:47:47 <hostname> autofs[2232]: ...fail!
Oct 05 15:47:47 <hostname> systemd[1]: autofs.service: Control process exited, code=exited status=1
This occurs whenever the service is started with the line in auto.master which loads the ldap mounts. The line which causes the issue is "+ldap:
description: | updated |
tags: | added: wily |
Changed in autofs (Ubuntu Wily): | |
importance: | Undecided → High |
description: | updated |
Changed in autofs (Ubuntu Wily): | |
status: | Confirmed → Triaged |
tags: |
added: verification-done removed: verification-needed |
Thank you for taking the time to report this bug and helping to make Ubuntu better. Please try to obtain a backtrace following the instructions at http:// wiki.ubuntu. com/DebuggingPr ogramCrash and upload the backtrace (as an attachment) to the bug report. This will greatly help us in tracking down your problem.