After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 438628 - gdmgreeter crashed with SIGSEGV
gdmgreeter crashed with SIGSEGV
Status: RESOLVED OBSOLETE
Product: gdm
Classification: Core
Component: general
2.20.x
Other Linux
: Normal critical
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2007-05-15 15:24 UTC by Sebastien Bacher
Modified: 2010-06-03 18:16 UTC
See Also:
GNOME target: ---
GNOME version: 2.19/2.20



Description Sebastien Bacher 2007-05-15 15:24:25 UTC
The bug has been opened on https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/114779

"...
Package: gdm 2.18.1-0ubuntu1
...
  • #0 greeter_item_ulist_setup
    at greeter_item_ulist.c line 186
  • #1 main
    at greeter.c line 588
  • #2 __libc_start_main
    from /lib/tls/i686/cmov/libc.so.6
  • #3 _start

Comment 1 Brian Cameron 2007-05-16 04:25:22 UTC
Thanks for the bug report.  

Unfortunately line 186 isn't in the function greeter_item_ulist_setup in the file greeter_item_ulist.c in GDM 2.18 branch.  I'm guessing Ubuntu may be patching the code to change the line number?  Could you give me more information about what specific line is triggering the problem and what is causing the SEGV?  Is it an invalid pointer reference or something?

I'm wondering if this problem might be triggered by a specific configuration that might cause the problem.  Would be useful if you shared the configuration that triggers the problem.

The original bug report doesn't have any useful information besides the stack trace.  No description of when GDM is crashing (does it always crash on startup or when a specific interaction happens).  Can you replicate this problem?  
Comment 2 Sebastien Bacher 2007-05-16 16:34:01 UTC
the corresponding line in the source of the package is "		if (usr->gecos && strcmp (usr->gecos, "") != 0) {", the optimized backtraces are not always accurate on the function names though. I don't get the bug, I'll ask informations to the submitter though
Comment 3 Ray Strode [halfline] 2007-05-16 21:03:34 UTC
does the user have non-utf8 in their passwd file?

If so, might be a duplicate of bug 426647
Comment 4 Brian Cameron 2007-06-04 04:24:34 UTC
More info?  I really need to understand what is going on here to fix this bug.
Comment 5 Sebastien Bacher 2007-06-11 20:29:30 UTC
distribution comment:

"Yep, standard ascii:

$ tr -d ' ().,/:[0-9A-Za-z]-' < /etc/passwd | hexdump -C
00000000 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a 0a |................|
*
00000020 0a 0a 0a 0a 0a 0a 0a 0a |........|
00000028"
Comment 6 Brian Cameron 2007-08-16 02:14:32 UTC
No ideas here.  Is there any information in the GDM debug log?  If you set DOING_GDM_DEVELOPMENT=1 and run gdmgreeter from the command line does it crash also?  If so, can you run it in a debugger and see if you can track down what might be triggering this core dump?
Comment 7 Ray Strode [halfline] 2007-08-16 13:58:54 UTC
also attaching /etc/passwd, /etc/nsswitch.conf, and custom.conf might be useful.

If it's crashing on the line posted, then presumably usr or usr->gecos is NULL (or there is memory corruption) ?
Comment 8 Sebastien Bacher 2007-09-27 14:04:31 UTC
Another bug with a similar backtrace on https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/145037
Comment 9 Daniel Luz 2008-10-11 01:09:14 UTC
I've reported this bug on LaunchPad:
  https://bugs.launchpad.net/ubuntu/+source/gdm/+bug/279902
and got directed here. Let's see if I can help.

Both /etc/passwd and /etc/nsswitch.conf are pure ASCII, according to `file`. I don't know what (or where) is custom.conf.

I tried running /usr/lib/gdm/gdmgreeter from the command-line while logged in, but all I get is this warning:
  The greeter version (2.20.8) does not match the daemon version. You have probably just upgraded GDM. Please restart the GDM daemon or the computer.

...but I've just restarted my computer.

Any other hints?
Comment 10 Brian Cameron 2008-10-14 19:35:50 UTC
When I try to access the link you provided, I don't have access to view the page, so I'm unsure what problem you are having.  It is normal for /usr/lib/gdm/gdmgreeter to not allow you to run it from the command line.  It is only intended to be run via the GDM daemon.  You can set the environment variable "DOING_GDM_DEVELOPMENT=1" and run gdmgreeter for debug purposes, though this is really just for testing GUI changes.  But it might highlight a problem if there is an issue with the binary starting up (such as a missing library).

I'd recommend turning on debug in the GDM configuration and sharing any GDM-related messages or errors from your system log (/var/log/messages or /var/adm/messages), that might highlight any problems you might be seeing.
Comment 11 Daniel Luz 2008-10-18 06:55:29 UTC
> When I try to access the link you provided, I don't have access to view the
page, so I'm unsure what problem you are having.

Sorry, reports in Launchpad seem to default to private. I've opened it.

I ran gdmgreeter in development mode, and other than writing to stdout the username, clicking a user in the list does nothing, and typing a username manually disables the input box when I press Enter (i.e., without getting to the password input). I turned on debug/Enable, but from a quick glance there's nothing interesting in the debug messages. I was suspicious of the extra characters which were appearing in stdout, but after a quick check I found they're actually expected (function greeter_item_ulist_select_user).

I also tried logging off and rebooting a few times to see if I could get a crash with gdm debug enabled, but had no luck. I'll keep it enabled, though.
Comment 12 Brian Cameron 2010-06-03 18:16:05 UTC
I'm closing this bug since there hasn't been any feedback since 2008.  If there is still an issue, then please reopen or file a new bug.