GNOME Bugzilla – Bug 552051
gnome-display-properties crashed with SIGSEGV in strcmp()
Last modified: 2009-02-26 02:15:59 UTC
Steps to reproduce: Originally reported at https://bugs.launchpad.net/bugs/269595 The display capplet can crash in on_screen_changed(), when output->name is NULL. Stack trace:
+ Trace 206711
Other information:
Created attachment 118633 [details] [review] Patch to check for NULL output->name Hi, This patch should prevent the crash. It may no lead to correct results if it means none of the screen names match, but it seems like that could be the case with the current code. Thanks, James
Is this reproducable in some way? I don't think output->name should ever be NULL there unless there is memory corruption or something like that. Does the X server actually send a NULL name for the output? Ie., in output_initialize() is info->name actually NULL?
Hi, I don't have a recipe to reproduce it. However, in gnome-desktop there are many checks for output->name being NULL, so I figured adding one more was the right thing to do. Thanks, James
The patch doesn't apply anymore. Marking as obsolete.