Find the answer to your Linux question:
Results 1 to 2 of 2
I'm working on a large project concerning many memory operations. Our program has got a "core.*" for many times. From the core information, I am sure that some invalid memory ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2008
    Posts
    1

    Question Memory operation


    I'm working on a large project concerning many memory operations.
    Our program has got a "core.*" for many times. From the core information, I am sure that some invalid memory operation has coursed that. But the project is so complicated that reviewing codes costs too much time, besides, this program started up over 80 threads, and it seems that the "core" shows up irregularly.
    I am thinking about setting some "hooks" in the system memory operations like memcpy, malloc .etc. How can I do this? Should I rewrite & recompile the gnu libs?

  2. #2
    Just Joined!
    Join Date
    Dec 2008
    Location
    chennai,India
    Posts
    4
    compile Your code with -fbounds-check option . May be Useful

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •