View previous topic :: View next topic |
Author |
Message |
vertex
Joined: 24 Nov 2007 Posts: 18
|
Posted: Thu Aug 20, 2009 5:10 pm Post subject: Segmentation faults |
|
|
I've recently opened a ticket, thought I'd open a new thread too, since I'm getting more segmenation faults
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 |
|
|
maxter
Joined: 17 May 2006 Posts: 34
|
Posted: Fri Aug 21, 2009 7:59 am Post subject: |
|
|
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 |
|
|
vertex
Joined: 24 Nov 2007 Posts: 18
|
Posted: Fri Aug 21, 2009 8:31 am Post subject: |
|
|
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 |
|
|
|