Bug 1382990

Summary: mediawriter dumps core if it cannot open a display
Product: [Fedora] Fedora Reporter: Zbigniew Jędrzejewski-Szmek <zbyszek>
Component: mediawriterAssignee: Martin Bříza <mbriza>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: mbriza
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mediawriter-3.97.2-0.fc25 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-10-18 11:31:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Zbigniew Jędrzejewski-Szmek 2016-10-08 22:32:39 UTC
Description of problem:
$ DISPLAY= mediawriter
Fatal: QXcbConnection: Could not connect to display  ((null):0, (null))
[1]    24001 abort (core dumped)  DISPLAY= mediawriter

(gdb) bt
#0  0x00007f331742d92f in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:58
#1  0x00007f331742f52a in __GI_abort () at abort.c:89
#2  0x00005595b05c1bec in myMessageOutput(QtMsgType, QMessageLogContext const&, QString const&) (type=QtFatalMsg, context=..., msg=...) at /usr/src/debug/MediaWriter-3.97.1/app/main.cpp:49
#3  0x00007f331858706d in qt_message_print(enum QtMsgType, const QMessageLogContext &, const QString &) (msgType=msgType@entry=QtFatalMsg, context=..., message=...) at global/qlogging.cpp:1645
#4  0x00007f33185871c8 in qt_message(enum QtMsgType, const QMessageLogContext &, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtFatalMsg, context=..., msg=msg@entry=0x7f330e3689e8 "QXcbConnection: Could not connect to display %s", ap=ap@entry=0x7ffcdb8ddb00) at global/qlogging.cpp:278
#5  0x00007f3318588ad9 in QMessageLogger::fatal(char const*, ...) const (this=this@entry=0x7ffcdb8ddc60, msg=msg@entry=0x7f330e3689e8 "QXcbConnection: Could not connect to display %s") at global/qlogging.cpp:790
#6  0x00007f330e2d9b5e in QXcbConnection::QXcbConnection(QXcbNativeInterface*, bool, unsigned int, char const*) (this=0x5595b10084c0, nativeInterface=0x5595b0ff0980, canGrabServer=<optimized out>, defaultVisualId=<optimized out>, displayName=<optimized out>) at qxcbconnection.cpp:592
#7  0x00007f330e2dcd1e in QXcbIntegration::QXcbIntegration(QStringList const&, int&, char**) (this=<optimized out>, parameters=..., argc=@0x7ffcdb8de21c: 1, argv=0x7ffcdb8de3e8) at qxcbintegration.cpp:186
#8  0x00007f3319f126ed in QXcbIntegrationPlugin::create(QString const&, QStringList const&, int&, char**) (this=<optimized out>, system=..., parameters=..., argc=@0x7ffcdb8de21c: 1, argv=0x7ffcdb8de3e8) at qxcbmain.cpp:56
#9  0x00007f3318eef8fd in QPlatformIntegrationFactory::create(QString const&, QStringList const&, int&, char**, QString const&) (platform=..., paramList=..., argc=@0x7ffcdb8de21c: 1, argv=<optimized out>, argv@entry=0x7ffcdb8de3e8, platformPluginPath=...) at kernel/qplatformintegrationfactory.cpp:71
#10 0x00007f3318efd0c1 in init_platform (argv=<optimized out>, argc=@0x7ffcdb8de21c: 1, platformThemeName=..., platformPluginPath=..., pluginArgument=...) at kernel/qguiapplication.cpp:1094
#11 0x00007f3318efd0c1 in QGuiApplicationPrivate::createPlatformIntegration() (this=0x5595b0fec960) at kernel/qguiapplication.cpp:1263
#12 0x00007f3318efdf3d in QGuiApplicationPrivate::createEventDispatcher() (this=<optimized out>) at kernel/qguiapplication.cpp:1280
#13 0x00007f33187434f9 in QCoreApplicationPrivate::init() (this=this@entry=0x5595b0fec960) at kernel/qcoreapplication.cpp:787
#14 0x00007f3318eff19e in QGuiApplicationPrivate::init() (this=this@entry=0x5595b0fec960) at kernel/qguiapplication.cpp:1303
#15 0x00007f3319412619 in QApplicationPrivate::init() (this=0x5595b0fec960) at kernel/qapplication.cpp:583
#16 0x00005595b05c133e in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/MediaWriter-3.97.1/app/main.cpp:62

Version-Release number of selected component (if applicable):
mediawriter-3.97.1-0.fc25.x86_64

Comment 1 Martin Bříza 2016-10-10 12:40:04 UTC
Changed to exit(1) upstream, thanks for the report.

Comment 2 Fedora Update System 2016-10-12 01:53:04 UTC
mediawriter-3.97.2-0.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-fc9e87107b

Comment 3 Fedora Update System 2016-10-18 11:31:15 UTC
mediawriter-3.97.2-0.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.