Details
-
Type:
Bug
-
Status:
Reopened
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: JRuby 1.6.2, JRuby 1.7.0.pre1
-
Fix Version/s: JRuby 1.6.4
-
Component/s: Interpreter
-
Labels:None
-
Environment:Linux host 2.6.32-5-openvz-amd64 #1 SMP Wed May 18 23:53:57 UTC 2011 x86_64 GNU/Linux
Debian squeeze
OpenJDK Runtime Environment (IcedTea6 1.8.7) (6b18-1.8.7-2~squeeze1)
OpenJDK 64-Bit Server VM (build 14.0-b16, mixed mode)
-
Number of attachments :
Description
Running programs with Process.spawn and then subsequently waiting for them with Process.waitpid garbles $?.exitstatus.
The demo program attached shows that the exitstatus is somehow random. When using "sleep", as in the demo program, this should always be 0.
Also, I'm seeing ECHILD errors when the subprocess finishes before waitpid is called, probably because the child is reaped too early/automatically?
Activity
Charles Oliver Nutter
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Status | Open [ 1 ] | Resolved [ 5 ] |
| Assignee | Charles Oliver Nutter [ headius ] | |
| Fix Version/s | JRuby 1.6.3 [ 17374 ] | |
| Resolution | Fixed [ 1 ] |
Christian Hofstädtler
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | Resolved [ 5 ] | Reopened [ 4 ] |
Thomas E Enebo
made changes -
| Fix Version/s | JRuby 1.6.4 [ 17472 ] | |
| Fix Version/s | JRuby 1.6.3 [ 17374 ] |
I believe this is fixed...running your script against both JRuby master and jruby-1_6 branches produces matching pids. Perhaps you can confirm it with a snapshot from http://ci.jruby.org/snapshots please?