From: Joey Gibson Date: 2000-12-14T00:10:02+09:00 Subject: [ruby-talk:7151] Problem with MSVC-compiled Ruby On Win2k I got the 1.6.1 sources and built it using MSVC 6 (SP3) on a Windows 2000 Pro system. The build worked and so did the tests. It works in all respects except when executing a Thread#join. No matter the circumstance, executing a join on a thread aborts the interpreter with a deadlock. For example, this is some DRb code from the Ruby book: require 'drb' class TestServer def doit "Hello" end end test = TestServer.new DRb.start_service("druby://localhost:9000", test) DRb.thread.join As soon as the DRb.thread.join is executed, here's the dump: deadlock 0x2a71e58: 2:1 - D:/ruby/lib/ruby/site_ruby/1.6/drb/drb.rb:230 deadlock 0x2a857a8: 2:8 (main) - dtest.rb:11 dtest.rb:11:in `join': Thread: deadlock (fatal) from dtest.rb:11 I've gotten the same thing with other threaded code as well. Now here's the interesting part: if I build from the same sources using Cygwin's gcc 2.95.2, the example above (and all others) works perfectly. I could use the cygwin version, but I don't want to have to use Unix pathnames (I've been out of the Unix world too long...). Has anyone successfully built and used 1.6.1 with MSVC 6 on Win2k? Do you have any pointers? Thanks, Joey -- -- Sun Certified Java2 Programmer -- Political Rants: www.joeygibson.com -- My Pocket Smalltalk Stuff: st.joeygibson.com -- -- "Do you know what I am doing, Miss Kenton? I am placing my -- mind elsewhere while you chatter away." -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! -----== Over 80,000 Newsgroups - 16 Different Servers! =-----