Menu
Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
Bug in mmap or ruby with ruby-1.8.0
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Han Holl, post: 4414919"] Searching for a non-existing string in a mmapped region produces a segfault. Run the following little program: require 'mmap' file = "/usr/bin/ruby" fma = Mmap.new(file, "r", Mmap::MAP_SHARED, {'offset' => 8192, 'length' => 4096}) puts fma.index("\n#\n", 12) fma.unmap Under 1.8.0: tt.rb:10: [BUG] Segmentation fault ruby 1.8.0 (2003-08-04) [i686-linux] Aborted With 1.6.8: nil Cheers, Han Holl [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Bug in mmap or ruby with ruby-1.8.0
Top