Sudo Segfaults with a user who has a pam_mount home directory.

Bug #268404 reported by David Tomaschik
This bug report is a duplicate of:  Bug #234727: apt: segmentation fault [ubuntu 8.04]. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
sudo (Ubuntu)
New
Undecided
Unassigned

Bug Description

sudo version: 1.6.9p10-1ubuntu3 (Hardy)
libpam-mount version: 0.32-4

I noticed in dmesg many entries of the form [896132.470717] sudo[23807]: segfault at 00000000 eip 080529ee esp bf8429b0 error 4, always 24 hours apart. I quickly figured that it was from the script /etc/cron.daily/apt, as it invokes sudo 3 times throughout the script. It selects my main user and attempts to run "sudo -u david ...". Attempting to run this as root generates a segmentation fault. Testing this with other user accounts does not generate a segfault.

I then straced the sudo invocation and noticed it was crashing immediately after writing this to the system log:
Sep 9 22:20:11 ozone sudo: pam_mount(pam_mount.c:512) error trying to retrieve authtok from auth code

My home directory is a dm-crypt LVM volume that is mounted (obviously) by pam_mount at login. I believe it is this that causes sudo to crash when attempting to switch to this user.

If there's anything I can do to help debug, please let me know. I've considered trying to rebuild a debug package of sudo and use it with gdb, but I'm not sure if there's a better way. (Is there a general way to get packages with debug symbols?)

Revision history for this message
Tom_OConnor (tom-twinhelix) wrote :

This could be related to https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/234727
I've been trying to use sudo-dbgsym to debug this with gdb, but i'm having issues installing the debug packages.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.