FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Segmentation faults

 
Post new topic   Reply to topic     Forum Index -> QtD
View previous topic :: View next topic  
Author Message
vertex



Joined: 24 Nov 2007
Posts: 18

PostPosted: Thu Aug 20, 2009 5:10 pm    Post subject: Segmentation faults Reply with quote

I've recently opened a ticket, thought I'd open a new thread too, since I'm getting more segmenation faults Sad

The first one was QObject's parent function. While I was able to work around that I'm now getting a segmentation fault when I try to access the homePath member of the QDir class (it's a static member). It seems like every member of QDir that returns a QString segfaults.

I checked out the trunk an hour or two ago, rebuilt everything and those errors are still there (Ubuntu/DMD1).

Does anyone else have problems with segfaults?
Back to top
View user's profile Send private message
maxter



Joined: 17 May 2006
Posts: 34

PostPosted: Fri Aug 21, 2009 7:59 am    Post subject: Reply with quote

I'm afraid I cannot tell what is going on until I have a failing testcase. I have just tested some members of QDir that return strings and they work fine. Does the following test case fail for you?

Code:

import tango.io.Stdout;

import qt.gui.QMainWindow;
import qt.core.QDir;

public class TestWindow : QMainWindow
{
    public this()
    {
        new QWidget(this);
       
        Stdout(QDir.homePath).newline;
        Stdout(QDir.rootPath).newline;
       
        scope d = new QDir(QDir.homePath);
        Stdout(d.path).newline;
        Stdout(d.relativeFilePath("/home")).newline;
    }
}

void main(char[][] args)
{
    scope app = new QApplication(args);
    scope mainWin = new TestWindow;
    mainWin.show();
    return app.exec();
}
Back to top
View user's profile Send private message
vertex



Joined: 24 Nov 2007
Posts: 18

PostPosted: Fri Aug 21, 2009 8:31 am    Post subject: Reply with quote

Code:
vertex@lucia:~/coding/tests$ ./qdirtest
Segmentation fault
vertex@lucia:~/coding/tests$


There's something going on here ... the other segfault (with the .children method of QObject) segfaults on my system too and it doesn't seem to be reproducable anywhere else.

Could something outside of QtD be responsible? Maybe Kubuntu ships some broken Qt binaries that get linked in?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> QtD All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group