You are not logged in.

#1 2020-09-29 13:49:15

megapink
Member
Registered: 2020-03-24
Posts: 24

[SOLVED] fbreader segfaults failing to launch

$ FBReader
qt.qpa.xcb: QXcbConnection: XCB error: 5 (BadAtom), sequence: 594, resource id: 0, major code: 20 (GetProperty), minor code: 0
[1]    5547 segmentation fault (core dumped)  FBReader

This error has been the case for maybe a month now, and a recent pacman -Syu (about a week ago) didn't help. It's just now that I actually need fbreader and creating this issue.

Any ideas on how to hunt down the cause for this?

Last edited by megapink (2020-09-29 17:55:50)

Offline

#2 2020-09-29 14:02:58

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 22,863

Re: [SOLVED] fbreader segfaults failing to launch

contents of the coredump? More generally timeframe maps to around the 5.15.1 qt release. If you happen to use an out of repo Qt theme you need to rebuild said theme against the new qt version.

Offline

#3 2020-09-29 14:04:16

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,237
Website

Re: [SOLVED] fbreader segfaults failing to launch


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#4 2020-09-29 14:18:59

megapink
Member
Registered: 2020-03-24
Posts: 24

Re: [SOLVED] fbreader segfaults failing to launch

@V1del, @Trilby, the dump files is 75MB, is there a preferred place to upload it?

V1del wrote:

contents of the coredump? More generally timeframe maps to around the 5.15.1 qt release. If you happen to use an out of repo Qt theme you need to rebuild said theme against the new qt version.

I don't think I ever installed any qt themes, certainly not out of repos.

Offline

#5 2020-09-29 14:30:17

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,237
Website

Re: [SOLVED] fbreader segfaults failing to launch


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2020-09-29 14:48:23

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,144

Re: [SOLVED] fbreader segfaults failing to launch

megapink wrote:

@V1del, @Trilby, the dump files is 75MB, is there a preferred place to upload it?

Post the backtrace, not the full coredump

Offline

#7 2020-09-29 15:06:42

megapink
Member
Registered: 2020-03-24
Posts: 24

Re: [SOLVED] fbreader segfaults failing to launch

ix.io didn't work out, the curl command just stays there for a minute or two and then finishes, but doesn't spit out id or any output. Sprunge doesn't even want to open, might be due to my current provider. Well, gonna borrow some space from the evil corp lol:

https://github.com/return-anyway/dumps/ … eader-dump

arojas wrote:
megapink wrote:

@V1del, @Trilby, the dump files is 75MB, is there a preferred place to upload it?

Post the backtrace, not the full coredump

gdb fb-reader dump w/ a subsequent bt full shows a lot of "no symbol info available". I guess my dump is w/out the symbols and I have to compile fbreader myself?

Last edited by megapink (2020-09-29 15:09:06)

Offline

#8 2020-09-29 17:12:25

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,144

Re: [SOLVED] fbreader segfaults failing to launch

Run fbreader in gdb and get the backtrace directly, don't use the saved coredump.

Offline

#9 2020-09-29 17:23:37

megapink
Member
Registered: 2020-03-24
Posts: 24

Re: [SOLVED] fbreader segfaults failing to launch

arojas wrote:

Run fbreader in gdb and get the backtrace directly, don't use the saved coredump.

Thanks for the pointer : ) Here's what I get:

(gdb) r
Starting program: /usr/bin/FBReader 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7ffff2c12640 (LWP 14151)]
[New Thread 0x7ffff17f6640 (LWP 14152)]
[New Thread 0x7ffff0ff5640 (LWP 14153)]
[New Thread 0x7fffe31e4640 (LWP 14154)]
[New Thread 0x7fffdbfff640 (LWP 14155)]
[New Thread 0x7fffe29e3640 (LWP 14156)]
[New Thread 0x7fffe21e2640 (LWP 14157)]
qt.qpa.xcb: QXcbConnection: XCB error: 5 (BadAtom), sequence: 594, resource id: 0, major code: 20 (GetProperty), minor code: 0

Thread 1 "FBReader" received signal SIGSEGV, Segmentation fault.
0x0000000000000000 in ?? ()
(gdb) continue
Continuing.
Couldn't get registers: No such process.
Couldn't get registers: No such process.
(gdb) [Thread 0x7fffe21e2640 (LWP 14157) exited]
[Thread 0x7fffe29e3640 (LWP 14156) exited]
[Thread 0x7fffdbfff640 (LWP 14155) exited]
[Thread 0x7fffe31e4640 (LWP 14154) exited]
[Thread 0x7ffff0ff5640 (LWP 14153) exited]
[Thread 0x7ffff17f6640 (LWP 14152) exited]
[Thread 0x7ffff2c12640 (LWP 14151) exited]

Program terminated with signal SIGSEGV, Segmentation fault.
The program no longer exists.

The program is not being run.
(gdb) 

Offline

#10 2020-09-29 17:27:13

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,144

Re: [SOLVED] fbreader segfaults failing to launch

so, type bt to get the backtrace

Offline

#11 2020-09-29 17:37:06

megapink
Member
Registered: 2020-03-24
Posts: 24

Re: [SOLVED] fbreader segfaults failing to launch

arojas wrote:

so, type bt to get the backtrace

oh, right : )

#0  0x0000000000000000 in  ()
#1  0x00007fffe09dbd19 in DBuiltinIconEngine::paint(QPainter*, QRect const&, QIcon::Mode, QIcon::State) ()
at /usr/lib/qt/plugins/iconengines/libdtkbuiltin.so
#2  0x00007ffff6ce8dad in QIcon::paint(QPainter*, QRect const&, QFlags<Qt::AlignmentFlag>, QIcon::Mode, QIcon::State) const ()
at /usr/lib/libQt5Gui.so.5
#3  0x00007ffff1eabbb0 in chameleon::ChameleonStyle::drawPrimitive(QStyle::PrimitiveElement, QStyleOption const*, QPainter*, QWidget const*) const () at /usr/lib/qt/plugins/styles/libchameleon.so
#4  0x00007ffff1eae8db in chameleon::ChameleonStyle::drawComplexControl(QStyle::ComplexControl, QStyleOptionComplex const*, QPainter*, QWidget const*) const () at /usr/lib/qt/plugins/styles/libchameleon.so
#5  0x00007ffff73f4071 in  () at /usr/lib/libQt5Widgets.so.5
#6  0x00007ffff752f1b6 in QToolButton::paintEvent(QPaintEvent*) () at /usr/lib/libQt5Widgets.so.5
#7  0x00007ffff7389b0e in QWidget::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5
#8  0x00007ffff7348752 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#9  0x00007ffff66ffcda in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#10 0x00007ffff73818e8 in QWidgetPrivate::sendPaintEvent(QRegion const&) () at /usr/lib/libQt5Widgets.so.5
#11 0x00007ffff738215c in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib/libQt5Widgets.so.5
#12 0x00007ffff7383520 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib/libQt5Widgets.so.5
#13 0x00007ffff7383336 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib/libQt5Widgets.so.5
#14 0x00007ffff7383336 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib/libQt5Widgets.so.5
#15 0x00007ffff7383336 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib/libQt5Widgets.so.5
#16 0x00007ffff7383336 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib/libQt5Widgets.so.5
#17 0x00007ffff7383336 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib/libQt5Widgets.so.5
#18 0x00007ffff7383336 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib/libQt5Widgets.so.5
#19 0x00007ffff7383336 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib/libQt5Widgets.so.5
#20 0x00007ffff7383336 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib/libQt5Widgets.so.5
#21 0x00007ffff7383336 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib/libQt5Widgets.so.5
#22 0x00007ffff7383336 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib/libQt5Widgets.so.5
#23 0x00007ffff7383336 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib/libQt5Widgets.so.5
#24 0x00007ffff7383336 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib/libQt5Widgets.so.5
#25 0x00007ffff7383336 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib/libQt5Widgets.so.5
#26 0x00007ffff7383336 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib/libQt5Widgets.so.5
#27 0x00007ffff7383336 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib/libQt5Widgets.so.5
#28 0x00007ffff7383336 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib/libQt5Widgets.so.5
#29 0x00007ffff7383336 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib/libQt5Widgets.so.5
#30 0x00007ffff7381e6d in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib/libQt5Widgets.so.5
#31 0x00007ffff7383520 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib/libQt5Widgets.so.5
#32 0x00007ffff7383336 in QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList<QObject*> const&, int, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib/libQt5Widgets.so.5
#33 0x00007ffff7381e6d in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, QFlags<QWidgetPrivate::DrawWidgetFlag>, QPainter*, QWidgetRepaintManager*) () at /usr/lib/libQt5Widgets.so.5
#34 0x00007ffff735931c in  () at /usr/lib/libQt5Widgets.so.5
#35 0x00007ffff7359b8e in  () at /usr/lib/libQt5Widgets.so.5
#36 0x00007ffff73a58e9 in  () at /usr/lib/libQt5Widgets.so.5
#37 0x00007ffff7348752 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5
#38 0x00007ffff66ffcda in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#39 0x00007ffff6c5a8e0 in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) ()
at /usr/lib/libQt5Gui.so.5
#40 0x00007ffff6c2ebac in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
at /usr/lib/libQt5Gui.so.5
#41 0x00007ffff2efaf9c in  () at /usr/lib/libQt5XcbQpa.so.5
#42 0x00007ffff556ebfc in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0
#43 0x00007ffff55c01f9 in  () at /usr/lib/libglib-2.0.so.0
#44 0x00007ffff556d421 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0
#45 0x00007ffff67589b2 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
at /usr/lib/libQt5Core.so.5
#46 0x00007ffff670e7eb in QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const () at /usr/lib/libQt5Core.so.5
#47 0x00007ffff67101a4 in QMetaObject::invokeMethod(QObject*, char const*, Qt::ConnectionType, QGenericReturnArgument, QGeneric Argument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) () at /usr/lib/libQt5Core.so.5
#48 0x00007ffff7e489d0 in ZLQtApplicationWindow::refresh() () at /usr/lib/libzlui.so.0.99
#49 0x00005555556d580a in  ()
#50 0x00000000ffffff00 in  ()
#51 0x00007ffff7edf4c6 in ZLApplication::initWindow() () at /usr/lib/libzlcore.so.0.99
#52 0x00005555556d86f2 in  ()
#53 0x0000555555964ae0 in  ()
#54 0x0000555555797ae0 in  ()
#55 0x0000555555964ae0 in  ()
#56 0x0000000000000001 in  ()
#57 0x00007ffff699aca8 in QCoreApplication::self () at /usr/lib/libQt5Core.so.5
#58 0x00007ffff66ffcda in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5
#59 0x00007ffff7389750 in QWidgetPrivate::setVisible(bool) () at /usr/lib/libQt5Widgets.so.5
#60 0x00007ffff7e4a3bd in ZLQtApplicationWindow::ZLQtApplicationWindow(ZLApplication*) () at /usr/lib/libzlui.so.0.99
#61 0x00007fffffffe0b0 in  ()
#62 0x0000000000000000 in  ()

Offline

#12 2020-09-29 17:43:46

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,144

Re: [SOLVED] fbreader segfaults failing to launch

so it's deepin's fault (once again). Set a different style with QT_STYLE_OVERRIDE, or permanently using qt5ct.

Offline

#13 2020-09-29 17:54:53

megapink
Member
Registered: 2020-03-24
Posts: 24

Re: [SOLVED] fbreader segfaults failing to launch

arojas wrote:

so it's deepin's fault (once again). Set a different style with QT_STYLE_OVERRIDE, or permanently using qt5ct.

Damn, and I ain't even using deepin, just tried deepin-screenshot once and forgot to remove it.

sudo pacman -Rs deepin-screenshot

solved the problem for me, FBReader works!

Thank you!

Offline

Board footer

Powered by FluxBB