"The build timeout" build failure(s) — clang 3.6.0

The binary produced by clang is wrong when built with -D_FORTIFY_SOURCE=2. For example, the code:
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>

int main ()
{
    char *data;
    int  pagesize;
    int fd, foo;
    pagesize = getpagesize ();
    fd = open ("conftest.mmap", O_RDWR);
    data = (char *) malloc (pagesize);
    foo = read (fd, data, pagesize);
}
compiled with:
clang++ -o conftest -g  -O2  -D_FORTIFY_SOURCE=2 conftest.cpp
will be stucked in an infinity loop. Reported upstream as bug 16821
PackageVersionSupposed error messageFull log Bug report
adacgi 1.6-19Build killed with signal TERM after 150 minutes of inactivity Log
binutils-avr 2.24+Atmel3.4.4-1checking whether compiler driver understands Ada Build killed with signal TERM after 222 minutes of inactivity Log
binutils-h8300-hms 2.16.1-10Build killed with signal TERM after 188 minutes of inactivity Log
binutils-m68hc1x 1:2.18-3.3checking whether compiler driver understands Ada Build killed with signal TERM after 155 minutes of inactivity Log
binutils-msp430 2.22~msp20120406-5checking whether compiler driver understands Ada Build killed with signal TERM after 151 minutes of inactivity Log
binutils-z80 4Build killed with signal TERM after 188 minutes of inactivity Log
ccseapps 2.5-5Build killed with signal TERM after 153 minutes of inactivity Log
crash 7.0.8-1Build killed with signal TERM after 153 minutes of inactivity Log
ergo 3.4.0-1Build killed with signal TERM after 150 minutes of inactivity Log
etl 0.04.17-1Build killed with signal TERM after 150 minutes of inactivity Log
gcc-3.3 1:3.3.6ds1-27.2Build killed with signal TERM after 150 minutes of inactivity Log
gcc-arm-none-eabi 11-1Build killed with signal TERM after 154 minutes of inactivity Log
gcc-h8300-hms 1:3.4.6+dfsg2-4Build killed with signal TERM after 151 minutes of inactivity Log
gcc-m68hc1x 1:3.3.6+3.1+dfsg-3checking for compiler driver that understands Ada Build killed with signal TERM after 151 minutes of inactivity Log
gcc-mingw-w64 15.1Build killed with signal TERM after 155 minutes of inactivity Log
gdb-arm-none-eabi 6Build killed with signal TERM after 153 minutes of inactivity Log
gdb-avr 7.7-2Build killed with signal TERM after 171 minutes of inactivity Log
gdb-mingw-w64 9Build killed with signal TERM after 155 minutes of inactivity Log
gdb-msp430 7.2a~mspgcc-20111205-3Build killed with signal TERM after 151 minutes of inactivity Log
libsixel 1.4.2-1Build killed with signal TERM after 150 minutes of inactivity Log
libxc 2.1.1-1Build killed with signal TERM after 156 minutes of inactivity Log
octave-tsa 4.2.7-2Build killed with signal TERM after 150 minutes of inactivity Log
pike7.8 7.8.866-3Build killed with signal TERM after 150 minutes of inactivity Log
sdcc 3.4.0+dfsg-2Build killed with signal TERM after 150 minutes of inactivity Log
stalin 0.11-5Build killed with signal TERM after 150 minutes of inactivity Log

25 errors