Thread issues with ruby 1.8.0 on OpenBSD 3.3

Ask a Question related to Ruby, Design and Development.

  1. #1

    Default Thread issues with ruby 1.8.0 on OpenBSD 3.3

    I'm seeing problems with threading using ruby 1.8.0 on OpenBSD 3.3.

    When I use threads, I get

    longjump botch.
    Illegal instruction (core dumped)

    Following is a short script that reproduces the problem.
    This script runs fine using ruby 1.8.0 on Solaris 8.

    Are there known issues with ruby threading on OpenBSD?

    Thanks,
    Rick

    --

    require 'thread'
    threads = []
    q = Queue.new
    threads << Thread.new { puts q.pop }
    q.push("gronk")
    threads.each { |t| t.join }

    --
    Rick Nooner
    [email]rick@nooner.net[/email]
    [url]http://www.nooner.net[/url]



    Rick Nooner Guest

  2. Similar Questions and Discussions

    1. Aysnc Web Services - Thread Issues
      I have a web form that asynchronously calls a web service on the local machine. The problem is that when the callback delegate fires, and calls...
    2. Ruby thread problems
      All: Ruby threading problems Using ruby 1.8.0 Preview 5 (Porting ruby to OpenVMS Alpha)...
    3. Ruby script on OpenBSD needs to connect to Oracle 8i on Linux
      I'm cross-posting to Ruby & OpenBSD because I'm not sure which experts are best suited to help me with this... (And I'm tired of talking to the...
    4. Ruby interpreter thread safety
      I have a scenario where a ruby extension module starts real/os/heavy-weight threads that may call back to ruby. As far as I understand the ruby...
    5. error compiling ruby 1.8.0 preview 7 on i386 OpenBSD -current,diff attached
      Hi, From: "Diana Eichert" <deicher@sandia.gov> Subject: error compiling ruby 1.8.0 preview 7 on i386 OpenBSD -current, diff attached Date: Sat,...
  3. #2

    Default Re: Thread issues with ruby 1.8.0 on OpenBSD 3.3

    >>>>> "R" == Rick Nooner <rick@nooner.net> writes:

    R> I'm seeing problems with threading using ruby 1.8.0 on OpenBSD 3.3.
    R> When I use threads, I get

    Can you give a stack trace ?

    Run your script under gdb and when it crash use the command `bt'


    Guy Decoux

    ts Guest

  4. #3

    Default Re: Thread issues with ruby 1.8.0 on OpenBSD 3.3

    Guy,

    Here is the gdb session after the crash:

    (gdb) bt
    #0 0x8f29ae8 in _longjmp ()
    #1 0x8f29aec in _longjmp ()
    #2 0x7 in ?? ()
    (gdb) quit

    This is on a Sparc 5 which I didn't mention earlier.

    Rick

    On Sat, Nov 22, 2003 at 10:14:32PM +0900, ts wrote:
    > >>>>> "R" == Rick Nooner <rick@nooner.net> writes:
    >
    > R> I'm seeing problems with threading using ruby 1.8.0 on OpenBSD 3.3.
    > R> When I use threads, I get
    >
    > Can you give a stack trace ?
    >
    > Run your script under gdb and when it crash use the command `bt'
    >
    >
    > Guy Decoux
    --
    Rick Nooner
    [email]rick@nooner.net[/email]
    [url]http://www.nooner.net[/url]



    Rick Nooner Guest

  5. #4

    Default Re: Thread issues with ruby 1.8.0 on OpenBSD 3.3

    >>>>> "R" == Rick Nooner <rick@nooner.net> writes:

    R> This is on a Sparc 5 which I didn't mention earlier.

    Perhaps best to see on a OpenBSD mailing list : there were well know
    problems with Alpha for longjmp

    [url]http://archives.neohapsis.com/archives/openbsd/2003-01/2142.html[/url]

    I don't know for sparc


    Guy Decoux



    ts Guest

  6. #5

    Default Re: Thread issues with ruby 1.8.0 on OpenBSD 3.3

    I don't think that it's a sparc issue since the same code runs fine
    under Solaris. I have several other architecture/OS combinations
    available that work fine as well. It is probably related to OpenBSD.

    I'll dig into it further this afternoon.

    Thanks for your thoughts.

    Rick

    On Sun, Nov 23, 2003 at 02:18:37AM +0900, ts wrote:
    > >>>>> "R" == Rick Nooner <rick@nooner.net> writes:
    >
    > R> This is on a Sparc 5 which I didn't mention earlier.
    >
    > Perhaps best to see on a OpenBSD mailing list : there were well know
    > problems with Alpha for longjmp
    >
    > [url]http://archives.neohapsis.com/archives/openbsd/2003-01/2142.html[/url]
    >
    > I don't know for sparc
    >
    >
    > Guy Decoux
    >
    --
    Rick Nooner
    [email]rick@nooner.net[/email]
    [url]http://www.nooner.net[/url]


    Rick Nooner Guest

  7. #6

    Default Re: Thread issues with ruby 1.8.0 on OpenBSD 3.3

    >>>>> "R" == Rick Nooner <rick@nooner.net> writes:

    R> I don't think that it's a sparc issue since the same code runs fine
    R> under Solaris. I have several other architecture/OS combinations
    R> available that work fine as well. It is probably related to OpenBSD.

    I'm agree with you

    moulon% ruby -v
    ruby 1.8.0 (2003-08-04) [sparc-solaris2.7]
    moulon%

    This is why I've said
    >> Perhaps best to see on a OpenBSD mailing list
    ^^^^^^^^^^^^^^^^^^^^


    Guy Decoux


    ts Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139