[Valgrind-users] Getting "Serious error when reading debug info" when using mmap

2020-12-16 Thread Oren Eini (Ayende Rahien)
Hi, I'm getting a strange error when running Valgrind. --23266-- WARNING: Serious error when reading debug info --23266-- When reading debug info from /tmp/db/test.txt: --23266-- can't read file to inspect ELF header Note that the file in question is a data file, which I'm mmaping I can reproduc

Re: [Valgrind-users] Getting "Serious error when reading debug info" when using mmap

2020-12-16 Thread Oren Eini (Ayende Rahien)
FWIW, I'm pretty sure that the issue is around the use of O_DIRECT and alignment of memory. Note that in the call to pread64() , the buffer isn't 4KB aligned, which is usually required for O_DIRECT. I assume that this generates the error and the rest of the issue. On Wed, Dec 16, 2020 at 11:17 PM