# Running memprof on ree 2010.02, gives a segmentation fault

**URL:** <https://www.ruby-forum.com/t/running-memprof-on-ree-2010-02-gives-a-segmentation-fault/192568>\
**Category:** Ruby\
**Created:** [August 2, 2010, 10:51am UTC](https://www.ruby-forum.com/t/running-memprof-on-ree-2010-02-gives-a-segmentation-fault/192568 "2010-08-02T10:51:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luckydeepak](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/958977/32.png) [@luckydeepak](https://www.ruby-forum.com/u/luckydeepak)\
**Post date:** [August 2, 2010, 10:51am UTC](https://www.ruby-forum.com/t/running-memprof-on-ree-2010-02-gives-a-segmentation-fault/192568/1 "2010-08-02T10:51:46Z")

</div>

have opened a issue at:

> <https://github.com/ice799/memprof/issues/7>
>
> memprof got installed.
> 
> \> uname -a
> \> Linux \<vhost\> 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 }
> }

The installation of memprof was successful. And is on a virtualized on a  
XEN instance.

> uname -a  
> Linux foo-xen #1 SMP Mon Jan 26 03:09:12 UTC 2009 x86\_64 GNU/Linux

> ruby -v  
> ruby 1.8.7 (2010-04-19 patchlevel 253) [x86\_64-linux], MBARI 0x6770,  
> Ruby Enterprise Edition 2010.02

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 }  
}

What i am doing wrong?

thanks,  
deepak

---

<div class="post-metadata">

**Author:** ![luckydeepak](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/958977/32.png) [@luckydeepak](https://www.ruby-forum.com/u/luckydeepak)\
**Post date:** [August 2, 2010, 1:21pm UTC](https://www.ruby-forum.com/t/running-memprof-on-ree-2010-02-gives-a-segmentation-fault/192568/2 "2010-08-02T13:21:15Z")

</div>

Deepak K. wrote:

> have opened a issue at:  
> [memprof got installed but fails with segmentation fault · Issue #7 · ice799/memprof · GitHub](http://github.com/ice799/memprof/issues/issue/7)
> 
> The installation of memprof was successful. And is on a virtualized on a  
> XEN instance.
> 
> > uname -a  
> > Linux foo-xen #1 SMP Mon Jan 26 03:09:12 UTC 2009 x86\_64 GNU/Linux
> 
> > ruby -v  
> > ruby 1.8.7 (2010-04-19 patchlevel 253) [x86\_64-linux], MBARI 0x6770,  
> > Ruby Enterprise Edition 2010.02
> 
> But, i am getting “Segmentation fault” when i run the example from the  
> README

Maybe it’s not REE compatible, since REE uses a different GC style?  
-r
