LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Valgrind and Shared Memory (https://www.linuxquestions.org/questions/programming-9/valgrind-and-shared-memory-317669/)

nodger 04-27-2005 07:29 AM

Valgrind and Shared Memory
 
I use the excellentdebugging tool, Valgrind, for all my programming. However if I allocate some shared memory, detach it, then try to access it through valgrind it (sometimes) gives me a memory access violation, when used without valgrind, it works fine.

Thing is, it doesn't always happen. I've checked and re-checked my code and the area of memory im accessing is DEFINETLY within the shared region, has anyone else had this experience? PS. Im on a windows machine at the moment so I don't have any code handy but I'll post some code later tonight that hopefully shows this


All times are GMT -5. The time now is 10:32 AM.