fanicy / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

vim breaks statically-linked ruby by stripping symbols #114

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When vim statically links against ruby, for instance if the selected ruby 
interpreter doesn't provide shared libraries, stripping symbols during `make 
install` will result in the vim binary segfault when calling any  ruby 
functions.

What steps will reproduce the problem?
1. Configure vim with --enable-rubyinterp
2. make
3. make install
4. In vim, enter: :ruby p RUBY_VERSION

What is the expected output? What do you see instead?

vim will instantly segfault. gdb reveals that vim is unable to find the 
'_rb_encdb_declare' symbol.

What version of the product are you using? On what operating system?

vim 7.3.831 using Mac OS X 10.6.8.

Please provide any additional information below.

If `make install` is run with stripping disabled, the resulting binary will 
work as expected.

Original issue reported on code.google.com by mistyde...@gmail.com on 21 Feb 2013 at 9:51

GoogleCodeExporter commented 9 years ago
Does this still happen? What ruby version are you using?

Original comment by chrisbr...@googlemail.com on 9 Oct 2014 at 9:05