GNOME Bugzilla – Bug 749987
[PATCH] GDM Segfaults on monitor hotplug
Last modified: 2015-05-27 17:47:50 UTC
Created attachment 304089 [details] [review] Proposed fix GDM is segfaulting when I power on or otherwise hotplug my DisplayPort monitor. >[ 57.128701] gdm[3000]: segfault at 8 ip 00007f0ed70bba20 sp 00007fffd1bf9460 error 4 in gdm[7f0ed70a0000+5c000] I've tracked the issue down to the new code for get_user_session_for_display introduced in e5a0e92f59e25. To me, this looks like an inadvertent double-increment on the node pointer, so attached is a patch which fixes this and changes the loop structure to be slightly more self-explanatory. Also attached will be a gdb log containing the backtrace from the core dump. I can upload the full core if further investigation is required.
Created attachment 304090 [details] GDB log with backtrace
Proposed fix is tested and working on my machine, would appreciate a confirmation test. Thanks!
Review of attachment 304089 [details] [review]: Yeah, this is obviously correct. Nice catch, thanks!
Yea, nice catch. Thank you very much!