Public bug reported:

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_di_exec_child (filename, argv, envp, pid, child_prepare_handler, 
child_prepare_user_data, fds_status[1], fd_null, fds_stdout[1], fds_stderr[1]);

  close (fd_null);

strace shows that the child process gets to the close(fd_null) without
executing any of the statements inside internal_di_exec_child().

The later function is marked attribute((noreturn)). If I remove that
attribute, then things work properly.

** Affects: gcc-defaults (Ubuntu)
     Importance: Undecided
         Status: New

-- 
function with attribute((noreturn)) never called in cdebootstrap
https://bugs.launchpad.net/bugs/577804
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to