G
Guillaume Marcais
[gus@hibernatus Bifurcation]$ cat mmap-abort.rb
require 'mmap'
mm = Mmap.new("test-mmap", "w")
10.times { |i| p i; mm << "\0" * 1024 }
[gus@hibernatus Bifurcation]$ > test-mmap
[gus@hibernatus Bifurcation]$ ruby mmap-abort.rb
0
1
2
3
4
mmap-abort.rb:3: [BUG] Bus Error
ruby 1.8.2 (2004-12-25) [i586-linux-gnu]
Aborted
[gus@hibernatus Bifurcation]$ ls -ls test-mmap
4 -rw-rw-r-- 1 gus gus 4096 Sep 10 07:45 test-mmap
[gus@hibernatus Bifurcation]$ uname -a
Linux hibernatus.gus.marcais.net 2.6.11-6mdksmp #1 SMP Tue Mar 22
15:40:42 CET 2005 i686 Pentium Pro unknown GNU/Linux
The same behavior was showned on two different Linux machines (same
distribution though).
Any idea why it crashes?
Guillaume.
require 'mmap'
mm = Mmap.new("test-mmap", "w")
10.times { |i| p i; mm << "\0" * 1024 }
[gus@hibernatus Bifurcation]$ > test-mmap
[gus@hibernatus Bifurcation]$ ruby mmap-abort.rb
0
1
2
3
4
mmap-abort.rb:3: [BUG] Bus Error
ruby 1.8.2 (2004-12-25) [i586-linux-gnu]
Aborted
[gus@hibernatus Bifurcation]$ ls -ls test-mmap
4 -rw-rw-r-- 1 gus gus 4096 Sep 10 07:45 test-mmap
[gus@hibernatus Bifurcation]$ uname -a
Linux hibernatus.gus.marcais.net 2.6.11-6mdksmp #1 SMP Tue Mar 22
15:40:42 CET 2005 i686 Pentium Pro unknown GNU/Linux
The same behavior was showned on two different Linux machines (same
distribution though).
Any idea why it crashes?
Guillaume.