Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. what is reson behind error malloc(): unaligned tcache chunk detected ?
Forum Updated to NodeBB v4.3 + New Features

what is reson behind error malloc(): unaligned tcache chunk detected ?

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 3 Posters 14.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on last edited by
    #1

    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 ?

    jsulmJ 1 Reply Last reply
    0
    • Q Qt embedded developer

      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 ?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @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...

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      Q 1 Reply Last reply
      1
      • jsulmJ jsulm

        @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...

        Q Offline
        Q Offline
        Qt embedded developer
        wrote on last edited by
        #3

        @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 ?

        JonBJ 1 Reply Last reply
        0
        • Q Qt embedded developer

          @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 ?

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote on last edited by JonB
          #4

          @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 calling malloc(), you don't say.
          Did you try Googling for the exact error message?

          Q 1 Reply Last reply
          1
          • JonBJ JonB

            @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 calling malloc(), you don't say.
            Did you try Googling for the exact error message?

            Q Offline
            Q Offline
            Qt embedded developer
            wrote on last edited by
            #5

            @JonB no i have not used malloc. i have used new operator.

            Yes i have done google.

            i am using linux os

            JonBJ jsulmJ 2 Replies Last reply
            0
            • Q Qt embedded developer

              @JonB no i have not used malloc. i have used new operator.

              Yes i have done google.

              i am using linux os

              JonBJ Offline
              JonBJ Offline
              JonB
              wrote on last edited by JonB
              #6

              @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?

              1 Reply Last reply
              0
              • Q Qt embedded developer

                @JonB no i have not used malloc. i have used new operator.

                Yes i have done google.

                i am using linux os

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Qt-embedded-developer You also should check your app for memory leaks and other memory related issues. You can use Valgrind for that.

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                Q 1 Reply Last reply
                1
                • jsulmJ jsulm

                  @Qt-embedded-developer You also should check your app for memory leaks and other memory related issues. You can use Valgrind for that.

                  Q Offline
                  Q Offline
                  Qt embedded developer
                  wrote on last edited by Qt embedded developer
                  #8

                  @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

                  jsulmJ 1 Reply Last reply
                  0
                  • Q Qt embedded developer

                    @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

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @Qt-embedded-developer said in what is reson behind error malloc(): unaligned tcache chunk detected ?:

                    libadc.so:

                    What is this lib?

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    Q 1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      @Qt-embedded-developer said in what is reson behind error malloc(): unaligned tcache chunk detected ?:

                      libadc.so:

                      What is this lib?

                      Q Offline
                      Q Offline
                      Qt embedded developer
                      wrote on last edited by
                      #10

                      @jsulm this library is my shared library used in app

                      JonBJ jsulmJ 2 Replies Last reply
                      0
                      • Q Qt embedded developer

                        @jsulm this library is my shared library used in app

                        JonBJ Offline
                        JonBJ Offline
                        JonB
                        wrote on last edited by JonB
                        #11

                        @Qt-embedded-developer
                        From the same shell (e.g. not from Creator) as wherever you ran valgrind --tool=memcheck --leak-check=yes ./qtapp from, do you not get same error message if you try ./qtapp?

                        1 Reply Last reply
                        0
                        • Q Qt embedded developer

                          @jsulm this library is my shared library used in app

                          jsulmJ Offline
                          jsulmJ Offline
                          jsulm
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          @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.

                          https://forum.qt.io/topic/113070/qt-code-of-conduct

                          1 Reply Last reply
                          1

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved