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

ruby: getshstrndx() failed: no error. #1

Closed
ghazel opened this issue Dec 12, 2009 · 5 comments
Closed

ruby: getshstrndx() failed: no error. #1

ghazel opened this issue Dec 12, 2009 · 5 comments

Comments

@ghazel
Copy link

ghazel commented Dec 12, 2009

ruby --version

ruby 1.8.7 (2009-06-12 patchlevel 174) [x86_64-linux], MBARI 0x6770, Ruby Enterprise Edition 2009.10

uname -a

Linux myhost 2.6.21.7-2.fc8xen #1 SMP Fri Feb 15 12:34:28 EST 2008 x86_64 x86_64 x86_64 GNU/Linux

ruby -e "require 'memprof'"

ruby: getshstrndx() failed: no error.

@ghazel
Copy link
Author

ghazel commented Dec 13, 2009

file which ruby

/usr/local/bin/ruby: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped

@ice799
Copy link
Owner

ice799 commented Dec 14, 2009

hi -

can you try to apply this patch, make clean, make, and tell me what happens: http://timetobleed.com/files/memprof-fix.patch

there is a bug/miscommunication issue in libelf with the function that is giving you problems. so let's try a simple fix first, and if this fails we'll do more digging.

@anildigital
Copy link

How to apply this patch? (Ubuntu 9.10)

@ghazel
Copy link
Author

ghazel commented Dec 14, 2009

$ ruby -e "require 'memprof'"
ruby: symbol lookup error: /usr/local/ruby/lib/ruby/gems/1.8/gems/memprof-0.1.2/lib/memprof.so: undefined symbol: elf_getshdrstrndx

@tmm1
Copy link
Collaborator

tmm1 commented Feb 23, 2010

this was fixed by bundling our own version of libdwarf and libelf

This issue was closed.
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

4 participants