Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Extremely unstable Qt
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
bedahr
n00b
n00b


Joined: 19 Oct 2005
Posts: 24

PostPosted: Sat Jul 18, 2009 4:11 pm    Post subject: Extremely unstable Qt Reply with quote

Hi!

Ok first of all you will think this is a stupid bug in my program but please read the whole post before you make any descision.

Somehow since one of the last world update a KDE4/Qt4 program I am developing (simon) is extremely unstable. It seems that every code path that uses QLists can only be done once (the lists get corrupted and can't be "touched" again).

The obvious: Heap corruption in my code.

However: The _exact_ same code works on ubuntu, kubuntu, opensuse and even windows without _any_ problems. (I have of course recompiled my application many times)

I am using ~amd64 (and kde-svn but that shouldn't matter) but have been for years and never had any such problems. I have reverted Qt to the stable verison 4.5.1 (from 4.5.2) and I have the same problems. I have also tried everything from a new user.

Btw: I can not start the designer or the assistant (semgentation fault when starting) (also when we from a new user account).

Valgrind does not show any particularly interesting errors before the crash it just shows Invalid read / writes exactly where simon accesses the list (for example calling the isEmpty() method). (Btw: this is not a pointer issue)

Does anyone have any ideas?

Greetings,
Peter
Back to top
View user's profile Send private message
hephooey
n00b
n00b


Joined: 24 Feb 2003
Posts: 74

PostPosted: Sun Jul 19, 2009 12:07 pm    Post subject: Reply with quote

There are some weird things going on between qt, kde(svn), glibc 2.10.1 and possibly glib since qt is sort of depend on it by default, which tend to cause random crashes. Try to modify startkde to unset MALLOC_CHECK_
http://bugs.kde.org/show_bug.cgi?id=196207
Back to top
View user's profile Send private message
rtomek
Apprentice
Apprentice


Joined: 05 Jan 2007
Posts: 210
Location: Chicago

PostPosted: Mon Jul 27, 2009 3:41 pm    Post subject: Reply with quote

hmm... I am using the kde-testing overlay, but my designer and assistant work perfectly. I also have ported my Qt application to OSX and other linux distributions without any problems. I don't understand why you would be having this issue. I use ~amd64 as well.

I also have gcc 4.4.1 and the newest glibc. Kde 4.2.4 and Qt 4.5.2
Back to top
View user's profile Send private message
xibo
Apprentice
Apprentice


Joined: 21 Aug 2007
Posts: 152
Location: moving between kubuntu and ubuntu kde edition

PostPosted: Thu Jul 30, 2009 10:33 am    Post subject: Reply with quote

Quote:
Btw: I can not start the designer or the assistant (semgentation fault when starting)

what's gdb saying? infinite recursion? illegal memory access?
i'm using qt-4.5.2 and was formerly using 4.5.1 without problems on amd64 with gcc-4.4.1 with -O3 on top of that but everything around qt is working here.

Quote:
(for example calling the isEmpty() method

is there any chance the qlist is not on the stack ( due to bad alloca ), or was inside the dst-boundary a memcpy or something like that?
i had similar behaviour with a QString some time ago, though i was copying into it's structure with a poor memcpy.
Back to top
View user's profile Send private message
Hwoarang
Retired Dev
Retired Dev


Joined: 24 Feb 2007
Posts: 701
Location: Leeds, UK

PostPosted: Fri Jul 31, 2009 7:03 am    Post subject: Reply with quote

Maybe you want to try 4.5.9999 ebuilds from qting-edge overlay. Currently, 4.5.9999[-qt-copy] ebuild are installing Qt 4.5.3
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
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