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 ------------------------------------------------------------------------------ What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d _______________________________________________ Valgrind-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/valgrind-users
