64 bit application crashes due to unknown memory corruption in linux

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • aruledion
    New Member
    • Dec 2012
    • 1

    64 bit application crashes due to unknown memory corruption in linux

    The application that I ported from 32 bit linux to 64 bit linux is crashing due to unknown memory corruption
    Also some time teh address is printed in 32 bit only
    as below
    this=0x6787e0
    any reason why this is happening?
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    Your application is 32 bit. It won't be 64 bit until you recompile using a 64-bit compiler.

    64 bit operating systems run 32 bit code by using a 32 bit environment layer. This layer is what is executing. It provides a 32 bit environment for your program.

    That said, you still have memory corruption. If this is a small program you can use your debugger to find this. If it a large commercial-type thing you may need to install a leak detector.

    Comment

    Working...