Summary: | xdm-1.1.9: core dump in SessionExit -> PAM -> strlen() | ||
---|---|---|---|
Product: | xorg | Reporter: | Martin Mokrejs <mmokrejs> |
Component: | App/xdm | Assignee: | Xorg Project Team <xorg-team> |
Status: | RESOLVED FIXED | QA Contact: | Xorg Project Team <xorg-team> |
Severity: | critical | ||
Priority: | medium | CC: | ldv, leho, remi, shrek, xorg |
Version: | git | Keywords: | patch |
Hardware: | All | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Bug Depends on: | |||
Bug Blocks: | 25045 | ||
Attachments: |
Description
Martin Mokrejs
2009-10-17 04:06:35 UTC
Created attachment 31179 [details] backtrace of the segfaulting xdm process I also have two different segfaults leading to a broken XDMCP setup in https://bugs.freedesktop.org/show_bug.cgi?id=25045 This is the backtrace of the segfaulting process when I close fluxbox (window manager) This is the moment the segfault occurs and shows up as Nov 13 18:14:56 haljo kernel: xdm[24782]: segfault at 7fdc0079dd10 ip 00007fdc018c8272 sp 00007fff2be4bc78 error 4 in libc-2.11.so[7fdc0184d000+14d000] Created attachment 31180 [details]
xdm.log of the segfaulting xdm after logout (no new xdm started)
In order to generate a xdm.log for the segfaulting process I changed xdm in /etc/inittab form respawn to once. So no new xdm gets started and the log file is not overwritten.
Interesting part should be:
xdm error (pid 24777): Unknown session exit code 2816 from process 24782
xdm info (pid 24777): Exiting
The participating processes:
root 24777 1 0 18:14 ? 00:00:00 /usr/bin/xdm -nodaemon -config /etc/X11/xdm/haljo/xdm-config
root 24779 24777 3 18:14 tty7 00:00:01 /usr/bin/X :0 -auth /var/lib/xdm/authdir/authfiles/A:0-OHeSiQ
root 24782 24777 0 18:14 ? 00:00:00 -:0
Created attachment 32596 [details] [review] xdm-Call-openlog-3-early.patch Proposed fix. Awesome find - thanks for solving this. I've pushed the patch to git master. (Will probably do a new xdm release once some other patches are merged from debian and a few other bug reports.) Created attachment 32712 [details]
ptached-xdm-crashes-on-krb-passwd.txt
The patch fixes the problem with xdm crashing on logout for me. Unfortunately, not the issue with a crash on login when I enter valid kerberos password. I will instead the new stacktrace here instead of poking around the many other xdm core dumps reported in bugzilla. Please let me know if you think this is a separate issue. In my eyes the current stacktrace with Dmitrij's patch still points to syslog stuff.
> --- Comment #5 from Martin Mokrejs <mmokrejs@ribosome.natur.cuni.cz> 2010-01-19 05:28:12 PST ---
> Created an attachment (id=32712)
> --> (http://bugs.freedesktop.org/attachment.cgi?id=32712)
> ptached-xdm-crashes-on-krb-passwd.txt
>
Looks like pam_get_item(PAM_USER) doesn't return a valid username?
(In reply to comment #6) > > --- Comment #5 from Martin Mokrejs <mmokrejs@ribosome.natur.cuni.cz> 2010-01-19 05:28:12 PST --- > > Created an attachment (id=32712) [details] > > --> (http://bugs.freedesktop.org/attachment.cgi?id=32712) > > ptached-xdm-crashes-on-krb-passwd.txt > > > Looks like pam_get_item(PAM_USER) doesn't return a valid username? I did use valid username which is even same as a local username. And, I can get my kerberos ticket from my shell. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.