Ticket #645 (closed defect: fixed)
Segmentation Fault using File::sysseek
| Reported by: | foranje@… | Owned by: | lsansonetti@… |
|---|---|---|---|
| Priority: | blocker | Milestone: | MacRuby 0.6 |
| Component: | MacRuby | Keywords: | |
| Cc: |
Description
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.
Change History
Note: See
TracTickets for help on using
tickets.

