Qt5 programs on exit terminated with Segmentation fault
Original Reporter info from Mantis: valyo
-
Reporter name: Valentin
Original Reporter info from Mantis: valyo
- Reporter name: Valentin
Description:
Programs with LCLWidgetType:=qt5 exit with Segmentation fault.
Workaround the problem:
procedure TForm1.FormDestroy(Sender: TObject);
begin
FreeAndNil(Self)
end;
Steps to reproduce:
Kubuntu: 19.04
KDE Plasma: 5.15.4
Qt Version: 5.12.2
Qt type: 64-bit
Additional information:
Application: Project1 (Project1), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fdf2ba54bc0 (LWP 18787))]
Thread 3 (Thread 0x7fdf23512700 (LWP 18789)):
#0 0x00007fdf2fb1d729 in __GI___poll (fds=0x7fdf1c004e30, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1 0x00007fdf2db18bf6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007fdf2db18d1c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3 0x00007fdf2e964063 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#4 0x00007fdf2e90f5bb in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5 0x00007fdf2e75a2c6 in QThread::exec() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#6 0x00007fdf2af82565 in ?? () from /lib/x86_64-linux-gnu/libQt5DBus.so.5
#7 0x00007fdf2e75b612 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#8 0x00007fdf2e45f182 in start_thread (arg=<optimized out>) at pthread_create.c:486
#9 0x00007fdf2fb29b1f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 2 (Thread 0x7fdf29f84700 (LWP 18788)):
#0 0x00007fdf2fb1d729 in __GI___poll (fds=0x7fdf29f83d28, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1 0x00007fdf2e482917 in ?? () from /lib/x86_64-linux-gnu/libxcb.so.1
#2 0x00007fdf2e48453a in xcb_wait_for_event () from /lib/x86_64-linux-gnu/libxcb.so.1
#3 0x00007fdf2b0ba6a8 in ?? () from /lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4 0x00007fdf2e75b612 in ?? () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#5 0x00007fdf2e45f182 in start_thread (arg=<optimized out>) at pthread_create.c:486
#6 0x00007fdf2fb29b1f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
Thread 1 (Thread 0x7fdf2ba54bc0 (LWP 18787)):
[KCrash Handler]
#6 0x00007fdf2e937dbe in QMetaCallEvent::QMetaCallEvent(QtPrivate::QSlotObjectBase*, QObject const*, int, int, int*, void**, QSemaphore*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#7 0x00007fdf2e93a2e4 in QMetaObject::activate(QObject*, int, int, void**) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#8 0x00007fdf2e93aaaf in QObject::destroyed(QObject*) () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#9 0x00007fdf2e94128f in QObject::~QObject() () from /lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007fdf28e241b0 in ?? () from /lib/x86_64-linux-gnu/libKF5IconThemes.so.5
#11 0x00007fdf2fa532ac in __run_exit_handlers (status=0, listp=0x7fdf2fbf0718 <__exit_funcs>, run_list_atexit=run_list_atexit@entry=true, run_dtors=run_dtors@entry=true) at exit.c:108
#12 0x00007fdf2fa533da in __GI_exit (status=<optimized out>) at exit.c:139
#13 0x00007fdf2fa32b72 in __libc_start_main (main=0x7fff94e91b80, argc=0, argv=0x0, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff94e91c88) at ../csu/libc-start.c:342
#14 0x0000000000000000 in ?? ()
[Inferior 1 (process 18787) detached]
Mantis conversion info:
- Mantis ID: 36019
- OS: Kubuntu
- OS Build: 19.04
- Platform: Linux
- Version: 2.0.4