gdm-session-worker crashes on logout when pam_mount is enabled
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| libpam-mount (Ubuntu) |
Undecided
|
Unassigned |
Bug Description
Binary package hint: libpam-mount
Description: Ubuntu 10.04 LTS
Release: 10.04
libpam-mount:
Installiert: 1.32-2
Kandidat: 1.32-2
Versions-Tabelle:
*** 1.32-2 0
500 http://
100 /var/lib/
I would expect a normal logout. Instead gnome crashes and only the background image and the mouse cursor remains.
-----SNIP-----
root@ws05:
gdm-simple-
gdm-session-
gdm-session-
gdm-session-
gdm-session-
gdm-session-
gdm-session-
gdm-session-
pam_mount(
gdm-session-
pam_mount(
gdm-session-
pam_mount(
gdm-session-
pam_mount(
gdm-session-
*** glibc detected *** /usr/lib/
======= Backtrace: =========
/lib/tls/
/lib/tls/
/lib/tls/
/lib/libglib-
/lib/libglib-
/lib/libglib-
/lib/libglib-
/usr/lib/
/usr/lib/
/usr/lib/
/lib/tls/
/usr/lib/
======= Memory map: ========
00110000-0012c000 r-xp 00000000 08:01 2886653 /usr/lib/
0012c000-0012d000 r--p 0001b000 08:01 2886653 /usr/lib/
0012d000-0012e000 rw-p 0001c000 08:01 2886653 /usr/lib/
0012e000-001c8000 r-xp 00000000 08:01 2886795 /usr/lib/
001c8000-001c9000 ---p 0009a000 08:01 2886795 /usr/lib/
001c9000-001ca000 r--p 0009a000 08:01 2886795 /usr/lib/
001ca000-001cb000 rw-p 0009b000 08:01 2886795 /usr/lib/
001cb000-001cc000 rw-p 00000000 00:00 0
001cc000-001d0000 r-xp 00000000 08:01 2886933 /usr/lib/
001d0000-001d1000 r--p 00003000 08:01 2886933 /usr/lib/
001d1000-001d2000 rw-p 00004000 08:01 2886933 /usr/lib/
001d2000-001d9000 r-xp 00000000 08:01 4723043 /lib/tls/
001d9000-001da000 r--p 00006000 08:01 4723043 /lib/tls/
001da000-001db000 rw-p 00007000 08:01 4723043 /lib/tls/
001db000-002a3000 r-xp 00000000 08:01 4718679 /lib/libglib-
002a3000-002a4000 r--p 000c7000 08:01 4718679 /lib/libglib-
002a4000-002a5000 rw-p 000c8000 08:01 4718679 /lib/libglib-
002a5000-002d4000 r-xp 00000000 08:01 4718733 /lib/libpcre.
002d4000-002d5000 r--p 0002e000 08:01 4718733 /lib/libpcre.
002d5000-002d6000 rw-p 0002f000 08:01 4718733 /lib/libpcre.
002d6000-002e9000 r-xp 00000000 08:01 4718790 /lib/libz.
002e9000-002ea000 r--p 00012000 08:01 4718790 /lib/libz.
002ea000-002eb000 rw-p 00013000 08:01 4718790 /lib/libz.
002eb000-002ef000 r-xp 00000000 08:01 2886453 /usr/lib/
002ef000-002f0000 r--p 00003000 08:01 2886453 /usr/lib/
002f0000-002f1000 rw-p 00004000 08:01 2886453 /usr/lib/
002f1000-0030e000 r-xp 00000000 08:01 4718675 /lib/libgcc_s.so.1
0030e000-0030f000 r--p 0001c000 08:01 4718675 /lib/libgcc_s.so.1
0030f000-00310000 rw-p 0001d000 08:01 4718675 /lib/libgcc_s.so.1
00359000-0035c000 r-xp 00000000 08:01 2886813 /usr/lib/
0035c000-0035d000 r--p 00002000 08:01 2886813 /usr/lib/
0035d000-0035e000 rw-p 00003000 08:01 2886813 /usr/lib/
0035e000-004b1000 r-xp 00000000 08:01 4723013 /lib/tls/
004b1000-004b2000 ---p 00153000 08:01 4723013 /lib/tls/
004b2000-004b4000 r--p 00153000 08:01 4723013 /lib/tls/
004b4000-004b5000 rw-p 00155000 08:01 4723013 /lib/tls/
004b5000-004b8000 rw-p 00000000 00:00 0
0056e000-005a5000 r-xp 00000000 08:01 4718653 /lib/libdbus-
005a5000-005a6000 r--p 00036000 08:01 4718653 /lib/libdbus-
005a6000-005a7000 rw-p 00037000 08:01 4718653 /lib/libdbus-
005a8000-005a9000 r-xp 00000000 00:00 0 [vdso]
005cd000-005d5000 r-xp 00000000 08:01 4723034 /lib/tls/
005d5000-005d6000 r--p 00007000 08:01 4723034 /lib/tls/
005d6000-005d7000 rw-p 00008000 08:01 4723034 /lib/tls/
00646000-00650000 r-xp 00000000 08:01 4723030 /lib/tls/
00650000-00651000 r--p 00009000 08:01 4723030 /lib/tls/
00651000-00652000 rw-p 0000a000 08:01 4723030 /lib/tls/
00652000-0065b000 r-xp 00000000 08:01 4718614 /lib/libnss_
0065b000-0065c000 r--p 00009000 08:01 4718614 /lib/libnss_
0065c000-0065d000 rw-p 0000a000 08:01 4718614 /lib/libnss_
00708000-00721000 r-xp 00000000 08:01 4718757 /lib/libselinux
00721000-00722000 r--p 00018000 08:01 4718757 /lib/libselinux
00722000-00723000 rw-p 00019000 08:01 4718757 /lib/libselinux
00768000-00778000 r-xp 00000000 08:01 4723041 /lib/tls/
00778000-00779000 r--p 00010000 08:01 4723041 /lib/tls/
00779000-0077a000 rw-p 00011000 08:01 4723041 /lib/tls/
0077a000-0077c000 rw-p 00000000 00:00 0
00798000-0079a000 r-xp 00000000 08:01 2886442 /usr/lib/
0079a000-0079b000 r--p 00001000 08:01 2886442 /usr/lib/
0079b000-0079c000 rw-p 00002000 08:01 2886442 /usr/lib/
0079c000-007a2000 r-xp 00000000 08:01 4723026 /lib/tls/
007a2000-007a3000 r--p 00006000 08:01 4723026 /lib/tls/
007a3000-007a4000 rw-p 00007000 08:01 4723026 /lib/tls/
0082b000-00834000 r-xp 00000000 08:01 4723017 /lib/tls/
00834000-00835000 r--p 00008000 08:01 4723017 /lib/tls/
00835000-00836000 rw-p 00009000 08:01 4723017 /lib/tls/
00836000-0085d000 rw-p 00000000 00:00 0
008a7000-008c3000 r-xp 00000000 08:01 2887225 /usr/lib/
008c3000-008c4000 r--p 0001b000 08:01 2887225 /usr/lib/
008c4000-008c5000 rw-p 0001c000 08:01 2887225 /usr/lib/
008da000-008ef000 r-xp 00000000 08:01 4723039 /lib/tls/
008ef000-008f0000 r--p 00014000 08:01 4723039 /lib/tls/
008f0000-008f1000 rw-p 00015000 08:01 4723039 /lib/tls/
008f1000-008f3000 rw-p 00000000 00:00 0
00ade000-00b1b000 r-xp 00000000 08:01 2886849 /usr/lib/
00b1b000-00b1c000 r--p 0003c000 08:01 2886849 /usr/lib/
00b1c000-00b1d000 rw-p 0003d000 08:01 2886849 /usr/lib/
00b98000-00bb0000 r-xp 00000000 08:01 2887449 /usr/lib/
00bb0000-00bb1000 r--p 00017000 08:01 2887449 /usr/lib/
00bb1000-00bb2000 rw-p 00018000 08:01 2887449 /usr/lib/
00bd5000-00bd7000 r-xp 00000000 08:01 4723019 /lib/tls/
00bd7000-00bd8000 r--p 00001000 08:01 4723019 /lib/tls/
00bd8000-00bd9000 rw-p 00002000 08:01 4723019 /lib/tls/
00bdf000-00bfa000 r-xp 00000000 08:01 4718617 /lib/ld-2.11.1.so
00bfa000-00bfb000 r--p 0001a000 08:01 4718617 /lib/ld-2.11.1.so
00bfb000-00bfc000 rw-p 0001b000 08:01 4718617 /lib/ld-2.11.1.so
00c4d000-00d66000 r-xp 00000000 08:01 2886438 /usr/lib/
00d66000-00d67000 r--p 00118000 08:01 2886438 /usr/lib/
00d67000-00d69000 rw-p 00119000 08:01 2886438 /usr/lib/
00d69000-00d6a000 rw-p 00000000 00:00 0
00d8c000-00d97000 r-xp 00000000 08:01 4718724 /lib/libpam.
00d97000-00d98000 r--p 0000a000 08:01 4718724 /lib/libpam.
00d98000-00d99000 rw-p 0000b000 08:01 4718724 /lib/libpam.
00e04000-00e17000 r-xp 00000000 08:01 4723024 /lib/tls/
00e17000-00e18000 r--p 00012000 08:01 4723024 /lib/tls/
00e18000-00e19000 rw-p 00013000 08:01 4723024 /lib/tls/
00e19000-00e1b000 rw-p 00000000 00:00 0
00f74000-00faf000 r-xp 00000000 08:01 2886702 /usr/lib/
00faf000-00fb0000 ---p 0003b000 08:01 2886702 /usr/lib/
00fb0000-00fb1000 r--p 0003b000 08:01 2886702 /usr/lib/
00fb1000-00fb2000 rw-p 0003c000 08:01 2886702 /usr/lib/
08048000-0805d000 r-xp 00000000 08:01 2890229 /usr/lib/
0805d000-0805e000 r--p 00014000 08:01 2890229 /usr/lib/
0805e000-0805f000 rw-p 00015000 08:01 2890229 /usr/lib/
083ad000-0840b000 rw-p 00000000 00:00 0 [heap]
b6a00000-b6a21000 rw-p 00000000 00:00 0
b6a21000-b6b00000 ---p 00000000 00:00 0
b6be1000-b6be2000 ---p 00000000 00:00 0
b6be2000-b75e2000 rw-p 00000000 00:00 0
b75e2000-b75e5000 r--p 00000000 08:01 3181672 /usr/share/
b75e5000-b761a000 r--s 00000000 08:01 24124337 /var/cache/
b761a000-b764f000 r--s 00000000 08:01 24124336 /var/cache/
b764f000-b765b000 r--p 00000000 08:01 3181774 /usr/share/
b765b000-b7662000 r--p 00000000 08:01 3181760 /usr/share/
b7662000-b76a1000 r--p 00000000 08:01 2891323 /usr/lib/
b76a1000-b76a2000 r--p 00000000 08:01 2891341 /usr/lib/
b76a2000-b76a3000 r--p 00000000 08:01 2894109 /usr/lib/
b76a3000-b77c1000 r--p 00000000 08:01 2894110 /usr/lib/
b77c1000-b77c2000 r--p 00000000 08:01 2891898 /usr/lib/
b77c2000-b77c9000 rw-p 00000000 00:00 0
b77c9000-b77ca000 r--p 00000000 08:01 2891332 /usr/lib/
b77ca000-b77cb000 r--p 00000000 08:01 2891433 /usr/lib/
b77cb000-b77cc000 r--p 00000000 08:01 2894111 /usr/lib/
b77cc000-b77cd000 r--p 00000000 08:01 2894112 /usr/lib/
b77cd000-b77ce000 r--p 00000000 08:01 2894113 /usr/lib/
b77ce000-b77cf000 r--p 00000000 08:01 2891806 /usr/lib/
b77cf000-b77d6000 r--s 00000000 08:01 2890218 /usr/lib/
b77d6000-b77d7000 r--p 00000000 08:01 2894114 /usr/lib/
b77d7000-b77d9000 rw-p 00000000 00:00 0
bfde4000-bfdf9000 rw-p 00000000 00:00 0 [stack]
fedsed (fedor-s) wrote : | #1 |
Are you using pam_mount?
When I mount all homes at once via the fstab file, everything works.
But with pam_mount gdm-session-worker crashes.
fedsed (fedor-s) wrote : | #3 |
Yes I use pam_mount.
Without a file custom.conf I too had a crashes.
When I create the file with the contents, gdm-session-worker is still crashing. Only the to warning lines are gone.
fedsed (fedor-s) wrote : | #5 |
There was again a crashes :(
:0-slave.log
gdm-session-
gdm-session-
gdm-session-
gdm-session-
gdm-session-
*** glibc detected *** /usr/lib/
======= Backtrace: =========
/lib/tls/
/lib/tls/
/lib/tls/
/lib/tls/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/usr/lib/
/lib/libnss_
/lib/tls/
/lib/tls/
/lib/tls/
/usr/lib/
======= Memory map: ========
00110000-00113000 r-xp 00000000 08:01 1592976 /usr/lib/
00113000-00114000 r--p 00002000 08:01 1592976 /usr/lib/
00114000-00115000 rw-p 00003000 08:01 1592976 /usr/lib/
00115000-001dd000 r-xp 00000000 08:01 2007229 /lib/libglib-
001dd000-001de000 r--p 000c7000 08:01 2007229 /lib/libglib-
001de000-001df000 rw-p 000c8000 08:01 2007229 /lib/libglib-
001df000-001f7000 r-xp 00000000 08:01 5144671 /usr/lib/
001f7000-001f8000 r--p 00017000 08:01 5144671 /usr/lib/
001f8000-001f9000 rw-p 00018000 08:01 5144671 /usr/lib/
001f9000-00202000 r-xp 00000000 08:01 2008562 /lib/tls/
00202000-00203000 r--p 00008000 08:01 2008562 /lib/tls/
00203000-00204000 rw-p 00009000 08:01 2008562 /lib/tls/
00204000-0022b000 rw-p 00000000 00:00 0
0022b000-00266000 r-xp 00000000 08:01 1593399 /usr/lib/
00266000-00267000 ---p 0003b000 08:01 1593399 /usr/lib/
00267000-00268000 r--p 0003b000 08:01 1593399 /usr/lib/
00268000-00269000 rw-p 0003c000 08:01 1593399 /usr/lib/
00269000-00298000 r-xp 00000000 08:01 2007196 /lib/libpcre.
00298000-00299000 r--p 0002e000 08:01 2007196 /lib/libpc...
fedsed (fedor-s) wrote : | #6 |
As a temporary variant.
To add in a file /etc/gdm/
#!/bin/sh
pid=`ps ax | grep gdm-session-worker | grep -v grep | awk '{print $1}'`
kill -9 $pid
exit 0
Changed in libpam-mount (Ubuntu): | |
status: | New → Confirmed |
tomlohave (tomlohave) wrote : | #7 |
For me , bug solved with the same file custom.conf from fedsed
AZ (m-dev) wrote : | #8 |
Adding custom.conf does not help it for me. I recompiled gdm with nostrip option and got this backtrace when logging out.
Program received signal SIGTERM, Terminated.
0x00aed422 in __kernel_vsyscall ()
(gdb) bt
#0 0x00aed422 in __kernel_vsyscall ()
#1 0x004beb86 in poll () from /lib/tls/
#2 0x0099d13b in ?? () from /lib/libdbus-1.so.3
#3 0x009950ef in ?? () from /lib/libdbus-1.so.3
#4 0x009932cc in ?? () from /lib/libdbus-1.so.3
#5 0x0097dba3 in ?? () from /lib/libdbus-1.so.3
#6 0x00980224 in ?? () from /lib/libdbus-1.so.3
#7 0x0098da51 in dbus_pending_
#8 0x0097f7cc in dbus_connection
#9 0x0804cc21 in ck_connector_
#10 0x080516a7 in session_
#11 0x0015d6c2 in g_child_
#12 0x0015f5e5 in g_main_dispatch (context=0x83708a0) at /build/
#13 IA__g_main_
#14 0x001632d8 in g_main_
at /build/
#15 0x00163817 in IA__g_main_loop_run (loop=0x83717e0) at /build/
#16 0x0804c8de in main (argc=1, argv=0xbfa967b4) at session-
(gdb) cont
Continuing.
Program received signal SIGABRT, Aborted.
0x00aed422 in __kernel_vsyscall ()
(gdb) bt
#0 0x00aed422 in __kernel_vsyscall ()
#1 0x00429651 in raise () from /lib/tls/
#2 0x0042ca82 in abort () from /lib/tls/
#3 0x0046049d in ?? () from /lib/tls/
#4 0x0046a591 in ?? () from /lib/tls/
#5 0x0046bde8 in ?? () from /lib/tls/
#6 0x0046eecd in free () from /lib/tls/
#7 0x00167fc6 in IA__g_free (mem=0x0) at /build/
#8 0x00150dc8 in g_hash_
at /build/
#9 0x001512fd in IA__g_hash_
#10 0x001513ad in IA__g_hash_
#11 0x0804f03e in gdm_session_
#12 0x002493f4 in IA__g_object_unref (_object=0x8372800) at /build/
#13 0x0804c8ea in main (argc=1, argv=0xbfa967b4) at session-
AZ (m-dev) wrote : | #9 |
One of the many automatic backtraces and gdb attachments show a backtrace haning in libpam-mount / pam_end.
Digging deeper I rebuild pam-mount with DEB_BUILD_
I used the following commands to rebuild
> sudo apt-get build-dep libpam-mount
> apt-get source libpam-mount
> cd libpam-mount-1.32
> sudo dpkg-buildpackage -b
> dpkg -i ../libpam-
.
Could it be that some dependencies of libpam-mount were updated which gcc inlined (as O=s is used) and therefore a rebuild of libpam-mount is required?
Package: libpam-mount
Priority: extra
Section: admin
Installed-Size: 424
Maintainer: Ubuntu Developers <email address hidden>
Original-
Architecture: i386
Version: 1.32-2
Depends: libc6 (>= 2.7), libhx22, libpam0g (>= 0.99.7.1), libssl0.9.8 (>= 0.9.8k-1), libxml2 (>= 2.7.4), mount (>= 2.12-3), libpam-runtime (>= 1.0.1-6)
Suggests: ncpfs, smbfs, cryptsetup, openssl, fuse-utils, davfs2, lsof, psmisc, xfsprogs, sshfs, truecrypt | truecrypt-utils
Conflicts: libncp (<< 2.2.0.19.10)
Filename: pool/main/
Size: 123276
MD5sum: 16742b379b4e332
SHA1: 72df5ddf0da50ba
SHA256: 8591e7e5d08af03
Description: PAM module that can mount volumes for a user session
This module is aimed at environments with central file servers that a
user wishes to mount on login and unmount on logout, such as
(semi-)diskless stations where many users can logon.
.
The module also supports mounting local filesystems of any kind the
normal mount utility supports, with extra code to make sure certain
volumes are set up properly because often they need more than just a
mount call, such as encrypted volumes. This includes SMB/CIFS, FUSE,
dm-crypt and LUKS.
Homepage: http://
Bugs: https:/
Origin: Ubuntu
Supported: 5y
AZ (m-dev) wrote : | #10 |
Hm it only helped yesterday, now I get a different backtrace haning again. It looks like there is a glibc doublefree that raises SIGABRT, which tries to fork but hangs to do so. I'm a bit uncertain what could make a fork to actually hang? Besides that it is weird that there is a double free.
This backtrace occured after a plain restart so nothing should be garbled.
fedsed (fedor-s) wrote : | #11 |
Too package reassemblage has not helped me.
Mike G (mikee99) wrote : | #12 |
I, am experiencing this same exact issue. I believe the problem lies in the fact that the volume is having difficulty unmounting.
The logs above also indicate that with the error: "pam_mount(
I am experiencing the same problem, only with CIFS. Somehow, pam_mount is not able to successfully unmount the share since some process is doing something.
Is there a way to force pam_mount to kill processes preventing logout?
**For me, this is a very high-severity, showstopping issue. I cannot roll out Ubuntu 10.04 to my development environment with this occurring.
Guimenez (guimenez) wrote : | #13 |
The same happens here :(
Ubuntu 10.04 LTS crash at logoff, the problem is the pam_mount mount the shares as root and when it unmount, it do as normal user.
please how can we fix this?
fedsed (fedor-s) wrote : | #14 |
Has solved a problem as follows.
I took following sources packages from ubuntu 10.10:
cryptsetup, libhx, libpam-mount.
Has rebuild them by means of a command: "dpkg-buildpackage -b"
Has received following packages:
cryptsetup_
cryptsetup-
libcryptsetup1_
libcryptsetup-
libhx22_
libhx-dev_
libcryptsetup1_
libpam-
Installed: dpkg -i libcryptsetup1_
The problem was gone.
fedsed (fedor-s) wrote : | #16 |
fedsed (fedor-s) wrote : | #17 |
Markus Rupprecht (rupprecht3) wrote : | #18 |
Problem with libhx22:
dpkg: Fehler beim Bearbeiten von libhx22_
nicht vollständig gelesen in buffer_copy (Backend dpkg-deb während »./usr/
In English: Error while working on libhx22_
read not completed in buffer_copy (Backend dpkg-deb while »./usr/
fedsed (fedor-s) wrote : | #19 |
It is visible a bad file
Why is this fix not being pushed out to the main repo's so that we can implement the fix more widespread. I had to go through and image an entire library worth of machines with this pre-rolled up because gdm crashes all the time when we use pam_mount. Thanks fedsed for the fixes. I keep this page bookmarked in the event that I need to make a new image of 10.04.
arod (arod0405) wrote : | #21 |
Well... thanks, it works!
Just one question: is recompiling really mandatory? Couldn't I use plain maverick packages in ubuntu LTS?
Changed in libpam-mount (Ubuntu): | |
status: | Confirmed → Fix Released |
I have created a file/etc/ gdm/custom. conf with such contents and at me have ceased to crash gdm.
custom.conf:
[daemon]
[security]
[xdmcp]
[gui]
[greeter]
IncludeAll=false
[chooser]
[debug]
[servers]