From: James Edward Gray II Date: 2009-10-04T12:21:47+09:00 Subject: [ruby-core:25931] Re: Ruby 1.8.6-p383 hangs in dln_load on Snow Leopard On Oct 3, 2009, at 7:04 PM, Ryan Davis wrote: > On Oct 3, 2009, at 14:52 , James Edward Gray II wrote: > >> On Oct 3, 2009, at 4:26 PM, Timothy Hunter wrote: >> >>> An RMagick user reports that Ruby 1.8.6 hangs when requiring >>> RMagick. >> >> I'm that user and RMagick isn't the only Ruby extension affected. >> A plist extension shipped with TextMate shows the same behavior. >> This extension is a trivial wrapper over a framework provided in >> the OS. These are the only two extensions I've noticed are >> affected, so far. >> >> If you have TextMate installed on Snow Leopard, it's super easy to >> trigger this hang: >> >> $ ruby -r /Applications/TextMate.app/Contents/SharedSupport/Support/ >> lib/osx/plist -e1 > > can you run `file` on all the binaries involved pls? Here's the Ruby I compiled, RMagick (if I used the right path), and TextMate's plist extension: $ file /usr/local/bin/ruby /usr/local/bin/ruby: Mach-O 64-bit executable x86_64 $ file /usr/local/lib/ruby/gems/1.8/gems/rmagick-2.11.1/ext/RMagick/ RMagick2.bundle /usr/local/lib/ruby/gems/1.8/gems/rmagick-2.11.1/ext/RMagick/ RMagick2.bundle: Mach-O 64-bit bundle x86_64 $ file /Applications/TextMate.app/Contents/SharedSupport/Support/lib/ osx/plist.bundle /Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/ plist.bundle: Mach-O universal binary with 3 architectures /Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/ plist.bundle (for architecture ppc7400): Mach-O bundle ppc /Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/ plist.bundle (for architecture i386): Mach-O bundle i386 /Applications/TextMate.app/Contents/SharedSupport/Support/lib/osx/ plist.bundle (for architecture x86_64): Mach-O 64-bit bundle x86_64 Here's Apple's Ruby for comparison: $ file /usr/bin/ruby /usr/bin/ruby: Mach-O universal binary with 3 architectures /usr/bin/ruby (for architecture x86_64): Mach-O 64-bit executable x86_64 /usr/bin/ruby (for architecture i386): Mach-O executable i386 /usr/bin/ruby (for architecture ppc7400): Mach-O executable ppc Cakey-Please:~ $ file /Applications/Tex TextEdit.app/ TextMate.app/ Let me know if I didn't use a good path for RMagick or you want to see others. James Edward Gray II