> OK, I figured it out.  Ruby coredumped where environ is dereferenced
> like environ[max], which implies this:
> 
> - #define environ *_NSGetEnviron()
> + #define environ (*_NSGetEnviron())
> 
> With this fix, the test passed without a single error.  I'll commit
> the patch later after doing more testing.

I see; sorry if I led you down the wrong path. Feel free to tune my patch
at will.