Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: JRuby 1.1RC2
    • Fix Version/s: JRuby 1.1RC3
    • Component/s: Extensions
    • Labels:
      None
    • Environment:
      OpenSolaris (snv_79b, SXDE 1/08)
    • Number of attachments :
      0

      Description

      I was trying to follow http://blogs.sun.com/arungupta/entry/totd_24_getting_started_with, adjusted for RC2.

      $ jruby script/server
      /export/home/notroot/jruby-1.1RC2/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/core_ext/kernel/reporting.rb:26:in `silence_stderr': Permission denied (IOError)
      from /export/home/notroot/jruby-1.1RC2/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/core_ext/kernel/reporting.rb:26
      from /export/home/notroot/jruby-1.1RC2/lib/ruby/gems/1.8/gems/rails-2.0.2/lib/commands/server.rb:20:in `require'
      from /export/home/notroot/jruby-1.1RC2/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
      from script/server:3

      Using truss, I found that just before the Permission Denied error it tried to create /dev/null (rather than simply open it).

      2856/2: open64("/dev/null", O_RDWR|O_CREAT|O_EXCL, 0666) Err#13 EACCES [ALL]
      /export/home/notroot/jruby-1.1RC2/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/core_ext/kernel/reporting.rb:26:in `silence_stderr'

      From open(2):

      O_EXCL

      If O_CREAT and O_EXCL are set, open() fails if the file
      exists. The check for the existence of the file and the
      creation of the file if it does not exist is atomic with
      respect to other threads executing open() naming the
      same filename in the same directory with O_EXCL and
      O_CREAT set. If O_EXCL and O_CREAT are set, and path
      names a symbolic link, open() fails and sets errno to
      EEXIST, regardless of the contents of the symbolic link.
      If O_EXCL is set and O_CREAT is not set, the result is
      undefined.

        Activity

        Hide
        Masaki Katakai added a comment -

        Hi Charles, how are you?

        I tried trunk just now but it's still not working for me. The same error happens. How about you, Mike?

        Show
        Masaki Katakai added a comment - Hi Charles, how are you? I tried trunk just now but it's still not working for me. The same error happens. How about you, Mike?
        Hide
        Mike Gerdts added a comment -

        Just did:

        $ svn update
        $ ant clean
        $ ant
        $ bin/jruby hello/script/server

        Same problem

        Show
        Mike Gerdts added a comment - Just did: $ svn update $ ant clean $ ant $ bin/jruby hello/script/server Same problem
        Hide
        Charles Oliver Nutter added a comment -

        Ok, I have not been able to reproduce, but I did find a path through reopen that would actually try to open /dev/null, which it seems on OpenSolaris it should not try to do. I have a few questions:

        • Could you please try with a revision later than r6118 and see if the problem has gone away?
        • Could you try with normal Ruby? I could not see that we're doing anything different from Ruby...it seems that perhaps the combination of that reopen line and OpenSolaris permissions on /dev/null may be to blame.

        Please reopen if the problem still exists.

        Show
        Charles Oliver Nutter added a comment - Ok, I have not been able to reproduce, but I did find a path through reopen that would actually try to open /dev/null, which it seems on OpenSolaris it should not try to do. I have a few questions: Could you please try with a revision later than r6118 and see if the problem has gone away? Could you try with normal Ruby? I could not see that we're doing anything different from Ruby...it seems that perhaps the combination of that reopen line and OpenSolaris permissions on /dev/null may be to blame. Please reopen if the problem still exists.
        Hide
        Masaki Katakai added a comment -

        Great! I tried just now and it works without problem. I tried native ruby (bundled in Solaris) before on SXDE 1/08 and I remember it worked fine.

        Show
        Masaki Katakai added a comment - Great! I tried just now and it works without problem. I tried native ruby (bundled in Solaris) before on SXDE 1/08 and I remember it worked fine.
        Hide
        Masaki Katakai added a comment -

        I tried it with 1.1RC3 release and I verified it works now.

        Show
        Masaki Katakai added a comment - I tried it with 1.1RC3 release and I verified it works now.

          People

          • Assignee:
            Charles Oliver Nutter
            Reporter:
            Mike Gerdts
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: