smart --gui segfaults when no X display available

Bug #244510 reported by Rehan Khan
2
Affects Status Importance Assigned to Milestone
Smart Package Manager
New
High
Gustavo Niemeyer

Bug Description

Imported: http://tracker.labix.org/issue284

Reason: Bug

further details: https://blueprints.launchpad.net/smart/+spec/bug-reporting-migration

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
http://qa.mandriva.com/show_bug.cgi?id=27187

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

smart version is 0.50.2mdv2007.1 (Mandriva Cooker)

Related branches

Rehan Khan (rasker)
Changed in smart:
assignee: nobody → niemeyer
importance: Undecided → High
Revision history for this message
netmask (netmask) wrote :

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

Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.