Project

General

Profile

Actions

Bug #2353

closed

hash.c:setenv causes crashes in Solaris

Added by docwhat (Christian Höltje) over 15 years ago. Updated about 14 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.2dev (2009-11-10 trunk 25704) [sparc-solaris2.8]
Backport:
[ruby-core:26668]

Description

=begin
Hi!

I submitted this as a pull request for shyouhei's ruby git repo, via github.
I want to document this here too.

The environ manipulations that are done in the fall-back code in hash.c (the code that runs if !WIN32 and !HAVE_SETENV) causes crashes in Solaris some times. In addition, it fails hard if you use the binary on a newer version of Solaris.

The code I wrote works on Solaris 8 (all tests pass) and works when the binary is copied to a Solaris 10 system and some simple test code that sets and unsets lots of environment variable is run.

With a clean ruby, the test cases pass in Solaris 8 (usually) but my test code would not run at all when the binary is copied to Solaris 10.

If there is anything else I should do, please don't hesitant to tell me.

Ciao!
=end


Files

solaris_setenv.patch (2.13 KB) solaris_setenv.patch Patch v1 docwhat (Christian Höltje), 11/11/2009 04:50 AM
test_setenv.rb (1.38 KB) test_setenv.rb docwhat (Christian Höltje), 11/12/2009 12:57 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0