When using Ruby 1.8.7 with Popen4 ruby regularly segfaults.
This is a well-known work around for that issue.
I was able to easily reproduce this issue on:
Fix segfaults with Popen4 and Ruby 1.8.7
i'm generally +1 on this. any objections?