Ruby 1.9.1-p129

W

Wesley Wong

I was trying to install ruby 1.9.1-p129 through RVM and got this error
message. Any ideas?

Thanks,
Wesley

[2010-07-14 16:49:51] make
eval.c: In function ‘ruby_cleanup’:
eval.c:139: warning: passing argument 1 of ‘ruby_init_stack’ discards
qualifiers from pointer target type
../include/ruby/ruby.h:995: note: expected ‘VALUE *’ but argument is of
type ‘volatile VALUE *’
io.c: In function ‘argf_next_argv’:
io.c:6231: warning: ignoring return value of ‘fchown’, declared with
attribute warn_unused_result
process.c: In function ‘rb_fork’:
process.c:2322: warning: ignoring return value of ‘write’, declared
with attribute warn_unused_result
process.c: In function ‘proc_daemon’:
process.c:4239: warning: ignoring return value of ‘chdir’, declared
with attribute warn_unused_result
random.c: In function ‘fill_random_seed’:
random.c:300: warning: ignoring return value of ‘read’, declared with
attribute warn_unused_result
vm_dump.c:240: warning: ‘vm_stack_dump_each’ defined but not used
/home/wesley/.rvm/src/ruby-1.9.1-p129/lib/optparse.rb:1310: [BUG]
Segmentation fault
ruby 1.9.1p129 (2009-05-12 revision 23412) [i686-linux]

-- control frame ----------
c:0013 p:---- s:0060 b:0060 l:000059 d:000059 CFUNC :catch
c:0012 p:0049 s:0056 b:0056 l:000568 d:001064 BLOCK /home/wesley/.rvm/
src/ruby-1.9.1-p129/lib/optparse.rb:1310
c:0011 p:---- s:0050 b:0050 l:000049 d:000049 FINISH
c:0010 p:---- s:0048 b:0048 l:000047 d:000047 CFUNC :catch
c:0009 p:0062 s:0044 b:0044 l:000568 d:000568 METHOD /home/wesley/.rvm/
src/ruby-1.9.1-p129/lib/optparse.rb:1258
c:0008 p:0024 s:0034 b:0034 l:000033 d:000033 METHOD /home/wesley/.rvm/
src/ruby-1.9.1-p129/lib/optparse.rb:1252
c:0007 p:0066 s:0029 b:0029 l:000dc4 d:001420 BLOCK ./tool/
generic_erb.rb:12
c:0006 p:0114 s:0026 b:0026 l:000025 d:000025 METHOD /home/wesley/.rvm/
src/ruby-1.9.1-p129/lib/optparse.rb:793
c:0005 p:---- s:0020 b:0020 l:000019 d:000019 FINISH
c:0004 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC :new
c:0003 p:0069 s:0015 b:0015 l:000dc4 d:001680 EVAL ./tool/
generic_erb.rb:8
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000dc4 d:000dc4 TOP <main>:17
---------------------------
-- Ruby level backtrace
information-----------------------------------------
/home/wesley/.rvm/src/ruby-1.9.1-p129/lib/optparse.rb:1310:in `catch'
/home/wesley/.rvm/src/ruby-1.9.1-p129/lib/optparse.rb:1310:in `block
in parse_in_order'
/home/wesley/.rvm/src/ruby-1.9.1-p129/lib/optparse.rb:1258:in `catch'
/home/wesley/.rvm/src/ruby-1.9.1-p129/lib/optparse.rb:1258:in
`parse_in_order'
/home/wesley/.rvm/src/ruby-1.9.1-p129/lib/optparse.rb:1252:in `order!'
../tool/generic_erb.rb:12:in `block in <main>'
/home/wesley/.rvm/src/ruby-1.9.1-p129/lib/optparse.rb:793:in
`initialize'
../tool/generic_erb.rb:8:in `new'
../tool/generic_erb.rb:8:in `<main>'

-- C level backtrace information
-------------------------------------------
0x816b7f9 ./miniruby(rb_vm_bugreport+0x69) [0x816b7f9]
0x808682f ./miniruby() [0x808682f]
0x80868ca ./miniruby(rb_bug+0x3a) [0x80868ca]
0x8112ab4 ./miniruby() [0x8112ab4]
0x4001d410 [0x4001d410]
0x8159668 ./miniruby() [0x8159668]
0x8165f5e ./miniruby() [0x8165f5e]
0x815f2eb ./miniruby() [0x815f2eb]
0x816260c ./miniruby() [0x816260c]
0x816404b ./miniruby() [0x816404b]
0x8159668 ./miniruby() [0x8159668]
0x8165f5e ./miniruby() [0x8165f5e]
0x815f2eb ./miniruby() [0x815f2eb]
0x816260c ./miniruby() [0x816260c]
0x81664e1 ./miniruby() [0x81664e1]
0x815bfae ./miniruby(rb_funcall2+0xfe) [0x815bfae]
0x8087ec0 ./miniruby(rb_obj_call_init+0x50) [0x8087ec0]
0x80bd2fa ./miniruby(rb_class_new_instance+0x3a) [0x80bd2fa]
0x8159668 ./miniruby() [0x8159668]
0x8165f5e ./miniruby() [0x8165f5e]
0x815f2eb ./miniruby() [0x815f2eb]
0x816260c ./miniruby() [0x816260c]
0x816282b ./miniruby(rb_iseq_eval_main+0xab) [0x816282b]
0x8088be7 ./miniruby(ruby_exec_node+0xb7) [0x8088be7]
0x808a1c6 ./miniruby(ruby_run_node+0x56) [0x808a1c6]
0x805cd88 ./miniruby(main+0x68) [0x805cd88]
0x400cbbd6 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)
[0x400cbbd6]
0x805cc81 ./miniruby() [0x805cc81]

[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

make: *** [encdb.h] Aborted
[2010-07-14 16:52:40] make
/home/wesley/.rvm/src/ruby-1.9.1-p129/lib/optparse.rb:1310: [BUG]
Segmentation fault
ruby 1.9.1p129 (2009-05-12 revision 23412) [i686-linux]

-- control frame ----------
c:0013 p:---- s:0060 b:0060 l:000059 d:000059 CFUNC :catch
c:0012 p:0049 s:0056 b:0056 l:001ef8 d:0003d4 BLOCK /home/wesley/.rvm/
src/ruby-1.9.1-p129/lib/optparse.rb:1310
c:0011 p:---- s:0050 b:0050 l:000049 d:000049 FINISH
c:0010 p:---- s:0048 b:0048 l:000047 d:000047 CFUNC :catch
c:0009 p:0062 s:0044 b:0044 l:001ef8 d:001ef8 METHOD /home/wesley/.rvm/
src/ruby-1.9.1-p129/lib/optparse.rb:1258
c:0008 p:0024 s:0034 b:0034 l:000033 d:000033 METHOD /home/wesley/.rvm/
src/ruby-1.9.1-p129/lib/optparse.rb:1252
c:0007 p:0066 s:0029 b:0029 l:000134 d:0006a0 BLOCK ./tool/
generic_erb.rb:12
c:0006 p:0114 s:0026 b:0026 l:000025 d:000025 METHOD /home/wesley/.rvm/
src/ruby-1.9.1-p129/lib/optparse.rb:793
c:0005 p:---- s:0020 b:0020 l:000019 d:000019 FINISH
c:0004 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC :new
c:0003 p:0069 s:0015 b:0015 l:000134 d:0009f0 EVAL ./tool/
generic_erb.rb:8
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:000134 d:000134 TOP <main>:17
---------------------------
-- Ruby level backtrace
information-----------------------------------------
/home/wesley/.rvm/src/ruby-1.9.1-p129/lib/optparse.rb:1310:in `catch'
/home/wesley/.rvm/src/ruby-1.9.1-p129/lib/optparse.rb:1310:in `block
in parse_in_order'
/home/wesley/.rvm/src/ruby-1.9.1-p129/lib/optparse.rb:1258:in `catch'
/home/wesley/.rvm/src/ruby-1.9.1-p129/lib/optparse.rb:1258:in
`parse_in_order'
/home/wesley/.rvm/src/ruby-1.9.1-p129/lib/optparse.rb:1252:in `order!'
../tool/generic_erb.rb:12:in `block in <main>'
/home/wesley/.rvm/src/ruby-1.9.1-p129/lib/optparse.rb:793:in
`initialize'
../tool/generic_erb.rb:8:in `new'
../tool/generic_erb.rb:8:in `<main>'

-- C level backtrace information
-------------------------------------------
0x816b7f9 ./miniruby(rb_vm_bugreport+0x69) [0x816b7f9]
0x808682f ./miniruby() [0x808682f]
0x80868ca ./miniruby(rb_bug+0x3a) [0x80868ca]
0x8112ab4 ./miniruby() [0x8112ab4]
0x4001d410 [0x4001d410]
0x8159668 ./miniruby() [0x8159668]
0x8165f5e ./miniruby() [0x8165f5e]
0x815f2eb ./miniruby() [0x815f2eb]
0x816260c ./miniruby() [0x816260c]
0x816404b ./miniruby() [0x816404b]
0x8159668 ./miniruby() [0x8159668]
0x8165f5e ./miniruby() [0x8165f5e]
0x815f2eb ./miniruby() [0x815f2eb]
0x816260c ./miniruby() [0x816260c]
0x81664e1 ./miniruby() [0x81664e1]
0x815bfae ./miniruby(rb_funcall2+0xfe) [0x815bfae]
0x8087ec0 ./miniruby(rb_obj_call_init+0x50) [0x8087ec0]
0x80bd2fa ./miniruby(rb_class_new_instance+0x3a) [0x80bd2fa]
0x8159668 ./miniruby() [0x8159668]
0x8165f5e ./miniruby() [0x8165f5e]
0x815f2eb ./miniruby() [0x815f2eb]
0x816260c ./miniruby() [0x816260c]
0x816282b ./miniruby(rb_iseq_eval_main+0xab) [0x816282b]
0x8088be7 ./miniruby(ruby_exec_node+0xb7) [0x8088be7]
0x808a1c6 ./miniruby(ruby_run_node+0x56) [0x808a1c6]
0x805cd88 ./miniruby(main+0x68) [0x805cd88]
0x400cbbd6 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)
[0x400cbbd6]
0x805cc81 ./miniruby() [0x805cc81]

[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

make: *** [encdb.h] Aborted
[2010-07-14 16:55:07] make
/home/wesley/.rvm/src/ruby-1.9.1-p129/lib/optparse.rb:1310: [BUG]
Segmentation fault
ruby 1.9.1p129 (2009-05-12 revision 23412) [i686-linux]

-- control frame ----------
c:0013 p:---- s:0060 b:0060 l:000059 d:000059 CFUNC :catch
c:0012 p:0049 s:0056 b:0056 l:000b58 d:001654 BLOCK /home/wesley/.rvm/
src/ruby-1.9.1-p129/lib/optparse.rb:1310
c:0011 p:---- s:0050 b:0050 l:000049 d:000049 FINISH
c:0010 p:---- s:0048 b:0048 l:000047 d:000047 CFUNC :catch
c:0009 p:0062 s:0044 b:0044 l:000b58 d:000b58 METHOD /home/wesley/.rvm/
src/ruby-1.9.1-p129/lib/optparse.rb:1258
c:0008 p:0024 s:0034 b:0034 l:000033 d:000033 METHOD /home/wesley/.rvm/
src/ruby-1.9.1-p129/lib/optparse.rb:1252
c:0007 p:0066 s:0029 b:0029 l:0013b4 d:001a10 BLOCK ./tool/
generic_erb.rb:12
c:0006 p:0114 s:0026 b:0026 l:000025 d:000025 METHOD /home/wesley/.rvm/
src/ruby-1.9.1-p129/lib/optparse.rb:793
c:0005 p:---- s:0020 b:0020 l:000019 d:000019 FINISH
c:0004 p:---- s:0018 b:0018 l:000017 d:000017 CFUNC :new
c:0003 p:0069 s:0015 b:0015 l:0013b4 d:001c70 EVAL ./tool/
generic_erb.rb:8
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:0013b4 d:0013b4 TOP <main>:17
---------------------------
-- Ruby level backtrace
information-----------------------------------------
/home/wesley/.rvm/src/ruby-1.9.1-p129/lib/optparse.rb:1310:in `catch'
/home/wesley/.rvm/src/ruby-1.9.1-p129/lib/optparse.rb:1310:in `block
in parse_in_order'
/home/wesley/.rvm/src/ruby-1.9.1-p129/lib/optparse.rb:1258:in `catch'
/home/wesley/.rvm/src/ruby-1.9.1-p129/lib/optparse.rb:1258:in
`parse_in_order'
/home/wesley/.rvm/src/ruby-1.9.1-p129/lib/optparse.rb:1252:in `order!'
../tool/generic_erb.rb:12:in `block in <main>'
/home/wesley/.rvm/src/ruby-1.9.1-p129/lib/optparse.rb:793:in
`initialize'
../tool/generic_erb.rb:8:in `new'
../tool/generic_erb.rb:8:in `<main>'

-- C level backtrace information
-------------------------------------------
0x816b7f9 ./miniruby(rb_vm_bugreport+0x69) [0x816b7f9]
0x808682f ./miniruby() [0x808682f]
0x80868ca ./miniruby(rb_bug+0x3a) [0x80868ca]
0x8112ab4 ./miniruby() [0x8112ab4]
0x4001d410 [0x4001d410]
0x8159668 ./miniruby() [0x8159668]
0x8165f5e ./miniruby() [0x8165f5e]
0x815f2eb ./miniruby() [0x815f2eb]
0x816260c ./miniruby() [0x816260c]
0x816404b ./miniruby() [0x816404b]
0x8159668 ./miniruby() [0x8159668]
0x8165f5e ./miniruby() [0x8165f5e]
0x815f2eb ./miniruby() [0x815f2eb]
0x816260c ./miniruby() [0x816260c]
0x81664e1 ./miniruby() [0x81664e1]
0x815bfae ./miniruby(rb_funcall2+0xfe) [0x815bfae]
0x8087ec0 ./miniruby(rb_obj_call_init+0x50) [0x8087ec0]
0x80bd2fa ./miniruby(rb_class_new_instance+0x3a) [0x80bd2fa]
0x8159668 ./miniruby() [0x8159668]
0x8165f5e ./miniruby() [0x8165f5e]
0x815f2eb ./miniruby() [0x815f2eb]
0x816260c ./miniruby() [0x816260c]
0x816282b ./miniruby(rb_iseq_eval_main+0xab) [0x816282b]
0x8088be7 ./miniruby(ruby_exec_node+0xb7) [0x8088be7]
0x808a1c6 ./miniruby(ruby_run_node+0x56) [0x808a1c6]
0x805cd88 ./miniruby(main+0x68) [0x805cd88]
0x400cbbd6 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)
[0x400cbbd6]
0x805cc81 ./miniruby() [0x805cc81]

[NOTE]
You may encounter a bug of Ruby interpreter. Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

make: *** [encdb.h] Aborted
 
W

Wesley Wong

Thanks for the reply Jeremy.

I tried installing twice, once with each of the optflags. Both have
the same error as before. Is there a difference since the bug is for
p429 and I'm having problems with p129?

I was able to install p129 on 2 other computers, but for some reason,
this 3rd one is giving me problems.

Any other ideas?
 
R

Robert Dober

Hmm maybe you can avoid this by installing 1.9.2 rc-2? That is the
recommended version anyway IIRC.
HTH
Robert
 
W

Wesley Wong

Thanks for the reply Robert.

Unfortunately, I'm attempting to match the environment in Heroku. They
use 1.9.1-p129. There was a problem with the specific patch, so I
thought I should develop in it to avoid future problems.

I was able to install 1.9.1-p378 without problems though.

A little more background. I'm attempting to use RVM on Ubuntu 10.04
which is failing. However, I did install p129 through RVM on Ubuntu
10.04 on another computer.

Any other ideas?
 
W

Wesley Wong

Thanks Jeremy.

I was able to install it on another computer through RVM on Ubuntu
10.04.

This really makes me think I've done something on my computer. Perhaps
the wrong or old versions of packages.

Any one have any ideas which packages I should be checking? I'm pretty
lost when it comes to what is used when compiling ruby.

Thanks,
Wesley
 
W

Wesley Wong

I have a few updates from this problem. I've managed to take RVM out
of the picture by downloading ruby 1.9.1-p129 from
ftp://ftp.ruby-lang.org//pub/ruby/1.9/ruby-1.9.1-p129.tar.gz and
attempting to compile manually.

RVM configures using:

../configure --prefix=<path> --enable-shared
make

I ran this myself as a user (not root). This also results in the
segmentation fault.

I tried with no flags or just 1 flag and in the cases when I used --
enable-shared, I got the segmentation fault. Without that flag, it
compiled fine.

Any one know what this means?

Thanks,
Wesley
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,961
Messages
2,570,130
Members
46,689
Latest member
liammiller

Latest Threads

Top