smart --gui segfaults when no X display available

Bug #244510 reported by Rehan Khan on 2008-07-01
Affects Status Importance Assigned to Milestone
Smart Package Manager
Gustavo Niemeyer

Bug Description


Reason: Bug

further details:

msg1440 (view) Author: rasker Date: 2008-07-01.11:51:15

Tested with 0.52 on Fedora 8. Although smart doesn't segfault it doesn't catch a
failure to attach to a Display gracefully and outputs a trace.

msg1084 (view) Author: dvgevers Date: 2007-01-31.21:50:05

smart --gui segfaults when no X display available. Obviously.

I can understand that it does not work, but it should give a warning or an error
message and exit gracefully: it should not segfault:

This was previously reported downstream as

Strace is attached. stdout may be viewed at that URL.

smart version is 0.50.2mdv2007.1 (Mandriva Cooker)

Related branches

Rehan Khan (rasker) on 2008-07-01
Changed in smart:
assignee: nobody → niemeyer
importance: Undecided → High
netmask (netmask) wrote :

The attached patch makes sure GTK can open a valid display, and in case not, Smart dies gracefully.

Glenn D. (doiggl-hotmail) wrote :

On error could a terminal be used instead as a fail over option ?

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers