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 363697 - Gdm 2.17.0 just crashes at startup
Gdm 2.17.0 just crashes at startup
Status: RESOLVED FIXED
Product: gdm
Classification: Core
Component: general
2.17.x
Other All
: Normal critical
: ---
Assigned To: GDM maintainers
GDM maintainers
Depends on:
Blocks:
 
 
Reported: 2006-10-20 16:03 UTC by Alex Smith
Modified: 2006-10-30 18:54 UTC
See Also:
GNOME target: ---
GNOME version: 2.17/2.18



Description Alex Smith 2006-10-20 16:03:52 UTC
Steps to reproduce:
1. Start GDM 2.17.1


Stack trace:


Other information:
When it comes up, it just says "The greeter application crashed. Try a different one". I've searched /var/log, I can't find any useful information there
Comment 1 Brian Cameron 2006-10-20 23:58:13 UTC
I suspect that the problem is caused by the new at-spi launching stuff.  I'm also seeing it crash.  I'm cc:ing Ariel who did that fix to see if he can look into this.

I also see this crashing on Solaris.  What OS are you using?

Look in the following directories for core files:

- /var/lib/log/gdm
- /var/lib/gdm
- the root directory
- the gdm user $HOME directory

A stack trace would be handy.  If you have another login program to start the Xserver you should be able to set DOING_GDM_DEVELOPMENT=1 and run /usr/lib/gdmgreeter from the command line and perhaps get a stack trace that way.
Comment 2 Brian Cameron 2006-10-20 23:59:43 UTC
Note bug #345434 for more information.
Comment 3 Ariel Rios 2006-10-21 01:15:37 UTC
Does this happen with a11y turned off?

ariel
Comment 4 Joe Marcus Clarke 2006-10-24 18:05:39 UTC
This only happens when a11y is disabled due to the fact that gtk_init() is called after the call to initialize at-spi.  If a11y is disabled, then error_dialog() in gdmcommon.c is called.  This function makes GTK+ calls which cause the crash since gtk_init() was not called first.

However, according to the comments in gdmlogin.c, gtk_init() cannot be called before at-spi is initialized since that would crash the bridge.

I guess one thought is to pass the argc and argv info on through so that gtk_init() can be called before the error dialog is displayed.  Then, the at-spi initialization function can return a boolean as to whether or not it succeeded.  If it did not, then gtk_init() would not need to be called again.  Or just call it again since that should not cause a problem.

Alternatively, don't show the error, or only show it via syslog or on the console.  Or do something else entriely :-).
Comment 5 Joe Marcus Clarke 2006-10-24 18:07:18 UTC
Stack trace:

  • #0 IA__gtk_rc_reparse_all_for_settings
    at gtkrc.c line 843
  • #1 IA__gtk_settings_get_for_screen
    at gtksettings.c line 559
  • #2 IA__gtk_settings_get_default
    at gtksettings.c line 587
  • #3 gtk_style_init
    at gtkstyle.c line 407
  • #4 IA__g_type_create_instance
    at gtype.c line 1567
  • #5 g_object_constructor
    at gobject.c line 1041
  • #6 IA__g_object_newv
    at gobject.c line 937
  • #7 IA__g_object_new_valist
    at gobject.c line 981
  • #8 IA__g_object_new
    at gobject.c line 795
  • #9 IA__gtk_style_new
    at gtkstyle.c line 672
  • #10 IA__gtk_widget_get_default_style
    at gtkwidget.c line 5377
  • #11 gtk_widget_init
    at gtkwidget.c line 1882
  • #12 IA__g_type_create_instance
    at gtype.c line 1559
  • #13 g_object_constructor
    at gobject.c line 1041
  • #14 IA__g_object_newv
    at gobject.c line 937
  • #15 IA__g_object_new_valist
    at gobject.c line 1022
  • #16 IA__g_object_new
    at gobject.c line 795
  • #17 IA__gtk_message_dialog_new
    at gtkmessagedialog.c line 493
  • #18 error_dialog
    at gdmcommon.c line 629
  • #19 gdm_common_atspi_launch
    at gdmcommon.c line 663
  • #20 main
    at gdmlogin.c line 3213

Comment 6 Ariel Rios 2006-10-24 19:23:34 UTC
Ok I have a patch but I will do more testing before submitting it. Can someone assign this to me and make bug #345434 depend on this one.

thanks 
Comment 7 Brian Cameron 2006-10-24 19:48:25 UTC
I think the error message should just go to the syslog.  We shouldn't be crashing because we can't display a GUI.  Do we really need a pop-up dialog here?
Comment 8 Ariel Rios 2006-10-25 20:20:20 UTC
A patch will be posted to bug #345434 I have eliminated the popup and write to syslog instead more info on that bug.
Comment 9 Ariel Rios 2006-10-25 20:29:02 UTC
Patch posted. I checked it on my setup but Alex can you test it please?

ariel
Comment 10 Michal Jaegermann 2006-10-26 02:37:25 UTC
In comment #2 Brian Cameron wrote:
> I suspect that the problem is caused by the new at-spi launching stuff.

Hm, from some time I am collecting core files from at-spi-registryd.
There are some samples here:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=206323
Now I am starting wonder if this is not related.  These bombs seem
to be correlated with a gdm process terminating/restarting.
Comment 11 Brian Cameron 2006-10-27 04:15:51 UTC
If at-spi-registryd is crashing, then this should probably be moved to the at-spi category instead of GDM.  Would you move the category so this can be looked into by the at-spi experts.  Note that you might need to use the updated version of at-spi since the handshaking between GDM and at-spi is changing in 2.18.
Comment 12 Michal Jaegermann 2006-10-27 04:38:12 UTC
> If at-spi-registryd is crashing ...
Well, with the current "rawhide" updates just recently it stopped
crashing; or at least looks that way. :-)  I am still waiting what
will happen on a longer run.  In the past there were some moments
when at-spi-registryd was crashing, and later not crashing without
any changes in that, and later crashing again.

I thought that I better mention my observations but I am not really
sure what is really going on.
Comment 13 Brian Cameron 2006-10-30 18:25:39 UTC
Well, I will close this bug.  Seems the GDM issue is fixed.  If at-spi-registryd is crashing, then I'm sure that someone will report the bug to that category.
Note that older versions of at-spi-registryd have crashing problems.  On Solaris, this was related to the fact that it would try to start up the festival driver even though festival wasn't installed on the system.  You might try upgrading at-spi-registryd if it crashing becomes a problem for you.  If you aren't making
use of accessibility, then it might not be an issue at all for your use.
Comment 14 Nicolas Mailhot 2006-10-30 18:48:32 UTC
You should really ask Matthias Clasen how he fixed it in rawhide. If he patched something gdm is *not* fixed @gnome

* Fri Oct 27 2006 Matthias Clasen <mclasen redhat com> - 1:2.17.0-2
- Fix a crash with launching a11y support

* Mon Oct 23 2006 Matthias Clasen <mclasen redhat com> - 1:2.17.0-1
- Update to 2.17.0
Comment 15 Joe Marcus Clarke 2006-10-30 18:54:12 UTC
For what it's worth, I "fixed" this in FreeBSD by commenting out the contents of the error_dialog() function in anticipation of a better fix upstream once the details of the bug were reported.  So the syslog fix would be a step up.