From: Eric Hodel Date: 2005-12-04T08:41:23+09:00 Subject: Re: Ruby + GCC4 on OS X (Was: Strange error messages using DRb/TupleSpace{ On Dec 3, 2005, at 2:39 PM, Eric Hodel wrote: > On Nov 15, 2005, at 3:44 PM, Eric Hodel wrote: > >> Using >> >> $ ruby184p1 -v >> ruby 1.8.4 (2005-10-29) [powerpc-darwin8.3.0] >> >> or >> >> $ ruby182-orig -v >> ruby 1.8.2 (2004-12-25) [powerpc-darwin8.0] >> >> or >> >> $ ruby -v >> ruby 1.8.3 (2005-09-21) [powerpc-darwin8.2.0] >> >> Using the scripts in [ruby-talk:165935] I receive strange errors >> that crash the client process that all look like this: >> >> (druby://localhost:61676) /usr/local/lib/ruby/1.8/rinda/ >> tuplespace.rb:446:in `move': undefined method `push' >> for :compact!:Symbol (NoMethodError) >> from (druby://localhost:61676) /usr/local/lib/ruby/1.8/ >> monitor.rb:229:in `synchronize' >> from (druby://localhost:61676) /usr/local/lib/ruby/1.8/ >> rinda/tuplespace.rb:443:in `move' >> from (druby://localhost:61676) /usr/local/lib/ruby/1.8/drb/ >> drb.rb:1552:in `perform_without_block' >> from (druby://localhost:61676) /usr/local/lib/ruby/1.8/drb/ >> drb.rb:1512:in `perform' >> from (druby://localhost:61676) /usr/local/lib/ruby/1.8/drb/ >> drb.rb:1586:in `main_loop' >> from (druby://localhost:61676) /usr/local/lib/ruby/1.8/drb/ >> drb.rb:1582:in `main_loop' >> from (druby://localhost:61676) /usr/local/lib/ruby/1.8/drb/ >> drb.rb:1578:in `main_loop' >> from (druby://localhost:61676) /usr/local/lib/ruby/1.8/drb/ >> drb.rb:1427:in `run' >> from (druby://localhost:61676) /usr/local/lib/ruby/1.8/drb/ >> drb.rb:1424:in `run' >> from (druby://localhost:61676) /usr/local/lib/ruby/1.8/drb/ >> drb.rb:1344:in `initialize' >> from (druby://localhost:61676) /usr/local/lib/ruby/1.8/drb/ >> drb.rb:1624:in `start_service' >> from (druby://localhost:61676) ts.rb:7 >> from /usr/local/lib/ruby/1.8/rinda/rinda.rb:229:in `take' >> from cl.rb:11 >> >> The symbol name is always different. >> >> Using the same scripts on a FreeBSD machine I can't reproduce the >> error. > > Compiling Ruby with GCC 3.3 on OS X 10.4.x causes these problems to > go away. I get the same behavior with 1.8.4p2 and GCC4.0 vs GCC3.3. GCC4 fails after some time while GCC3.3 gives a stable Ruby. -- Eric Hodel - drbrain@segment7.net - http://segment7.net This implementation is HODEL-HASH-9600 compliant http://trackmap.robotcoop.com