[MacRuby-devel] [MacRuby] #321: macgem crashes with "unknown: [BUG] Segmentation fault".

2009-09-02 Thread MacRuby
#321: macgem crashes with "unknown: [BUG] Segmentation fault".
---+
 Reporter:  oc...@…|   Owner:  lsansone...@…
 Type:  defect |  Status:  new  
 Priority:  major  |   Milestone:   
Component:  MacRuby|Keywords:   
---+
 macgem crashes with "unknown: [BUG] Segmentation fault".

 I tracked it to rubygems/config_file.rb:118):

 operating_system_config = Marshal.load
 Marshal.dump(OPERATING_SYSTEM_DEFAULTS)

 which crashes in the Marshal.load.  Assuming the Marshal.dump is working
 (I can't confirm), the crash leads to macruby/marshal.c:1037ff where
 "RSTRING_LEN(arg->src)" blows up in a conditional:

 if (RSTRING_LEN(arg->src) > arg->offset) {

 The RSTRING_LEN macro tracks to CFStringGetLength crashing on "ptr" at
 macruby/string.c:625ff:

 long
 rb_str_clen(VALUE ptr)
 {
 return CFStringGetLength((CFStringRef)ptr);
 }

 The "VALUE ptr" gets passed in from Marshal.load and blows up in
 CFStringGetLength.  I'm not sure whether the parameter is broken (though
 it seems valid), or whether perhaps Snow Leopard changed CFStringRef so
 that MacRuby's "struct load_arg *" needs to be updated to maintain
 compatibility.

 With luck, this issue is not too hard for a more astute debugger (or
 somone with knowledge of SL's CFStringRef) to solve.  It would be nice to
 have macgem working (not to mention Marshal'ing).

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] [MacRuby] #321: macgem crashes with "unknown: [BUG] Segmentation fault".

2009-09-02 Thread MacRuby
#321: macgem crashes with "unknown: [BUG] Segmentation fault".
---+
 Reporter:  oc...@…|   Owner:  lsansone...@…
 Type:  defect |  Status:  new  
 Priority:  major  |   Milestone:   
Component:  MacRuby|Keywords:   
---+

Comment(by oc...@…):

 A little extra info on the crash:

 unknown: [BUG] Segmentation fault

 MacRuby version 0.5 (ruby 1.9.0) [universal-darwin10.0, x86_64]

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] [MacRuby] #322: Instance variable memory layout error

2009-09-02 Thread MacRuby
#322: Instance variable memory layout error
+---
 Reporter:  d...@…   |   Owner:  lsansone...@…
 Type:  defect  |  Status:  new  
 Priority:  critical|   Milestone:  MacRuby 0.5  
Component:  MacRuby |Keywords:   
+---
 {{{
 macruby -e "class C; def m; @v1 = @v2 = @v3 = @v4 = @v5 = @v6 = @v7 = @v8
 = @v9 = @v10 = 0; end; def test; p @oops; end; end; c = C.new.test"
 }}}

 gives a false instead of nil!

 If I use less than 10 variables everything is fine, so I suppose that this
 is a (serious) memory layout problem!

 I am on OS 10.5.7 with MacRuby r2454.

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] [MacRuby] #323: GCD for_reading queue crash

2009-09-02 Thread MacRuby
#323: GCD for_reading queue crash
-+--
 Reporter:  b...@…|   Owner:  pthom...@…
 Type:  defect   |  Status:  new   
 Priority:  major|   Milestone:
Component:  MacRuby  |Keywords:
-+--
 Running the attached program and sending data to the syslog causes an
 assertion failure.

 {{{
 # macruby gcd_test.rb
 }}}
 in another shell do this a few times:
 {{{
 syslog -l 3 -s 'hi'
 syslog -l 3 -s 'hi'
 syslog -l 3 -s 'hi'
 }}}

 The crash is the eventual result of assertion failure:
 {{{Assertion failed: (pimp != NULL), function __rb_vm_bcall, file vm.cpp,
 line 2188.}}}
 except I can also get it to crash here:
 {{{
 Program received signal EXC_BAD_ACCESS, Could not access memory.
 Reason: KERN_INVALID_ADDRESS at address: 0x
 [Switching to process 7775]
 0x in ?? ()
 (gdb) bt
 #0  0x in ?? ()
 #1  0x00010017ebeb in rb_vm_block_eval0 (b=0x20001df20, self=513,
 argc=0, argv=0x0) at vm.cpp:3968
 #2  0x000100119a26 in rb_source_event_handler (sourceptr=) at gcd.c:673
 #3  0x7fff820eb46d in _dispatch_source_invoke ()
 #4  0x7fff820ea824 in _dispatch_queue_invoke ()
 #5  0x7fff820ea94d in _dispatch_queue_drain ()
 #6  0x7fff820ea7a4 in _dispatch_queue_invoke ()
 #7  0x7fff820ea34e in _dispatch_worker_thread2 ()
 #8  0x7fff820e9c80 in _pthread_wqthread ()
 #9  0x7fff820e9b1d in start_wqthread ()
 }}}

-- 
Ticket URL: 
MacRuby 

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


[MacRuby-devel] Fail

2009-09-02 Thread Wayne Seguin

Hello everyone,

Background: I am trying to add MacRuby support to a tool called rvm   
"Ruby Version Manager"


The commands I am using to build and install MacRuby are currently  
(from rake -T):


rake macruby:build framework_instdir=~/.rvm/macruby-head  
framework_name=/macruby-head --trace
rake framework:install framework_instdir=~/.rvm/macruby-head  
framework_name=/macruby-head --trace


This is done every time against a *fresh* clone of: 
git://github.com/masterkain/macruby.git

I am currently running into the following error with the above:

http://pastie.org/private/n8wx6kigcojc5rdqllni6w

My real requirements are that I can specify the destination directory  
to install to (example: ~/.rvm/macruby-head). So if I should be using  
different commands to build & install please let me know. Any help  
would be greatly appreciated.


Thank you for your attention,

  ~Wayne

P.S. Nightly builds would be far superior to having rvm users build  
themselves.

___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel


Re: [MacRuby-devel] Fail

2009-09-02 Thread Matt Aimonetti
Hey Wayne,

 I didn't check your log but I would recommend to do:

$ rake clean
$ rake
$ DESTDIR=~/.rvm/macruby-head rake install

That should output all the files to your folder and you will just need to
move them were needed.

Let me know if that works for you (or not)

- Matt

On Wed, Sep 2, 2009 at 6:42 PM, Wayne Seguin  wrote:

> Hello everyone,
>
> Background: I am trying to add MacRuby support to a tool called rvm  "Ruby
> Version Manager"
>
> The commands I am using to build and install MacRuby are currently (from
> rake -T):
>
> rake macruby:build framework_instdir=~/.rvm/macruby-head
> framework_name=/macruby-head --trace
> rake framework:install framework_instdir=~/.rvm/macruby-head
> framework_name=/macruby-head --trace
>
> This is done every time against a *fresh* clone of: git://
> github.com/masterkain/macruby.git
>
> I am currently running into the following error with the above:
>
> http://pastie.org/private/n8wx6kigcojc5rdqllni6w
>
> My real requirements are that I can specify the destination directory to
> install to (example: ~/.rvm/macruby-head). So if I should be using different
> commands to build & install please let me know. Any help would be greatly
> appreciated.
>
> Thank you for your attention,
>
>  ~Wayne
>
> P.S. Nightly builds would be far superior to having rvm users build
> themselves.
> ___
> MacRuby-devel mailing list
> [email protected]
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel
>
___
MacRuby-devel mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel