[MacRuby-devel] [MacRuby] #645: Segmentation Fault using File::sysseek

2010-04-03 Thread MacRuby
#645: Segmentation Fault using File::sysseek
+---
 Reporter:  fora...@…   |   Owner:  lsansone...@…
 Type:  defect  |  Status:  new  
 Priority:  blocker |   Milestone:   
Component:  MacRuby |Keywords:   
+---
 Using the sysseek method of a file always seems to result into a
 Segmentation fault using MacRuby. Using the same code with regular Ruby
 works fine.

 '''test.rb'''

 {{{
 file = File.new("test.txt")
 file.sysseek(2, IO::SEEK_SET)
 print file.sysread(5)
 file.close
 }}}

 '''test.txt'''

 {{{
 blaatblaatblaatblaatblaat
 }}}

 '''Result''' when executing the file using MacRuby:
 {{{
 Segmentation fault
 }}}

 If I comment out the sysseek line, it gives no error. So the sysseek seems
 to be the issue.

-- 
Ticket URL: 
MacRuby 

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


Re: [MacRuby-devel] [MacRuby] #645: Segmentation Fault using File::sysseek

2010-04-03 Thread MacRuby
#645: Segmentation Fault using File::sysseek
+---
 Reporter:  fora...@…   |   Owner:  lsansone...@…
 Type:  defect  |  Status:  new  
 Priority:  blocker |   Milestone:   
Component:  MacRuby |Keywords:   
+---

Comment(by martinlagarde...@…):

 Laurent, the stack trace is the following:

 {{{
 Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
 0   libSystem.B.dylib   0x7fff8773f886 __kill + 10
 1   libSystem.B.dylib   0x7fff877dfeae abort + 83
 2   libmacruby.dylib0x00010004317d rb_bug + 205
 (error.c:229)
 3   libmacruby.dylib0x0001000be660 sigbus + 0
 (signal.c:378)
 4   libSystem.B.dylib   0x7fff8775180a _sigtramp + 26
 5   libobjc.A.dylib 0x7fff875e96e5
 _class_isMetaClass + 11
 6   libobjc.A.dylib 0x7fff875ec466
 class_isMetaClass + 9
 7   libmacruby.dylib0x000100067444 rb_num2long +
 388 (ruby.h:1185)
 8   libmacruby.dylib0x000100059c7b rb_io_seek + 43
 (io.c:562)
 9   libmacruby.dylib0x00010014b98b rb_vm_dispatch
 + 6635 (dispatcher.cpp:449)
 10  ??? 0x000101100138 0 + 4312793400
 11  libmacruby.dylib0x00010015f4bf rb_vm_run + 351
 (vm.cpp:3976)
 12  libmacruby.dylib0x0001000451e9 ruby_run_node +
 73 (eval.c:201)
 13  macruby 0x00010d28 main + 152
 (main.cpp:40)
 14  macruby 0x00010c88 start + 52
 }}}

 Is that the problem with the `NSNumber` bridge?

-- 
Ticket URL: 
MacRuby 

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


Re: [MacRuby-devel] [MacRuby] #645: Segmentation Fault using File::sysseek

2010-04-03 Thread MacRuby
#645: Segmentation Fault using File::sysseek
+---
 Reporter:  fora...@…   |Owner:  lsansone...@…
 Type:  defect  |   Status:  closed   
 Priority:  blocker |Milestone:  MacRuby 0.6  
Component:  MacRuby |   Resolution:  fixed
 Keywords:  |  
+---
Changes (by lsansone...@…):

  * status:  new => closed
  * resolution:  => fixed
  * milestone:  => MacRuby 0.6


Comment:

 Should be fixed in r3903.

-- 
Ticket URL: 
MacRuby 

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


[MacRuby-devel] [MacRuby] #646: Ripper is broken on trunk

2010-04-03 Thread MacRuby
#646: Ripper is broken on trunk
-+--
 Reporter:  eloy.de.en...@…  |   Owner:  lsansone...@…
 Type:  defect   |  Status:  new  
 Priority:  blocker  |   Milestone:   
Component:  MacRuby  |Keywords:   
-+--
 Ripper, which is used by rb_nibtool.rb (IB), segfaults on trunk:

 {{{
 % cat t.rb
 class A
   attr_accessor :foo
 end

 % macruby ./bin/rb_nibtool -f t.rb
 unknown: [BUG] Segmentation fault
 MacRuby version 0.6 (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] #647: Create alias when a pure objc #setFoo method is overriden

2010-04-03 Thread MacRuby
#647: Create alias when a pure objc #setFoo method is overriden
-+--
 Reporter:  eloy.de.en...@…  |   Owner:  lsansone...@…
 Type:  defect   |  Status:  new  
 Priority:  blocker  |   Milestone:   
Component:  MacRuby  |Keywords:   
-+--
 When the user, in Ruby, overrides a #setFoo method of a pure objc
 superclass, MacRuby should create an alias from #foo= to the new #setFoo
 method.

 This is because the MacRuby helper which delegates #foo= to #setFoo only
 does that for pure objc #setFoo method implementations.

 {{{
 class YourView < NSView
   def setFrame(frame)
 super
 # custom stuff
   end

   # MacRuby should create this alias when #setFrame was defined above.
   alias_method :frame=, :setFrame
 end
 }}}

-- 
Ticket URL: 
MacRuby 

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


Re: [MacRuby-devel] [MacRuby] #646: Ripper is broken on trunk

2010-04-03 Thread MacRuby
#646: Ripper is broken on trunk
-+--
 Reporter:  eloy.de.en...@…  |Owner:  lsansone...@…
 Type:  defect   |   Status:  closed   
 Priority:  blocker  |Milestone:  MacRuby 0.6  
Component:  MacRuby  |   Resolution:  fixed
 Keywords:   |  
-+--
Changes (by lsansone...@…):

  * status:  new => closed
  * resolution:  => fixed
  * milestone:  => MacRuby 0.6


Comment:

 Should be fixed in r3904.

-- 
Ticket URL: 
MacRuby 

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