Bug with address sanitizer?

Hi all,

The address sanitizer complains about the following code, which looks good to me:

#include <unistd.h>

int main()
{
char buf;
pwrite(1, &buf, 0, 0);
}

Compiled with:

clang++ -fno-omit-frame-pointer -fno-optimize-sibiling-calls -fsanitize=address -ggdb ./pwrite.c

This is Clang compiled from trunk, many months ago:

$ clang++ --version
clang version 3.3 (trunk 172721)
Target: x86_64-unknown-linux-gnu
Thread model: posix

I’ll try with current Clang trunk.

Thanks,
Martin

It turns out, this doesn’t happen with the latest build. Sorry for the false alarm.