M
Miles Keaton
Looking for any Ruby users on FreeBSD.
I think Ruby in FreeBSD freezes when receiving a reference to a remote object.
Can you please try the code-sample, here?
http://www.ruby-doc.org/stdlib/libdoc/drb/rdoc/classes/DRb.html
The one under the header "Remote objects under dRuby", halfway down the page.
Try having it communicate across two different computers, where
FreeBSD is the server.
Can you get it to work?
For me, on many different FreeBSD boxes, it freezes when it tries to
call this line:
logger.log("Hello, world!")
Everything works until that point.
This same freeze happens with
http://pragmaticprogrammer.com/titles/ruby/code/smp670.html
It works when both processes are on the same box, but not if they are
on two separate computers.
What they all have in common is DRbUndumped - so I'm guessing that's
the problem.
But I can't for the life of me figure out what would make a FreeBSD
server not-respond when receiving a reference to a remote object.
If you pass a copy of the object, with Class defined on both sides, it
works fine.
But if you make it a reference to the original object, it doesn't respond.
Is this a Ruby bug or a FreeBSD threads-bug?
I think Ruby in FreeBSD freezes when receiving a reference to a remote object.
Can you please try the code-sample, here?
http://www.ruby-doc.org/stdlib/libdoc/drb/rdoc/classes/DRb.html
The one under the header "Remote objects under dRuby", halfway down the page.
Try having it communicate across two different computers, where
FreeBSD is the server.
Can you get it to work?
For me, on many different FreeBSD boxes, it freezes when it tries to
call this line:
logger.log("Hello, world!")
Everything works until that point.
This same freeze happens with
http://pragmaticprogrammer.com/titles/ruby/code/smp670.html
It works when both processes are on the same box, but not if they are
on two separate computers.
What they all have in common is DRbUndumped - so I'm guessing that's
the problem.
But I can't for the life of me figure out what would make a FreeBSD
server not-respond when receiving a reference to a remote object.
If you pass a copy of the object, with Class defined on both sides, it
works fine.
But if you make it a reference to the original object, it doesn't respond.
Is this a Ruby bug or a FreeBSD threads-bug?