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
QtWS25 Last Chance

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 24 Sept 2020, 10:29 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 .

    A 1 Reply Last reply 24 Sept 2020, 10:37
    0
    • J JoseLpd
      24 Sept 2020, 10:29

      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 .

      A Offline
      A Offline
      aha_1980
      Lifetime Qt Champion
      wrote on 24 Sept 2020, 10:37 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 24 Sept 2020, 11:12
      1
      • A aha_1980
        24 Sept 2020, 10:37

        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 24 Sept 2020, 11:12 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

        A 1 Reply Last reply 24 Sept 2020, 11:27
        0
        • J JoseLpd
          24 Sept 2020, 11:12

          @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

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 24 Sept 2020, 11:27 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 24 Sept 2020, 11:54
          2
          • A aha_1980
            24 Sept 2020, 11:27

            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 24 Sept 2020, 11:54 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 21 Jan 2022, 11:53 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