memprof got installed but fails with segmentation fault
Opened this issue · 10 comments
memprof got installed.
uname -a
Linux foo-xen #1 SMP Mon Jan 26 03:09:12 UTC 2009 x86_64 GNU/Linux
But, i am getting "Segmentation fault" when i run the example from the README
ruby foo.rb
foo.rb:5: [BUG] Segmentation fault
ruby 1.8.7 (2010-04-19 patchlevel 253) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2010.02
Aborted
CODE:
require 'rubygems'
require 'memprof'
Memprof.track {
100.times{ "abc" }
100.times{ 1.23 + 1 }
100.times{ Module.new }
}
it is on a virtualized XEN instance.
it is working perfectly on a physical machine, the error is occurring on a xen based virtual machine.
I'm having the same problem.
deploy@staging:~$ uname -a
Linux staging 2.6.24-23-xen SMP Mon Jan 26 03:09:12 UTC 2009 x86_64 GNU/Linux
deploy@staging:~$ ruby -v
ruby 1.8.7 (2009-12-24 patchlevel 248) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2010.01
I'm getting a seg fault trying to use this Memprof::Tracer
with OS X and REE
/gems/memprof-0.3.10/lib/memprof/tracer.rb:18: [BUG] Segmentation fault
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin11.1.0], MBARI 0x6770, Ruby Enterprise Edition 2011.03
some times it comes across as a Bus Error, always on the same line:
gems/memprof-0.3.10/lib/memprof/tracer.rb:18: [BUG] Bus Error
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin11.1.0], MBARI 0x6770, Ruby Enterprise Edition 2011.03
Its failing for me as well. REE is installed on a physical machine with OS X 10.7.2 with REE 1.8.7
=> Memprof.start
(irb):1: [BUG] Bus Error
ruby 1.8.7 (2011-02-18 patchlevel 334) [i686-darwin11.2.0], MBARI 0x6770, Ruby Enterprise Edition 2011.03
Abort trap: 6
Same here with slightly later patch:
[BUG] Bus Error
ruby 1.8.7 (2011-12-28 MBARI 8/0x6770 on patchlevel 357) [i686-darwin11.2.0], MBARI 0x6770, Ruby Enterprise Edition 2011.12
I'm hitting this too using Memprof.track and REE:
[BUG] Bus Error
ruby 1.8.7 (2011-12-28 MBARI 8/0x6770 on patchlevel 357) [i686-darwin11.3.0], MBARI 0x6770, Ruby Enterprise Edition 2012.01
Also got this error on Mac OS 10.7.4 with REE, did anybody found a solution ?
./test.rb:9: [BUG] Bus Error
ruby 1.8.7 (2012-02-08 MBARI 8/0x6770 on patchlevel 358) [i686-darwin11.4.0], MBARI 0x6770, Ruby Enterprise Edition 2012.02
Abort trap: 6
I'm getting the same thing on REE on a Macbook Pro (Retina) using Mac OS X Lion 10.7.4 (11E2620):
MyMachine:matt matt$ irb
irb(main):001:0> require 'rubygems'
=> true
irb(main):002:0> require 'memprof'
=> true
irb(main):003:0> Memprof.start
(irb):3: [BUG] Bus Error
ruby 1.8.7 (2012-02-08 MBARI 8/0x6770 on patchlevel 358) [i686-darwin11.4.1], MBARI 0x6770, Ruby Enterprise Edition 2012.02
Abort trap: 6
Try to uninstall/reinstall the Gem. I had this issue and that fixed it for me.