what is reson behind error malloc(): unaligned tcache chunk detected ?
-
i don't know but when i run my qt/qml application. it get crash with below message :
malloc(): unaligned tcache chunk detected
if any body now the solution then please let me know about this ?
-
i don't know but when i run my qt/qml application. it get crash with below message :
malloc(): unaligned tcache chunk detected
if any body now the solution then please let me know about this ?
@Qt-embedded-developer said in what is reson behind error malloc(): unaligned tcache chunk detected ?:
if any body now the solution then please let me know about this ?
Please first use debugger to see where exactly it is crashing in your code.
That is way more efficient than asking in a forum without any code and waiting for an answer... -
@Qt-embedded-developer said in what is reson behind error malloc(): unaligned tcache chunk detected ?:
if any body now the solution then please let me know about this ?
Please first use debugger to see where exactly it is crashing in your code.
That is way more efficient than asking in a forum without any code and waiting for an answer...@jsulm in debugging mode it not get crash only when running on release mode it get crash.
i want to know when above warning or error comes ?
-
@jsulm in debugging mode it not get crash only when running on release mode it get crash.
i want to know when above warning or error comes ?
@Qt-embedded-developer
For a start it will depend on your operating system and compiler, about which you say nothing.
It is also relevant whether you yourself are callingmalloc(), you don't say.
Did you try Googling for the exact error message? -
@Qt-embedded-developer
For a start it will depend on your operating system and compiler, about which you say nothing.
It is also relevant whether you yourself are callingmalloc(), you don't say.
Did you try Googling for the exact error message?@JonB no i have not used malloc. i have used new operator.
Yes i have done google.
i am using linux os
-
@JonB no i have not used malloc. i have used new operator.
Yes i have done google.
i am using linux os
@Qt-embedded-developer said in what is reson behind error malloc(): unaligned tcache chunk detected ?:
Yes i have done google.
Google:
malloc(): unaligned tcache chunk detected
Loads of hits. How did they relate to your situation? -
@JonB no i have not used malloc. i have used new operator.
Yes i have done google.
i am using linux os
@Qt-embedded-developer You also should check your app for memory leaks and other memory related issues. You can use Valgrind for that.
-
@Qt-embedded-developer You also should check your app for memory leaks and other memory related issues. You can use Valgrind for that.
@jsulm can i check like below for qt executable file that get created after build on cmd line in linux :
valgrind --tool=memcheck --leak-check=yes ./qtapp
i have used above command but i got the warning :
error while loading shared libraries: libadc.so: cannot open shared object file: No such file or directory
-
@jsulm can i check like below for qt executable file that get created after build on cmd line in linux :
valgrind --tool=memcheck --leak-check=yes ./qtapp
i have used above command but i got the warning :
error while loading shared libraries: libadc.so: cannot open shared object file: No such file or directory
@Qt-embedded-developer said in what is reson behind error malloc(): unaligned tcache chunk detected ?:
What is this lib?
-
@Qt-embedded-developer said in what is reson behind error malloc(): unaligned tcache chunk detected ?:
What is this lib?
@jsulm this library is my shared library used in app
-
@jsulm this library is my shared library used in app
@Qt-embedded-developer
From the same shell (e.g. not from Creator) as wherever you ranvalgrind --tool=memcheck --leak-check=yes ./qtappfrom, do you not get same error message if you try./qtapp? -
@jsulm this library is my shared library used in app
@Qt-embedded-developer Where exactly is this lib located?
You can set LD_LIBRARY_PATH (in same terminal where you're calling valgrind) to point to the folder where this lib is located.
Keep in mind that you can also use Valgrind directly in QtCreator.