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

Segfault in GtkD.init()
Goto page Previous  1, 2
 
Post new topic   Reply to topic     Forum Index -> gtkD
View previous topic :: View next topic  
Author Message
Mike Wey



Joined: 07 May 2007
Posts: 428

PostPosted: Fri Dec 28, 2007 5:40 pm    Post subject: Reply with quote

Did some testing with -rdynamic, when building with dmd and passing -rdynamic to the linker it also generates a segfault.

Quote:
I'm still a little confused...


dmd 1.024 works
dmd 1.024 + -rdynamic segfault
gdc 0.23 works
gdc 0.23 + -rdynamic segfault
gdc 0.24 char** problem, but for the rest works.
gdc 0.24 + -rdynamic segfault
dsss + dmd 1.24 works
dsss + gdc 0.23 segfault
dsss + gdc 0.24 segfault

Those are the combinations i've tried.

dsss only passes the -q and -rdynamic flags when building with gdc.
Back to top
View user's profile Send private message
Pse



Joined: 13 Dec 2007
Posts: 36

PostPosted: Fri Dec 28, 2007 5:45 pm    Post subject: Reply with quote

Excellent report, Mike. Would you mind adding it to ticket #4?
I wonder if there's some way of forcing certain flags when building with dsss? Otherwise we'll just have to settle for a makefile when building with gdc for the moment.
Mike, are you getting undefined symbols when building the glade demo with gdc-0.23? (Cairo works, so please test some of the other demos).
Back to top
View user's profile Send private message
JJR



Joined: 22 Feb 2004
Posts: 1104

PostPosted: Fri Dec 28, 2007 6:36 pm    Post subject: Reply with quote

Thanks Mike,

That makes it very clear. Very Happy

So dsss needs to provide a way to not use -rdynamic with gdc... looks like a ticket for dsss.

I'm curious to know why Gregor made dsss pass these flags for the gdc profile.
Back to top
View user's profile Send private message
JJR



Joined: 22 Feb 2004
Posts: 1104

PostPosted: Fri Dec 28, 2007 6:56 pm    Post subject: Reply with quote

Heh...

Okay, guys. Have a look in dsss' rebuild profile directory (etc/rebulid)

when using gdc, the profile is set to gdc-posix on linux. Have a look in there and find the section "export_dynamic=-q,-rdynamic".

Interesting, eh?

Remove the -rdynamic from that line and see how dsss fairs. Very Happy

Incidentally, we don't want to have to change this on everyone's install, so a solution would be to override this option using "dsss --config" and providing our own config file for GtkD.... Or perhaps there's a way to override this a an actual symbol in the dsss.conf file.

Anyway... good to know we have some flexibility with dsss, no?
Back to top
View user's profile Send private message
Pse



Joined: 13 Dec 2007
Posts: 36

PostPosted: Fri Dec 28, 2007 8:10 pm    Post subject: Reply with quote

JJR wrote:
Heh...

Okay, guys. Have a look in dsss' rebuild profile directory (etc/rebulid)

when using gdc, the profile is set to gdc-posix on linux. Have a look in there and find the section "export_dynamic=-q,-rdynamic".

Interesting, eh?

Remove the -rdynamic from that line and see how dsss fairs. :D

Incidentally, we don't want to have to change this on everyone's install, so a solution would be to override this option using "dsss --config" and providing our own config file for GtkD.... Or perhaps there's a way to override this a an actual symbol in the dsss.conf file.

Anyway... good to know we have some flexibility with dsss, no?


Lol, we actually thought about the same thing. Have a look in ticket #4 ;).

Incidentally, important stuff such as this should be posted in the ticket, otherwise there's chance it won't get noticed.


Last edited by Pse on Fri Dec 28, 2007 8:19 pm; edited 2 times in total
Back to top
View user's profile Send private message
JJR



Joined: 22 Feb 2004
Posts: 1104

PostPosted: Fri Dec 28, 2007 8:17 pm    Post subject: Reply with quote

Laughing

Good to see the solutions are there at least!

-JJR
Back to top
View user's profile Send private message
JJR



Joined: 22 Feb 2004
Posts: 1104

PostPosted: Fri Dec 28, 2007 8:18 pm    Post subject: Reply with quote

Pse wrote:
Incidentally, important stuff such as this should be posted in the ticket, otherwise there's chance it won't get noticed.


Okay, I'll try to remember for next time. Smile
Back to top
View user's profile Send private message
Pse



Joined: 13 Dec 2007
Posts: 36

PostPosted: Sat Dec 29, 2007 12:13 am    Post subject: Reply with quote

SVN HEAD should now work out of the box with GDC versions 0.22 and 0.23. Please test and report any bugs to ticket #4.
Please note that GDC versions 0.24 and 0.25 are NOT supported.

Thanks go to JJR and Mike Wey. Great job, guys.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic     Forum Index -> gtkD All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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