From: Kero Date: 2005-11-12T00:07:14+09:00 Subject: Re: Ruby 1.8.3/HP-UX/[BUG] Bus Error > Just had Ruby 1.8.3 installed on our HP-UX box, and it seems to be > really misbehaving... I'm trying to promote Ruby here but this is > giving it bad press. > > For example, the following code > > #!/usr/local/bin/ruby > p ARGV > ARGV.each do |fname | > puts "File: #{fname}" > loop do > break > end > end > > gives ..... > >> xdump param > ["param"] > File: param > /home/fcux_dev/tadb/bin/xdump:6: [BUG] Bus Error > ruby 1.8.3 (2005-09-21) [hppa2.0w-hpux11.11] > Abort(coredump) >> > And in fact, this error ([BUG] Bus Error - what is it ?) seems to pop up > at the slightest provocation, although some relatively complex > ruby code seems to run ok. > I didn't do the installation myself, but I suspect that the HP-UX > bundled C compiler was used to do the installation. > Could that be the problem ? Hardly. I compiled ruby 1.8.1 or so succesfully with cc, just tried ruby 1.8.4-preview1. Both work fine with your code above. NB: I'm not the sysadmin, so I have to use ./configure --prefix=$HOME you can try the same and see if you have better luck than your sysadmin. Does miniruby have the same problem? $ ruby -v ruby 1.8.4 (2005-10-29) [hppa20.w-hpux11.11] $ make test test succeeded $ make test-all [some wsdl/iconv problem that I'll report on elsewhere.] I don't think I managed to compile 1.8.1 with gcc, haven't tried for 1.8.4-preview1. Hth, Kero.