Bug #7977

rails 4 crashes ruby 2.0 on Solaris

Added by John Groenveld about 1 year ago. Updated 4 months ago.

[ruby-core:52977]
Status:Rejected
Priority:Normal
Assignee:Naohisa Goto
Category:-
Target version:-
ruby -v:ruby 2.0.0p0 (2013-02-24 revision 39474) [i386-solaris2.11] Backport:

Description

env PATH=/opt/apache2/ruby-2.0.0/bin:/usr/gnu/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/opt/solarisstudio12.3/bin:/usr/sfw/bin gem install rails --version 4.0.0.beta1 --no-ri --no-rdoc

/opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/specification.rb:951: [BUG] Segmentation fault
ruby 2.0.0p0 (2013-02-24 revision 39474) [i386-solaris2.11]

-- Control frame information -----------------------------------------------
c:0018 p:---- s:0078 e:000077 CFUNC :eval
c:0017 p:0114 s:0072 E:002358 METHOD /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/specification.rb:951
c:0016 p:0019 s:0065 e:000064 BLOCK /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/specification.rb:628 [FINISH]
c:0015 p:---- s:0061 e:000060 CFUNC :each
c:0014 p:0028 s:0058 e:000057 BLOCK /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/specification.rb:627 [FINISH]
c:0013 p:---- s:0055 e:000054 CFUNC :each
c:0012 p:0008 s:0052 e:000051 METHOD /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/specification.rb:626
c:0011 p:0012 s:0048 e:000047 METHOD /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/specification.rb:642
c:0010 p:0035 s:0044 E:0005e0 METHOD /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/specification.rb:653
c:0009 p:0024 s:0040 e:000039 METHOD /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/specification.rb:806 [FINISH]
c:0008 p:---- s:0037 e:000036 CFUNC :map
c:0007 p:0045 s:0034 e:000032 METHOD /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems.rb:418
c:0006 p:0012 s:0027 e:000025 METHOD /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems.rb:928
c:0005 p:0063 s:0023 e:000022 TOP /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/gemrunner.rb:73 [FINISH]
c:0004 p:---- s:0021 e:000020 CFUNC :require
c:0003 p:0073 s:0017 e:000016 METHOD /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/core
ext/kernel_require.rb:45
c:0002 p:0015 s:0007 E:000180 EVAL /opt/apache2/ruby-2.0.0/bin/gem:9 [FINISH]
c:0001 p:0000 s:0002 E:000a48 TOP [FINISH]

-- Ruby level backtrace information ----------------------------------------
/opt/apache2/ruby-2.0.0/bin/gem:9:in <main>'
/opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:45:in
require'
/opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/coreext/kernelrequire.rb:45:in require'
/opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/gem_runner.rb:73:in
'
/opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems.rb:928:in load_plugins'
/opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems.rb:418:in
findfiles'
/opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems.rb:418:in map'
/opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/specification.rb:806:in
each'
/opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/specification.rb:653:in _all'
/opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/specification.rb:642:in
each
normal'
/opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/specification.rb:626:in each_spec'
/opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/specification.rb:626:in
each'
/opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/specification.rb:627:in block in each_spec'
/opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/specification.rb:627:in
each'
/opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/specification.rb:628:in block (2 levels) in each_spec'
/opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/specification.rb:951:in
load'
/opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/specification.rb:951:in `eval'

-- C level backtrace information -------------------------------------------
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'rbvmbugreport+0x63 [0xffff80ffb6005033]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'reportbug+0x116 [0xffff80ffb5ed04c6]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'rb
bug+0xbb [0xffff80ffb5ed05bb]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'sigsegv+0x4e [0xffff80ffb5f8cd0e]
/lib/amd64/libc.so.1'_sighndlr+0x6 [0xffff80ffbf5418b6]
/lib/amd64/libc.so.1'call
userhandler+0x2ce [0xffff80ffbf53503a]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'onigenc
getprevcharhead+0x24 [0xffff80ffb5f6f6b4]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'ruby
yyparse+0x6f15 [0xffff80ffb5f34255]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'yycompile0+0x156 [0xffff80ffb5f36246]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'rbsuppresstracing+0xdf [0xffff80ffb600791f]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'yycompile+0x35 [0xffff80ffb5f36345]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'parsestring+0x2c [0xffff80ffb5fe85ac]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'rb
iseqcompilewithoption+0x11f [0xffff80ffb5fe86ff]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'eval
stringwithcref+0x234 [0xffff80ffb5ffdf44]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'rbfeval+0x111 [0xffff80ffb5ffe421]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'vmcallcfuncwithframe+0x348 [0xffff80ffb5ff0c88]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'vmexeccore+0x2c7b [0xffff80ffb5ff5d6b]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'vmexec+0xb0f [0xffff80ffb60023bf]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'invoke
blockfromc+0x49a [0xffff80ffb6000a9a]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'rbyield+0x73 [0xffff80ffb5ffcf93]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'rb
aryeach+0x77 [0xffff80ffb5e9d337]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'vm
callcfuncwithframe+0x348 [0xffff80ffb5ff0c88]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'vm
execcore+0x2d09 [0xffff80ffb5ff5df9]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'vm
exec+0xb0f [0xffff80ffb60023bf]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'invokeblockfromc+0x49a [0xffff80ffb6000a9a]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'rb
yield+0x73 [0xffff80ffb5ffcf93]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'rbaryeach+0x77 [0xffff80ffb5e9d337]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'vmcallcfuncwithframe+0x348 [0xffff80ffb5ff0c88]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'vmcallmethod+0x39b [0xffff80ffb5ff1f3b]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'vmexeccore+0x2d09 [0xffff80ffb5ff5df9]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'vmexec+0xb0f [0xffff80ffb60023bf]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'vm
call0+0x36 [0xffff80ffb5ffa736]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'iteratemethod+0xa1 [0xffff80ffb5ffdb41]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'rb
iterate+0x167 [0xffff80ffb5ffd797]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'rbblockcall+0x30 [0xffff80ffb5ffdbc0]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'enumcollect+0x39 [0xffff80ffb5ec81a9]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'vm
callcfuncwithframe+0x348 [0xffff80ffb5ff0c88]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'vm
callmethod+0x39b [0xffff80ffb5ff1f3b]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'vm
execcore+0x2d09 [0xffff80ffb5ff5df9]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'vm
exec+0xb0f [0xffff80ffb60023bf]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'rbloadinternal+0x173 [0xffff80ffb5ed93f3]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'rbrequiresafe+0x1e5 [0xffff80ffb5ed9f95]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'vmcallcfuncwithframe+0x348 [0xffff80ffb5ff0c88]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'vmexeccore+0x2c7b [0xffff80ffb5ff5d6b]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'vmexec+0xb0f [0xffff80ffb60023bf]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'ruby
execinternal+0x95 [0xffff80ffb5ed52e5]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'ruby
execnode+0x1e [0xffff80ffb5ed53ee]
/opt/apache2/ruby-2.0.0/lib/libruby.so.2'ruby
run_node+0x24 [0xffff80ffb5ed53b4]
/opt/apache2/ruby-2.0.0/bin/ruby'main+0x4c [0x400f0c]
/opt/apache2/ruby-2.0.0/bin/ruby'0xd5b [0x400d5b]

-- Other runtime information -----------------------------------------------

  • Loaded script: /opt/apache2/ruby-2.0.0/bin/gem

  • Loaded features:

    0 enumerator.so
    1 /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/i386-solaris2.11/enc/encdb.so
    2 /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/i386-solaris2.11/enc/trans/transdb.so
    3 /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/i386-solaris2.11/rbconfig.rb
    4 /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/compatibility.rb
    5 /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/defaults.rb
    6 /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/deprecate.rb
    7 /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/errors.rb
    8 /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/version.rb
    9 /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/requirement.rb
    10 /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/platform.rb
    11 /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/specification.rb
    12 /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/exceptions.rb
    13 /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/coreext/kernelgem.rb
    14 /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/coreext/kernelrequire.rb
    15 /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems.rb
    16 /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/optparse.rb
    17 /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/userinteraction.rb
    18 /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/command.rb
    19 /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/command
    manager.rb
    20 /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/i386-solaris2.11/etc.so
    21 /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/configfile.rb
    22 /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/path
    support.rb
    23 /opt/apache2/ruby-2.0.0/lib/ruby/2.0.0/rubygems/dependency.rb

[NOTE]
You may have encountered a bug in the Ruby interpreter or extension libraries.
Bug reports are welcome.
For details: http://www.ruby-lang.org/bugreport.html

Abort (core dumped)

pstack core

core 'core' of 404: /opt/apache2/ruby-2.0.0/bin/ruby /opt/apache2/ruby-2.0.0/bin/gem insta
----------------- lwp# 1 / thread# 1 --------------------
ffff80ffbf54aaaa lwpkill () + a
ffff80ffbf4efeb9 raise () + 19
ffff80ffbf4c6632 abort () + ca
ffff80ffb5ed05c0 rbbugerrno ()
ffff80ffb5f8cd0e sigsegv () + 4e
ffff80ffbf5418b6 _sighndlr () + 6
ffff80ffbf53503a call
userhandler () + 2ce
ffff80ffbf53525b sigacthandler (b, 5cfeb0, 5cfb50) + db
--- called from signal handler with signal 11 (SIGSEGV) ---
ffff80ffb5f6f6b4 onigenc
getprevcharhead () + 24
ffff80ffb5f34255 ruby
yyparse () + 6f15
ffff80ffb5f36246 yycompile0 () + 156
ffff80ffb600791f rbsuppresstracing () + df
ffff80ffb5f36345 yycompile () + 35
ffff80ffb5fe85ac parsestring () + 2c
ffff80ffb5fe86ff rb
iseqcompilewithoption () + 11f
ffff80ffb5ffdf44 eval
stringwithcref () + 234
ffff80ffb5ffe421 rbfeval () + 111
ffff80ffb5ff0c88 vmcallcfuncwithframe () + 348
ffff80ffb5ff5d6b vmexeccore () + 2c7b
ffff80ffb60023bf vmexec () + b0f
ffff80ffb6000a9a invoke
blockfromc () + 49a
ffff80ffb5ffcf93 rbyield () + 73
ffff80ffb5e9d337 rb
aryeach () + 77
ffff80ffb5ff0c88 vm
callcfuncwithframe () + 348
ffff80ffb5ff5df9 vm
execcore () + 2d09
ffff80ffb60023bf vm
exec () + b0f
ffff80ffb6000a9a invokeblockfromc () + 49a
ffff80ffb5ffcf93 rb
yield () + 73
ffff80ffb5e9d337 rbaryeach () + 77
ffff80ffb5ff0c88 vmcallcfuncwithframe () + 348
ffff80ffb5ff1f3b vmcallmethod () + 39b
ffff80ffb5ff5df9 vmexeccore () + 2d09
ffff80ffb60023bf vmexec () + b0f
ffff80ffb5ffa736 vm
call0 () + 36
ffff80ffb5ffdb41 iteratemethod () + a1
ffff80ffb5ffd797 rb
iterate () + 167
ffff80ffb5ffdbc0 rbblockcall () + 30
ffff80ffb5ec81a9 enumcollect () + 39
ffff80ffb5ff0c88 vm
callcfuncwithframe () + 348
ffff80ffb5ff1f3b vm
callmethod () + 39b
ffff80ffb5ff5df9 vm
execcore () + 2d09
ffff80ffb60023bf vm
exec () + b0f
ffff80ffb5ed93f3 rbloadinternal () + 173
ffff80ffb5ed9f95 rbrequiresafe () + 1e5
ffff80ffb5ff0c88 vmcallcfuncwithframe () + 348
ffff80ffb5ff5d6b vmexeccore () + 2c7b
ffff80ffb60023bf vmexec () + b0f
ffff80ffb5ed52e5 ruby
execinternal () + 95
ffff80ffb5ed53ee ruby
execnode () + 1e
ffff80ffb5ed53b4 ruby
runnode () + 24
0000000000400f0c main () + 4c
0000000000400d5b ???????? ()
----------------- lwp# 2 / thread# 2 --------------------
ffff80ffbf54a66a _
pollsys () + a
ffff80ffbf4f1995 pselect () + 181
ffff80ffbf4f1e14 select () + 68
ffff80ffb600a3ec threadtimer () + ac
ffff80ffbf541545 _thrp
setup () + a5
ffff80ffbf5417f0 lwpstart ()

History

#1 Updated by Yui NARUSE about 1 year ago

  • Assignee set to Naohisa Goto

#2 Updated by John Groenveld about 1 year ago

I'm not able to reproduce the core with the latest ruby on github
ruby 2.1.0dev (2013-03-08 trunk 39630) [x86_64-solaris2.11]

John
groenveld@acm.org

#3 Updated by Naohisa Goto about 1 year ago

  • Status changed from Open to Feedback

On sparc Solaris10, by using Oracle SolarisStudio 12.3, I cannot reproduce this issue with ruby 2.0.0p86 (svn ruby20_0 r39852).

#4 Updated by Steve Klabnik 9 months ago

John, can you get a small reproduction of some kind to help ngoto? It's been five months.

#5 Updated by Naohisa Goto 4 months ago

  • Status changed from Feedback to Rejected

Closing because of lacking of reproduction.

Also available in: Atom PDF