Hi!
I’m doing a gui app with Qt 4.8.5 and c++ on a fedora 18. For that I am using also some external libraries compiled with eclipse.
Until last week it worked all okey, I could call and use that external library functions with no problem.
The first error ocurred last week when a memorry corruption appeared with something like this (I can’t remember exactly all):
** glibc detected [...] malloc(): memory corruption: 0x10013ff8 ***
** glibc detected [...] malloc(): memory corruption: 0x10013ff8 ***
To copy to clipboard, switch view to plain text mode
I clean and run qmake and nothing.. and then I run valgrand (I still don’t know what is that exactly for but it worked).
Today I got some error like this and did same and it worked but lately again I had:
*** glibc detected *** /home/sg/Documents/Projects/myApp/build-myApp-Desktop-Debug/myApp: malloc(): memory corruption: 0x0986f260 ***
*** glibc detected *** /home/sg/Documents/Projects/myApp/build-myApp-Desktop-Debug/myApp: malloc(): memory corruption: 0x0986f260 ***
To copy to clipboard, switch view to plain text mode
And valgrind did nothing so lookign for internet I saw that it could be fixed with a external valgrind so I follow this instructions: Valgrind
And it solved my problem… BUT now my app runs well if I run it like the example (running vlagrind) but if I try to run it like I was doing before (Just run debug/release of myApp) then the glibc memorry corruption appears again… and that seems to be a very bad problem because ofc the .exe will not run …
so… any idea of the problem? The only difference on the external libraries this time is that they have a couple of get and sets more so there is no malloc or array or something like that new that could cause a memor acces problem
note: in the argumetn line I had to put:
-q --tool=memcheck --leak-check=full --leak-resolution=low ./myApp
-q --tool=memcheck --leak-check=full --leak-resolution=low ./myApp
To copy to clipboard, switch view to plain text mode
with no supression because it gaved me an erro… tried also with qt48 but the same
Thank you so much.
Bookmarks