<div dir="ltr"><div><div><div><div>Hi all,<br><br></div>The address sanitizer complains about the following code, which looks good to me:<br><br>#include <unistd.h><br><br>int main()<br>{<br>    char buf;<br>    pwrite(1, &buf, 0, 0);<br>
}<br><br></div>Compiled with:<br><br>clang++ -fno-omit-frame-pointer -fno-optimize-sibiling-calls -fsanitize=address -ggdb ./pwrite.c<br><br></div>This is Clang compiled from trunk, many months ago:<br><br>$ clang++ --version<br>
clang version 3.3 (trunk 172721)<br>Target: x86_64-unknown-linux-gnu<br>Thread model: posix<br><br></div>I'll try with current Clang trunk.<br><br>Thanks,<br>Martin<br></div>