function with attribute((noreturn)) never called in cdebootstrap
Bug #577804 reported by
Benjamin Herrenschmidt
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-defaults (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: gcc
cdebootstrap on x86_64 hangs whenever it tries to fork/exec a child process. It appears that this is miscompiled:
if (pid <= 0)
{
close (fds_status[0]);
close (fds_stdout[0]);
close (fds_stderr[0]);
}
if (pid == 0)
internal_
close (fd_null);
strace shows that the child process gets to the close(fd_null) without executing any of the statements inside internal_
The later function is marked attribute(
To post a comment you must log in.
is this still the case with recent compiler versions?