memprof icon indicating copy to clipboard operation
memprof copied to clipboard

memprof got installed but fails with segmentation fault

Open deepak opened this issue 15 years ago • 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 } }

deepak avatar Aug 02 '10 08:08 deepak

it is on a virtualized XEN instance.

deepak avatar Aug 02 '10 08:08 deepak

it is working perfectly on a physical machine, the error is occurring on a xen based virtual machine.

deepak avatar Aug 19 '10 13:08 deepak

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

titanous avatar Nov 15 '10 16:11 titanous

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

schneems avatar Oct 24 '11 19:10 schneems

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

tusharr avatar Jan 30 '12 21:01 tusharr

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

vladgurovich avatar Feb 09 '12 00:02 vladgurovich

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

curious-attempt-bunny avatar Apr 13 '12 20:04 curious-attempt-bunny

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

jarthod avatar Jul 03 '12 12:07 jarthod

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

mattvanhorn avatar Aug 08 '12 19:08 mattvanhorn

Try to uninstall/reinstall the Gem. I had this issue and that fixed it for me.

bkimble avatar Nov 13 '12 23:11 bkimble