dpkg configure libpam-runtime segmentation fault

Asked by Ken Koch

apt-get upgrade (and dpkg -a --configure) are throwing segmentation faults on the libpam-runtime package. I can provide more detail upon request. I'm not an expert with package management, so I'm at a loss for which direction to proceed.

root@GFS-1:~# dpkg -D3773 --configure -a
D000040: checking dependencies of libpam-runtime (- <none>)
D000400: checking group ...
D000400: checking possibility -> debconf
D000400: is installed, ok and found
D000400: found 3
D000400: found 3 matched 0 possfixbytrig -
D000400: checking group ...
D000400: checking possibility -> libpam-modules
D000400: is installed, ok and found
D000400: found 3
D000400: found 3 matched 0 possfixbytrig -
D000040: ok 2 msgs >><<
D000040: checking Breaks
Setting up libpam-runtime (1.1.3-2ubuntu2.1) ...
D000002: fork/exec /var/lib/dpkg/info/libpam-runtime.postinst ( configure 1.1.2-2ubuntu8.4 )
Segmentation fault
dpkg: error processing libpam-runtime (--configure):
 subprocess installed post-installation script returned error exit status 139
Errors were encountered while processing:
 libpam-runtime
root@GFS-1:~#

root@GFS-1:~# strace -ff -o /tmp/strace.out /var/lib/dpkg/info/libpam-runtime.postinst

open("/var/lib/pam/auth", O_RDONLY|O_LARGEFILE) = 4
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf8598bc) = -1 ENOTTY (Inappropriate ioctl for device)
_llseek(4, 0, [0], SEEK_CUR) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=123, ...}) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
read(4, "Module: unix\n[success=end defaul"..., 4096) = 123
read(4, "", 4096) = 0
close(4) = 0
open("/etc/pam.d/common-auth", O_RDONLY|O_LARGEFILE) = 4
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf8598bc) = -1 ENOTTY (Inappropriate ioctl for device)
_llseek(4, 0, [0], SEEK_CUR) = 0
fstat64(4, {st_mode=S_IFREG|0644, st_size=1258, ...}) = 0
fcntl64(4, F_SETFD, FD_CLOEXEC) = 0
read(4, "#\n# /etc/pam.d/common-auth - aut"..., 4096) = 1258
--- SIGSEGV (Segmentation fault) @ 0 (0) ---

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu pam Edit question
Assignee:
No assignee Edit question
Solved by:
Ken Koch
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

what is the output of:

sudo apt-get -f install; lsb_release -a

Thanks

Revision history for this message
Ken Koch (mage-f) said :
#2

root@GFS-1:~# apt-get -f install; lsb_release -a
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libwvstreams4.6-base linux-headers-2.6.38-11 libdconf0 linux-headers-2.6.38-11-generic libuniconf4.6 libwvstreams4.6-extras
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 666 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up libpam-runtime (1.1.3-2ubuntu2.1) ...
Segmentation fault
dpkg: error processing libpam-runtime (--configure):
 subprocess installed post-installation script returned error exit status 139
Errors were encountered while processing:
 libpam-runtime
E: Sub-process /usr/bin/dpkg returned an error code (1)
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 11.04
Release: 11.04
Codename: natty
root@GFS-1:~#

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

You can clean the old packages with:

sudo apt-get --purge autoremove

Are there any bugs reported ?

Revision history for this message
Ken Koch (mage-f) said :
#4

No, I can't:

root@GFS-1:~# apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  libdconf0* libuniconf4.6* libwvstreams4.6-base* libwvstreams4.6-extras* linux-headers-2.6.38-11* linux-headers-2.6.38-11-generic*
0 upgraded, 0 newly installed, 6 to remove and 662 not upgraded.
1 not fully installed or removed.
After this operation, 98.9 MB disk space will be freed.
Do you want to continue [Y/n]? y
Setting up libpam-runtime (1.1.3-2ubuntu2.1) ...
Segmentation fault
dpkg: error processing libpam-runtime (--configure):
 subprocess installed post-installation script returned error exit status 139
Errors were encountered while processing:
 libpam-runtime
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@GFS-1:~#

Revision history for this message
Ken Koch (mage-f) said :
#5

After removing all the commented out lines in the /etc/pam.d/common-auth file, my dpkg proceeds normally. Something in this file caused a segfault while reading it in.

#
# /etc/pam.d/common-auth - authentication settings common to all services
#
# This file is included from other service-specific PAM config files,
# and should contain a list of the authentication modules that define
# the central authentication scheme for use on the system
# (e.g., /etc/shadow, LDAP, Kerberos, etc.). The default is to use the
# traditional Unix authentication mechanisms.
#
# As of pam 1.0.1-6, this file is managed by pam-auth-update by default.
# To take advantage of this, it is recommended that you configure any
# local modules either before or after the default block, and use
# pam-auth-update to manage selection of other modules. See
# pam-auth-update(8) for details.

# here are the per-package modules (the "Primary" block)
auth [success=1 default=ignore] pam_unix.so nullok_secure
# here's the fallback if no module succeeds
auth requisite pam_deny.so
# prime the stack with a positive return value if there isn't one already;
# this avoids us returning an error just because nothing sets a success code
# since the modules above will each just jump around
auth required pam_permit.so
# and here are more per-package modules (the "Additional" block)
auth optional pam_ecryptfs.so unwrap
# end of pam-auth-update config