|
From: Matt S. <mat...@re...> - 2011-03-08 12:50:20
|
Hello, If I use valgrind on a program that calls shmat() on a buffer that was allocated by shmget() using the SHM_HUGETLB flag, shmat() returns -1 and sets errno to EINVAL. The shmaddr argument to shmat() is NULL. This error is only reported when running under valgrind. This behavior is seen under RHEL5 and RHEL6 x86_64. If I remove the SHM_HUGETLB flag from shmget(), there is no error. I have tried this under RHEL-distributed valgrind 3.5 and compiled-from-source 3.6.1. Should this work? Thank you, Matt |