You are not logged in.

#1 2014-01-19 18:48:24

Tea2
Member
Registered: 2011-05-08
Posts: 25
Website

Qt4 based applications segfault, need 'bruteforcing' to run

This has been getting to me for a while. Almost anything based on Qt (Skype doesn't do this) segfaults when I try to run it. The applications eventually run if I try to run them enough times. After which, they do not exit properly (in most cases) and retain their locks on directories (if any) until I kill -9 the pid.

For example, if I run q4wine from the command line I'll get the following:

joe@corbyn ~ % q4wine                                                                                    :(
[ii] loaded: "q4wine_en_us" 
[1]    16887 segmentation fault (core dumped)  q4wine

On running dmesg it'll display:

[21638.236453] q4wine[16947]: segfault at 10 ip 00007f5f7e475224 sp 00007fff23078940 error 4 in libpthread-2.18.so[7f5f7e46b000+18000]

.

The same is seen for any of the Qt settings programs, {doge,cat,bit}coin-qt (I'm sorry) and others. I've tried reinstalling glibc and qt4 and all the rest of it. I can't pinpoint when it first starting hapening but it was surely before Christmas.

The weird thing is that the segfault seems to only occur 9/10 times. If I keep pressing up and enter after the first segfault the program will eventually run at some unspecified time.

So what gives? I'm not really sure how I can find out more about what the segfault's being caused by or what it means.

Offline

#2 2014-01-27 16:45:43

Tea2
Member
Registered: 2011-05-08
Posts: 25
Website

Re: Qt4 based applications segfault, need 'bruteforcing' to run

This is still occuring and it's still annoying. I've made no progress in trying to understand why or how.

Offline

#3 2014-01-27 16:49:55

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: Qt4 based applications segfault, need 'bruteforcing' to run

You should try rebuilding it.

Offline

#4 2014-01-27 18:40:15

Tea2
Member
Registered: 2011-05-08
Posts: 25
Website

Re: Qt4 based applications segfault, need 'bruteforcing' to run

Have just attmpted to build qt4 using the PKGBUILD from ABS. It failed with the following:

compiling helpviewer_qwv.cpp
compiling .moc/release-shared/moc_bookmarkfiltermodel.cpp
compiling .moc/release-shared/moc_bookmarkmanagerwidget.cpp
compiling .moc/release-shared/moc_bookmarkdialog.cpp
compiling .moc/release-shared/moc_bookmarkmanager.cpp
compiling .moc/release-shared/moc_bookmarkmodel.cpp
helpviewer_qwv.cpp:160:1: error: expected class-name before ‘{’ token
 {
 ^
helpviewer_qwv.cpp:165:13: error: ‘QWebPage’ does not name a type
     virtual QWebPage *createWindow(QWebPage::WebWindowType);
             ^
helpviewer_qwv.cpp:166:32: error: ‘WebAction’ has not been declared
     virtual void triggerAction(WebAction action, bool checked = false);
                                ^
helpviewer_qwv.cpp:168:42: error: ‘QWebFrame’ has not been declared
     virtual bool acceptNavigationRequest(QWebFrame *frame,
                                          ^
helpviewer_qwv.cpp:169:41: error: ‘NavigationType’ has not been declared
         const QNetworkRequest &request, NavigationType type);
                                         ^
helpviewer_qwv.cpp: In constructor ‘HelpPage::HelpPage(QObject*)’:
helpviewer_qwv.cpp:181:7: error: class ‘HelpPage’ does not have any field named ‘QWebPage’
     : QWebPage(parent)
       ^
helpviewer_qwv.cpp: At global scope:
helpviewer_qwv.cpp:189:1: error: ‘QWebPage’ does not name a type
 QWebPage *HelpPage::createWindow(QWebPage::WebWindowType)
 ^
helpviewer_qwv.cpp:199:30: error: variable or field ‘triggerAction’ declared void
 void HelpPage::triggerAction(WebAction action, bool checked)
                              ^
helpviewer_qwv.cpp:199:30: error: ‘WebAction’ was not declared in this scope
helpviewer_qwv.cpp:199:48: error: expected primary-expression before ‘bool’
 void HelpPage::triggerAction(WebAction action, bool checked)
                                                ^
Makefile:15545: recipe for target '.obj/release-shared/helpviewer_qwv.o' failed
make[4]: *** [.obj/release-shared/helpviewer_qwv.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/home/joe/Packages/qt4/src/qt-everywhere-opensource-src-4.8.5/tools/assistant/tools/assistant'
Makefile:42: recipe for target 'sub-assistant-make_default-ordered' failed
make[3]: *** [sub-assistant-make_default-ordered] Error 2
make[3]: Leaving directory '/home/joe/Packages/qt4/src/qt-everywhere-opensource-src-4.8.5/tools/assistant/tools'
Makefile:113: recipe for target 'sub-tools-make_default-ordered' failed
make[2]: *** [sub-tools-make_default-ordered] Error 2
make[2]: Leaving directory '/home/joe/Packages/qt4/src/qt-everywhere-opensource-src-4.8.5/tools/assistant'
Makefile:52: recipe for target 'sub-assistant-make_default-ordered' failed
make[1]: *** [sub-assistant-make_default-ordered] Error 2
make[1]: Leaving directory '/home/joe/Packages/qt4/src/qt-everywhere-opensource-src-4.8.5/tools'
Makefile:891: recipe for target 'sub-tools-make_default-ordered' failed
make: *** [sub-tools-make_default-ordered] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Offline

#5 2014-01-27 20:26:36

Šaran
Member
From: Bosnia
Registered: 2011-09-03
Posts: 407

Re: Qt4 based applications segfault, need 'bruteforcing' to run

I have no idea why it is failing, but why do want to build it anyway?
qt4 is in repos and I have just successfully built q4wine-git from AUR.

Offline

#6 2014-01-27 21:41:08

Tea2
Member
Registered: 2011-05-08
Posts: 25
Website

Re: Qt4 based applications segfault, need 'bruteforcing' to run

Šaran wrote:

I have no idea why it is failing, but why do want to build it anyway?
qt4 is in repos and I have just successfully built q4wine-git from AUR.

I've alredy tried rebuilding the applications themselves.

Offline

Board footer

Powered by FluxBB