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. malloc_consolidate(): unaligned fastbin chunk detected

malloc_consolidate(): unaligned fastbin chunk detected

Scheduled Pinned Locked Moved Unsolved General and Desktop
c++ qtqapplication
6 Posts 3 Posters 8.5k 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.
  • J Offline
    J Offline
    JoseLpd
    wrote on last edited by
    #1

    when I close application by Qapplication::quit() ,there is a error occurred : "malloc_consolidate(): unaligned fastbin chunk detected "

    I don't know how to solve it and I can't search any problems about it by using Google .

    aha_1980A 1 Reply Last reply
    0
    • J JoseLpd

      when I close application by Qapplication::quit() ,there is a error occurred : "malloc_consolidate(): unaligned fastbin chunk detected "

      I don't know how to solve it and I can't search any problems about it by using Google .

      aha_1980A Offline
      aha_1980A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi @JoseLpd,

      which platform are you on? Which Qt version and which compiler are you using?

      Does this error happen on a minimal example program too?

      Regards

      Qt has to stay free or it will die.

      J 1 Reply Last reply
      1
      • aha_1980A aha_1980

        Hi @JoseLpd,

        which platform are you on? Which Qt version and which compiler are you using?

        Does this error happen on a minimal example program too?

        Regards

        J Offline
        J Offline
        JoseLpd
        wrote on last edited by
        #3

        @aha_1980
        Sorry, first of all I have a Linux system, the version of qt is 5.19, I created a small project and it is correct. Now that this problem occurs, I suspect that I may have implemented a singleton mode (created a local static variable) and called "instance" from outside. But I am not sure where is the problem

        aha_1980A 1 Reply Last reply
        0
        • J JoseLpd

          @aha_1980
          Sorry, first of all I have a Linux system, the version of qt is 5.19, I created a small project and it is correct. Now that this problem occurs, I suspect that I may have implemented a singleton mode (created a local static variable) and called "instance" from outside. But I am not sure where is the problem

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi @JoseLpd,

          the version of qt is 5.19

          Really? The latest one is 5.15.x...

          Now that this problem occurs, I suspect that I may have implemented a singleton mode (created a local static variable) and called "instance" from outside. But I am not sure where is the problem

          If it works with a minimal project, but not with your full app, then you can either remove functions from your full app, or integrate more functions into the minimal app until you see that problem.

          You can also try to run your app in valgrind, that often gives good hints what's going wrong with the memory.

          Regards

          Qt has to stay free or it will die.

          J 1 Reply Last reply
          2
          • aha_1980A aha_1980

            Hi @JoseLpd,

            the version of qt is 5.19

            Really? The latest one is 5.15.x...

            Now that this problem occurs, I suspect that I may have implemented a singleton mode (created a local static variable) and called "instance" from outside. But I am not sure where is the problem

            If it works with a minimal project, but not with your full app, then you can either remove functions from your full app, or integrate more functions into the minimal app until you see that problem.

            You can also try to run your app in valgrind, that often gives good hints what's going wrong with the memory.

            Regards

            J Offline
            J Offline
            JoseLpd
            wrote on last edited by
            #5

            @aha_1980
            ... well, let me try to run it on Windows... At the same time I found that the malloc_consolidate function is located in the glic library...

            1 Reply Last reply
            0
            • J Offline
              J Offline
              Jaap Crezee
              wrote on last edited by
              #6

              See https://bugreports.qt.io/browse/QTCREATORBUG-26918

              1 Reply Last reply
              0

              • Login

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