QT wallet SIGSEGV on restore from minimised
Summary
QT wallet crashed with SIGSEGV when I tried to restore the minimised window.
Steps to reproduce
Unreliable: minimise the QT window. Attempt to restore it. Doesn't happen consistently. Most restore from minimised work fine. Perhaps only happens after a lot of txns.
Expected behavior
Window should restore without crashing
Problematic behavior
Wallet crashed on restore from being minimised
Crown-core environment info
MX 17.1 linux
Crown-core application info
Crown version v0.12.7.4-9efaaa1a
Relevant logs, dumps and/or screenshots
debug.log shows nothing useful. gdb of the core dump shows
mark@x230:~$ gdb /home/mark/.crownpos/bin/crown-qt /tmp/core-crown-qt-11-1234-1234-15591-1549880899
GNU gdb (Debian 7.12-6) 7.12.0.20161007-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /home/mark/.crownpos/bin/crown-qt...(no debugging symbols found)...done.
[New LWP 15591]
[New LWP 15596]
[New LWP 15598]
[New LWP 15597]
[New LWP 15601]
[New LWP 15600]
[New LWP 15603]
[New LWP 15643]
[New LWP 15649]
[New LWP 15646]
[New LWP 15650]
[New LWP 15645]
[New LWP 15592]
[New LWP 15651]
[New LWP 15599]
[New LWP 15595]
[New LWP 15648]
[New LWP 15602]
[New LWP 15647]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `/home/mark/.crownpos/bin/crown-qt -testnet -conf=/home/mark/.crownpos/crownpos.'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000000000091051c in QXcbScreen::mapFromNative(QPoint const&) const ()
[Current thread is 1 (Thread 0x7f42b7a0e780 (LWP 15591))]
(gdb) info threads
Id Target Id Frame
* 1 Thread 0x7f42b7a0e780 (LWP 15591) 0x000000000091051c in QXcbScreen::mapFromNative(QPoint const&) const ()
2 Thread 0x7f42a3b78700 (LWP 15596) 0x00007f42b56153c3 in select ()
from /lib/x86_64-linux-gnu/libc.so.6
3 Thread 0x7f42a2a75700 (LWP 15598) 0x00007f42b679f15f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
4 Thread 0x7f42a3276700 (LWP 15597) 0x00007f42b679f15f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
5 Thread 0x7f42a1272700 (LWP 15601) 0x00007f42b679f15f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
6 Thread 0x7f42a1a73700 (LWP 15600) 0x00007f42b679f15f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
7 Thread 0x7f429bfff700 (LWP 15603) 0x00007f42b561d0c3 in epoll_wait ()
from /lib/x86_64-linux-gnu/libc.so.6
8 Thread 0x7f4299631700 (LWP 15643) 0x00007f42b679f508 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
9 Thread 0x7f428dffb700 (LWP 15649) 0x00007f42b679f508 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
10 Thread 0x7f428f7fe700 (LWP 15646) 0x00007f42b679f508 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
11 Thread 0x7f428d7fa700 (LWP 15650) 0x00007f42b679f508 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
12 Thread 0x7f428ffff700 (LWP 15645) 0x00007f42b56153c3 in select ()
from /lib/x86_64-linux-gnu/libc.so.6
13 Thread 0x7f42b24a3700 (LWP 15592) 0x00007f42b561367d in poll ()
from /lib/x86_64-linux-gnu/libc.so.6
14 Thread 0x7f428cff9700 (LWP 15651) 0x00007f42b56153c3 in select ()
from /lib/x86_64-linux-gnu/libc.so.6
15 Thread 0x7f42a2274700 (LWP 15599) 0x00007f42b679f15f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
16 Thread 0x7f42b15d1700 (LWP 15595) 0x00007f42b56153c3 in select ()
from /lib/x86_64-linux-gnu/libc.so.6
17 Thread 0x7f428e7fc700 (LWP 15648) 0x00007f42b679f508 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
18 Thread 0x7f42a0a71700 (LWP 15602) 0x00007f42b679f15f in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
19 Thread 0x7f428effd700 (LWP 15647) 0x00007f42b679f508 in pthread_cond_time---Type <return> to continue, or q <return> to quit---
dwait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
(gdb) bt
#0 0x000000000091051c in QXcbScreen::mapFromNative(QPoint const&) const ()
#1 0x00000000008f0b1d in QXcbWindow::handleButtonPressEvent(int, int, int, int, int, QFlags<Qt::KeyboardModifier>, unsigned int) ()
#2 0x00000000008f0d83 in QXcbWindow::handleButtonPressEvent(xcb_button_press_event_t const*) ()
#3 0x0000000000909cd7 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*)
()
#4 0x000000000090a923 in QXcbConnection::processXcbEvents() ()
#5 0x00000000013ae981 in QObject::event(QEvent*) ()
#6 0x0000000000a5dadc in QApplicationPrivate::notify_helper(QObject*, QEvent*)
()
#7 0x0000000000a63056 in QApplication::notify(QObject*, QEvent*) ()
#8 0x000000000137ced3 in QCoreApplication::notifyInternal(QObject*, QEvent*)
()
#9 0x000000000137f403 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) ()
#10 0x00000000013d16ad in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
#11 0x000000000097cb3d in QUnixEventDispatcherQPA::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
#12 0x000000000137a491 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) ()
#13 0x00000000013828cb in QCoreApplication::exec() ()
#14 0x00000000004271f8 in main ()
(gdb) quit
Uploaded
- core-crown-qt-11-1234-1234-15591-1549880899
- 20190211_walkjivefly_wallet_crash_on_restore.log to https://nextcloud.crown.tech/nextcloud/s/znd8HiiAsRX3C6B
Possible fixes
/cc @artem
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information