[MacRuby-devel] [MacRuby] #645: Segmentation Fault using File::sysseek
MacRuby
ruby-noreply at macosforge.org
Sat Apr 3 00:05:16 PDT 2010
#645: Segmentation Fault using File::sysseek
----------------------------+-----------------------------------------------
Reporter: foranje@… | Owner: lsansonetti@…
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: <http://www.macruby.org/trac/ticket/645>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list