Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memprof got installed but fails with segmentation fault #7

Open
deepak opened this issue Aug 2, 2010 · 10 comments
Open

memprof got installed but fails with segmentation fault #7

deepak opened this issue Aug 2, 2010 · 10 comments

Comments

@deepak
Copy link

deepak commented Aug 2, 2010

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
Copy link
Author

deepak commented Aug 2, 2010

it is on a virtualized XEN instance.

@deepak
Copy link
Author

deepak commented Aug 19, 2010

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

@titanous
Copy link

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

@schneems
Copy link

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

@tusharr
Copy link

tusharr commented Jan 30, 2012

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

@vladgurovich
Copy link

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

@curious-attempt-bunny
Copy link

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

@jarthod
Copy link

jarthod commented Jul 3, 2012

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

@mattvanhorn
Copy link

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

@bkimble
Copy link

bkimble commented Nov 13, 2012

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants