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

[Bug?] DSSS v0.78 & DMD v2.036 - Infinite Loop

 
Post new topic   Reply to topic     Forum Index -> DSSS
View previous topic :: View next topic  
Author Message
zane.sims



Joined: 07 Aug 2007
Posts: 40

PostPosted: Sun Nov 22, 2009 9:12 am    Post subject: [Bug?] DSSS v0.78 & DMD v2.036 - Infinite Loop Reply with quote

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
View user's profile Send private message
michaelp



Joined: 27 Jul 2008
Posts: 114

PostPosted: Sun Nov 22, 2009 9:43 am    Post subject: Reply with quote

This is a legitimate bug.
Other topics that mention this bug:
http://www.dsource.org/forums/viewtopic.php?t=4907
http://dsource.org/forums/viewtopic.php?t=4460
http://dsource.org/forums/viewtopic.php?t=4433
http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D&artnum=93540
Back to top
View user's profile Send private message
zane.sims



Joined: 07 Aug 2007
Posts: 40

PostPosted: Sun Nov 22, 2009 10:32 am    Post subject: Reply with quote

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
View user's profile Send private message
michaelp



Joined: 27 Jul 2008
Posts: 114

PostPosted: Sun Nov 22, 2009 8:42 pm    Post subject: Reply with quote

Might want to compile with dmd first then, to make sure that there is no error from dmd.
Code:
dmd blah.d

Make sure that works, if you haven't already.
Back to top
View user's profile Send private message
zane.sims



Joined: 07 Aug 2007
Posts: 40

PostPosted: Thu Nov 26, 2009 8:07 am    Post subject: Reply with quote

I have and it works perfectly with DMD alone. DSSS causes the problem.
_________________
わたしがプログラマだよ!
Back to top
View user's profile Send private message
CrypticMetaphor88



Joined: 07 Dec 2010
Posts: 4

PostPosted: Tue Dec 07, 2010 12:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> DSSS 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