Bug 13969 - trojita crashes immediately with segmentation fault
Summary: trojita crashes immediately with segmentation fault
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: i586 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Nicolas Lécureuil
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-22 12:17 CEST by Jüri Ivask
Modified: 2015-01-11 10:48 CET (History)
2 users (show)

See Also:
Source RPM: trojita-0.4.1-3.mga5.src.rpm
CVE:
Status comment:


Attachments

Description Jüri Ivask 2014-08-22 12:17:26 CEST
Description of problem: trojita crashes immediately with segmentation fault


Version-Release number of selected component (if applicable): trojita-0.4.1-3.mga5


How reproducible: On application start


Steps to Reproduce:
1.Install fresh trojita-0.4.1-3.mga5
2.Start Trojita from the menu - nothing happens
3.Start Trojita from the terminal - Segmentation fault

GDB backtrace:

$ gdb trojita
GNU gdb (GDB) 7.8-2.mga5 (Mageia release 5)
Copyright (C) 2014 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 "i586-mageia-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"...

warning: /etc/gdbinit.d/gdb-heap.py: No such file or directory
Reading symbols from trojita...Reading symbols from /home/acrux/trojita...(no debugging symbols found)...done.
(no debugging symbols found)...done.
Missing separate debuginfos, use: debuginfo-install trojita-0.4.1-3.mga5.i586
(gdb) run
Starting program: /usr/bin/trojita 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i686/libthread_db.so.1".
[New Thread 0xb0de3b40 (LWP 6852)]
[New Thread 0xb02b6b40 (LWP 6853)]
[New Thread 0xaf8ffb40 (LWP 6854)]
[New Thread 0xaefdab40 (LWP 6855)]
[New Thread 0xae7d9b40 (LWP 6856)]
[New Thread 0xad9ffb40 (LWP 6857)]
Detaching after fork from child process 6858.

Program received signal SIGSEGV, Segmentation fault.
0x082dc548 in ?? ()
(gdb) backtrace
#0  0x082dc548 in ?? ()
#1  0xb76c4db3 in QWebPagePrivate::updateWindow() () from /lib/libQt5WebKitWidgets.so.5
#2  0xb76c4e4f in QWebPage::setViewportSize(QSize const&) const () from /lib/libQt5WebKitWidgets.so.5
#3  0x080ad7e2 in Gui::EmbeddedWebView::eventFilter(QObject*, QEvent*) ()
#4  0xb48bba83 in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /lib/libQt5Core.so.5
#5  0xb79b78c8 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib/libQt5Widgets.so.5
#6  0xb79bce1c in QApplication::notify(QObject*, QEvent*) () from /lib/libQt5Widgets.so.5
#7  0xb48bbca2 in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /lib/libQt5Core.so.5
#8  0xb79f19a4 in QWidgetPrivate::sendPendingMoveAndResizeEvents(bool, bool) () from /lib/libQt5Widgets.so.5
#9  0xb79f4d8a in QWidgetPrivate::show_helper() () from /lib/libQt5Widgets.so.5
#10 0xb79f4bed in QWidgetPrivate::show_recursive() () from /lib/libQt5Widgets.so.5
#11 0xb79f4d1d in QWidgetPrivate::showChildren(bool) () from /lib/libQt5Widgets.so.5
#12 0xb79f4da1 in QWidgetPrivate::show_helper() () from /lib/libQt5Widgets.so.5
#13 0xb79f4bed in QWidgetPrivate::show_recursive() () from /lib/libQt5Widgets.so.5
#14 0xb79f4d1d in QWidgetPrivate::showChildren(bool) () from /lib/libQt5Widgets.so.5
#15 0xb79f4da1 in QWidgetPrivate::show_helper() () from /lib/libQt5Widgets.so.5
#16 0xb79f4bed in QWidgetPrivate::show_recursive() () from /lib/libQt5Widgets.so.5
#17 0xb79f4d1d in QWidgetPrivate::showChildren(bool) () from /lib/libQt5Widgets.so.5
#18 0xb79f4da1 in QWidgetPrivate::show_helper() () from /lib/libQt5Widgets.so.5
#19 0xb79f735e in QWidget::setVisible(bool) () from /lib/libQt5Widgets.so.5
#20 0xb79f4ae0 in QWidget::show() () from /lib/libQt5Widgets.so.5
#21 0xb79f4d31 in QWidgetPrivate::showChildren(bool) () from /lib/libQt5Widgets.so.5
#22 0xb79f4da1 in QWidgetPrivate::show_helper() () from /lib/libQt5Widgets.so.5
#23 0xb79f735e in QWidget::setVisible(bool) () from /lib/libQt5Widgets.so.5
#24 0xb79f4ae0 in QWidget::show() () from /lib/libQt5Widgets.so.5
#25 0x08071570 in main ()
(gdb) 


Reproducible: 

Steps to Reproduce:
Jüri Ivask 2014-08-22 12:22:52 CEST

Assignee: bugsquad => mageia

Comment 1 Nicolas Lécureuil 2014-08-22 23:22:38 CEST
please install the debuginfo packages.
Comment 2 Jüri Ivask 2014-08-26 10:11:19 CEST
After installing all asked debuginfo packages:

$ gdb trojita
GNU gdb (GDB) 7.8-2.mga5 (Mageia release 5)
Copyright (C) 2014 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 "i586-mageia-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"...

warning: /etc/gdbinit.d/gdb-heap.py: No such file or directory
Reading symbols from trojita...Reading symbols from /usr/lib/debug/usr/bin/trojita.debug...done.
done.
(gdb) run
Starting program: /usr/bin/trojita 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/i686/libthread_db.so.1".
[New Thread 0xb0d7db40 (LWP 3814)]
[New Thread 0xb0252b40 (LWP 3815)]
[New Thread 0xaf8c0b40 (LWP 3816)]
[New Thread 0xaef91b40 (LWP 3817)]
[New Thread 0xae771b40 (LWP 3818)]
[New Thread 0xad9ffb40 (LWP 3819)]
Detaching after fork from child process 3820.

Program received signal SIGSEGV, Segmentation fault.
0x082dc548 in vtable for Gui::MessageView ()
(gdb) backtrace
#0  0x082dc548 in vtable for Gui::MessageView ()
#1  0xb48ed53f in QObject::disconnect (sender=0x86b2980, signal=<optimized out>, receiver=0x839d878, 
    method=<optimized out>) at kernel/qobject.cpp:2921
#2  0xb76c3db3 in QWebPagePrivate::updateWindow (this=0x83572c0) at WebKit/qt/WidgetApi/qwebpage.cpp:1968
#3  0xb76c3e4f in QWebPage::setViewportSize (this=0x839d878, size=...) at WebKit/qt/WidgetApi/qwebpage.cpp:1949
#4  0x080ad7e2 in constrainSize (this=0x839f370) at /usr/src/debug/trojita-0.4.1/src/Gui/EmbeddedWebView.cpp:128
#5  Gui::EmbeddedWebView::eventFilter (this=0x839f370, o=0x8353eb8, e=0xbfffe7f4)
    at /usr/src/debug/trojita-0.4.1/src/Gui/EmbeddedWebView.cpp:174
#6  0xb48baa83 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x82f3b10, receiver=0x8353eb8, 
    event=0xbfffe7f4) at kernel/qcoreapplication.cpp:1031
#7  0xb79b68c8 in QApplicationPrivate::notify_helper (this=0x82f3b10, receiver=0x8353eb8, e=0xbfffe7f4)
    at kernel/qapplication.cpp:3518
#8  0xb79bbe1c in QApplication::notify (this=0xbfffed84, receiver=0x8353eb8, e=0xbfffe7f4)
    at kernel/qapplication.cpp:3487
#9  0xb48baca2 in QCoreApplication::notifyInternal (this=0xbfffed84, receiver=0x8353eb8, event=0xbfffe7f4)
    at kernel/qcoreapplication.cpp:935
#10 0xb79f09a4 in sendEvent (event=0xbfffe7f4, receiver=0x8353eb8) at ../../src/corelib/kernel/qcoreapplication.h:237
#11 QWidgetPrivate::sendPendingMoveAndResizeEvents (this=0x8376b00, recursive=false, disableUpdates=<optimized out>)
    at kernel/qwidget.cpp:7078
#12 0xb79f3d8a in QWidgetPrivate::show_helper (this=0x8376b00) at kernel/qwidget.cpp:7129
#13 0xb79f3bed in QWidgetPrivate::show_recursive (this=0x8376b00) at kernel/qwidget.cpp:7059
#14 0xb79f3d1d in QWidgetPrivate::showChildren (this=0x8345208, spontaneous=false) at kernel/qwidget.cpp:7476
#15 0xb79f3da1 in QWidgetPrivate::show_helper (this=0x8345208) at kernel/qwidget.cpp:7135
#16 0xb79f3bed in QWidgetPrivate::show_recursive (this=0x8345208) at kernel/qwidget.cpp:7059
#17 0xb79f3d1d in QWidgetPrivate::showChildren (this=0x86b2d70, spontaneous=false) at kernel/qwidget.cpp:7476
#18 0xb79f3da1 in QWidgetPrivate::show_helper (this=0x86b2d70) at kernel/qwidget.cpp:7135
#19 0xb79f3bed in QWidgetPrivate::show_recursive (this=0x86b2d70) at kernel/qwidget.cpp:7059
#20 0xb79f3d1d in QWidgetPrivate::showChildren (this=0x86b3078, spontaneous=false) at kernel/qwidget.cpp:7476
#21 0xb79f3da1 in QWidgetPrivate::show_helper (this=0x86b3078) at kernel/qwidget.cpp:7135
#22 0xb79f635e in QWidget::setVisible (this=0x86704a0, visible=true) at kernel/qwidget.cpp:7395
#23 0xb79f3ae0 in QWidget::show (this=0x86704a0) at kernel/qwidget.cpp:7036
#24 0xb79f3d31 in QWidgetPrivate::showChildren (this=0x83217f0, spontaneous=false) at kernel/qwidget.cpp:7478
#25 0xb79f3da1 in QWidgetPrivate::show_helper (this=0x83217f0) at kernel/qwidget.cpp:7135
#26 0xb79f635e in QWidget::setVisible (this=0xbfffedac, visible=true) at kernel/qwidget.cpp:7395
#27 0xb79f3ae0 in QWidget::show (this=0xbfffedac) at kernel/qwidget.cpp:7036
---Type <return> to continue, or q <return> to quit---
#28 0x08071570 in main (argc=1, argv=0xbffff004) at /usr/src/debug/trojita-0.4.1/src/Gui/main.cpp:85
(gdb)
Comment 3 Dimitrios Glentadakis 2014-09-29 17:05:28 CEST
It is ok if we go back to qt4 for mga5 ?

CC: (none) => dglent

Comment 4 Jüri Ivask 2014-09-30 08:45:12 CEST
Is it related to: https://bugs.kde.org/show_bug.cgi?id=337643 ?
Then there is a fix in Qt 5.3.2.
Comment 5 Dimitrios Glentadakis 2014-10-05 10:09:18 CEST
I reverted to qt4 in trojita-0.4.1-5.mga5 until Nicolas fixes it.

This is the git version 2014-08-14 (commit in github bed8ef752b5128e0e4af880856672e630ae76814)
- Option to launch the application in system tray (i use it in lxqt desktop to have trojita starting at login)
- Patch: Option to set the imap idle renewal time (fixes bug with an imap free.fr account:goes offline after 20 minutes, or others, where the timeout happens in less than 29 minutes (imap standards value))
- Dropped the patch from open suse (no more needed)
- Patch : desktop file validation (missing semicolon)

Patches have been sent upstream:
https://gerrit.vesnicky.cesnet.cz/r/#/c/72/
https://gerrit.vesnicky.cesnet.cz/r/#/c/73/
Comment 6 Georges Eckenschwiller 2014-10-29 12:02:02 CET
@Jüri Ivask

Which is your processor?
With support of the instructions sse2?

It seems that qt5 is compiled to use sse2, while a little bit old processors support only sse

CC: (none) => paiiou

Comment 7 Jüri Ivask 2014-10-29 13:35:24 CET
@ Georges Eckenschwiller

Intel(R) Core(TM)2 Duo CPU P8600  @ 2.40GHz
Flags: âfpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts aperfmperf pni dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm sse4_1 xsave lahf_lm ida dtherm tpr_shadow vnmi flexpriority
Comment 8 Nicolas Lécureuil 2014-12-23 11:13:41 CET
close as we use qt4 for mga5 trojita

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 9 Dimitrios Glentadakis 2015-01-01 11:06:35 CET
I tested to build trojita with qt5 in my system cauldron and it still fails to start with segmentation fault

lib64qt5test-devel-5.4.0-3.mga5                                                                  
lib64qt5webkit5-5.4.0-1.mga5                                                                     
lib64qt5webkit-devel-5.4.0-1.mga5                                                                
lib64qt5webkitwidgets5-5.4.0-1.mga5                                                              
lib64qt5webkitwidgets-devel-5.4.0-1.mga5
Comment 10 Dimitrios Glentadakis 2015-01-06 06:32:56 CET
Today i run trojita with qt5 successfully

I've uploaded a package for tests here:
http://www.mageia-gr.org/rpm/5/x86_64/
Comment 11 Dimitrios Glentadakis 2015-01-09 06:16:51 CET
There is a bug in the qt5 version, i reported here:
https://bugs.kde.org/show_bug.cgi?id=342565
Comment 12 Dimitrios Glentadakis 2015-01-10 10:01:29 CET
I tried to build the latest git , and i have again the segmentation fault:
https://bugs.kde.org/show_bug.cgi?id=342686
Comment 13 Dimitrios Glentadakis 2015-01-11 10:48:26 CET
Ok, this package is ok with qt5 and it has the patch to fix the 'move' action:

trojita-0.4.1-git.c170655amgr5.x86_64.rpm
trojita-debuginfo-0.4.1-git.c170655amgr5.x86_64.rpm

http://www.mageia-gr.org/rpm/5/x86_64/

Note You need to log in before you can comment on or make changes to this bug.