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. Memory area (e.g. 0xffffffffac11dec0)
Forum Updated to NodeBB v4.3 + New Features

Memory area (e.g. 0xffffffffac11dec0)

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 4 Posters 542 Views 2 Watching
  • 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.
  • M Offline
    M Offline
    MHermann
    wrote on last edited by
    #1

    Hi all,

    I have a question regarding memory areas.
    Normally I get debug output with "normal" memory areas. E.g. 0x43c0ca8.
    But sometimes I see e.g. 0xffffffffac11dec0.
    This does not look normal for me.
    Can someone tell me if this is an problem?

    Kind regards,
    MHermann

    Christian EhrlicherC 1 Reply Last reply
    0
    • M MHermann

      Hi all,

      I have a question regarding memory areas.
      Normally I get debug output with "normal" memory areas. E.g. 0x43c0ca8.
      But sometimes I see e.g. 0xffffffffac11dec0.
      This does not look normal for me.
      Can someone tell me if this is an problem?

      Kind regards,
      MHermann

      Christian EhrlicherC Offline
      Christian EhrlicherC Offline
      Christian Ehrlicher
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @MHermann said in Memory area (e.g. 0xffffffffac11dec0):

      Can someone tell me if this is an problem?

      Why should this be a problem as long as your program does not crash. The OS decides where your variables and functions are mapped to.

      Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
      Visit the Qt Academy at https://academy.qt.io/catalog

      1 Reply Last reply
      3
      • Kent-DorfmanK Offline
        Kent-DorfmanK Offline
        Kent-Dorfman
        wrote on last edited by
        #3

        @MHermann said in Memory area (e.g. 0xffffffffac11dec0):

        Can someone tell me if this is an problem?

        only if you are on an OS that doesn't use virtual memory addressing.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MHermann
          wrote on last edited by
          #4

          Thanks for the answers.
          I was wondering if this address is okay.
          Because in debug mode I can see that a "normal" address is used and only in release mode this "special" address is used.

          1 Reply Last reply
          0
          • Chris KawaC Online
            Chris KawaC Online
            Chris Kawa
            Lifetime Qt Champion
            wrote on last edited by Chris Kawa
            #5

            As Christian said at the end it's up to the OS what addresses you get, but there are various features that can influence it.

            One such is ASLR which is a security feature that basically randomizes the base address of your process every time it runs, so that attackers can't make assumptions about it. Depending on your toolchain or linker settings it might be enabled in release builds but not in debug.

            Another such feature (on windows at least) is the debug heap. It's a special type of heap used by default in debug builds that does stuff like zeroing allocations, tracking dead zones etc. It could get a different virtual address than the default heap in release mode.

            There's a /LARGEADDRESSAWARE on msvc that allows addresses above 2GB etc. that could also be enbled in one build type and not the other.

            There's more stuff like that, so I wouldn't say there's anything wrong with these addresses at first glance.

            1 Reply Last reply
            2

            • Login

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