View previous topic :: View next topic |
Author |
Message |
zane.sims
Joined: 07 Aug 2007 Posts: 40
|
Posted: Sun Nov 22, 2009 9:12 am Post subject: [Bug?] DSSS v0.78 & DMD v2.036 - Infinite Loop |
|
|
Hello,
I started playing around with DMD v2.036 (previously using 1.x) and encountered a problem using DSSS v0.78 on windows when trying to compile the trivial code below. What happens is that DSSS begins an infinite loop with no command line output and rapidly starts consuming memory. After it consumed about 300MB I manually killed the process.
Code: | module main;
private import std.stream;
int main(char[][] args)
{
return 0;
} |
If I comment out the "private import std.stream;" line, then everything works fine. If I replace that line with "private import std.file;" I get the same thing. If I replace that line with "private import std.c.time;", everything works fine.
Is there something that is possibly misconfigured for use with DMD v2.036 or is this a legitimate bug?
Thanks!
Zane _________________ わたしがプログラマだよ! |
|
Back to top |
|
|
michaelp
Joined: 27 Jul 2008 Posts: 114
|
|
Back to top |
|
|
zane.sims
Joined: 07 Aug 2007 Posts: 40
|
Posted: Sun Nov 22, 2009 10:32 am Post subject: |
|
|
Thanks michaelp,
However, I question whether these problems are related because the triggers are different (I am not familier with DSSS code, but just making an observation). The posts you listed were encountering an infinite memory eating loop because of an error in the source code to be compiled. My example has no error (I don't see one), but rather is seemingly being introduced by the importing of standard core phobos modules. Not sure why some modules will import fine and others will not.
Thanks,
Zane _________________ わたしがプログラマだよ! |
|
Back to top |
|
|
michaelp
Joined: 27 Jul 2008 Posts: 114
|
Posted: Sun Nov 22, 2009 8:42 pm Post subject: |
|
|
Might want to compile with dmd first then, to make sure that there is no error from dmd.
Make sure that works, if you haven't already. |
|
Back to top |
|
|
zane.sims
Joined: 07 Aug 2007 Posts: 40
|
Posted: Thu Nov 26, 2009 8:07 am Post subject: |
|
|
I have and it works perfectly with DMD alone. DSSS causes the problem. _________________ わたしがプログラマだよ! |
|
Back to top |
|
|
CrypticMetaphor88
Joined: 07 Dec 2010 Posts: 4
|
Posted: Tue Dec 07, 2010 12:28 pm Post subject: |
|
|
I have the same problem!
If I try to run
Code: |
name = cairo_clock
version = 0.1
requires = gtkd
[main.d]
type = binary
target = cairo_clock
buildflags = -I../../../demos/ -I../../../src
version(linux) {
buildflags +=-L-ldl
}
version(Windows){
buildflags+=-lladvapi32
}
|
The build settings of a gtkD demo program, If I compile with dsss I get the infinite loop problem, But if I compile with dmd, it works fine |
|
Back to top |
|
|
|