stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Sebor <>
Subject Re: infinite loop in exec
Date Wed, 23 May 2007 20:53:07 GMT
Martin Sebor wrote:
> I'm running into an (almost?) infinite loop when running some
> of our tests under the exec utility on Linux (in a 12D build
> with gcc 3.4.6 on Red Hat Advanced Server 4, I haven't tried
> other configurations). The initial output of strace for one
> of the tests, 21.cwchar, is in the attached file. The test
> by itself runs fine to completion and doesn't produce any
> unusual output (no NULs).
> Andrew, when you have a chance, can you take a look at it?
> If that's not going to be soon let me know if I should open
> an issue.

Also, from the trace it looks like exec sent SIGHUP to the
process after the child exited (it did this with another test
even when it didn't get into a loop). That doesn't seem right
(and neither does the PID for that matter). Exec should send
the signal only when the child doesn't exit within the
allotted period of time.

child_tidptr=0x2a95764730) = 16607
alarm(10)                               = 0
wait4(16607, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 
--- SIGCHLD (Child exited) @ 0 (0) ---
alarm(0)                                = 10
kill(4294950689, SIGHUP)                = -1 ESRCH (No such process)


View raw message