[#25936] [Bug:1.9] [rubygems] $LOAD_PATH includes bin directory — Nobuyoshi Nakada <nobu@...>

Hi,

10 messages 2009/10/05

[#25943] Disabling tainting — Tony Arcieri <tony@...>

Would it make sense to have a flag passed to the interpreter on startup that

16 messages 2009/10/05

[#26028] [Bug #2189] Math.atanh(1) & Math.atanh(-1) should not raise an error — Marc-Andre Lafortune <redmine@...>

Bug #2189: Math.atanh(1) & Math.atanh(-1) should not raise an error

14 messages 2009/10/10

[#26222] [Bug #2250] IO::for_fd() objects' finalization dangerously closes underlying fds — Mike Pomraning <redmine@...>

Bug #2250: IO::for_fd() objects' finalization dangerously closes underlying fds

11 messages 2009/10/22

[#26244] [Bug #2258] Kernel#require inside rb_require() inside rb_protect() inside SysV context fails — Suraj Kurapati <redmine@...>

Bug #2258: Kernel#require inside rb_require() inside rb_protect() inside SysV context fails

24 messages 2009/10/22

[#26361] [Feature #2294] [PATCH] ruby_bind_stack() to embed Ruby in coroutine — Suraj Kurapati <redmine@...>

Feature #2294: [PATCH] ruby_bind_stack() to embed Ruby in coroutine

42 messages 2009/10/27

[#26371] [Bug #2295] segmentation faults — tomer doron <redmine@...>

Bug #2295: segmentation faults

16 messages 2009/10/27

[ruby-core:25932] Re: Ruby 1.8.6-p383 hangs in dln_load on Snow Leopard

From: Timothy Hunter <cyclists@...>
Date: 2009-10-04 13:09:49 UTC
List: ruby-core #25932
On Oct 3, 2009, at 11:21 PM, James Edward Gray II wrote:

> 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
>
>


Snow Leopard's Ruby:

$ 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

Here's RMagick2.bundle when built using Snow Leopard's Ruby 1.8.7:

$ file RMagick2.bundle
RMagick2.bundle: Mach-O universal binary with 2 architectures
RMagick2.bundle (for architecture i386):	Mach-O bundle i386
RMagick2.bundle (for architecture x86_64):	Mach-O 64-bit bundle x86_64

And ImageMagick:

$ file libMagickCore.dylib
libMagickCore.dylib: Mach-O 64-bit dynamically linked shared library  
x86_64




In This Thread