<div dir="ltr">It turns out, this doesn't happen with the latest build.  Sorry for the false alarm.<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 8, 2013 at 9:54 AM, Martin Martin <span dir="ltr"><<a href="mailto:martin@infinio.com" target="_blank">martin@infinio.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>
</blockquote></div><br></div>