From: Benedikt Eickhoff Date: 2010-04-13T13:44:11+09:00 Subject: [ruby-core:29491] [Bug #3138] Segmentation fault Issue #3138 has been updated by Benedikt Eickhoff. I'll do my best: here's where I am and what I do: cat /etc/issue Ubuntu 8.04.3 LTS \n \l installed some dependencies ... sudo apt-get install zlib1g-dev libssl-dev libreadline5-dev libxml2-dev libsqlite3-dev followed along this path, install ruby via rvm, setting ruby 1.9.1 as default ... http://railscasts.com/episodes/200-rails-3-beta-and-rvm gem list *** LOCAL GEMS *** abstract (1.0.0) actionmailer (3.0.0.beta2) actionpack (3.0.0.beta2) activemodel (3.0.0.beta2) activerecord (3.0.0.beta2) activeresource (3.0.0.beta2) activesupport (3.0.0.beta2, 2.3.5) arel (0.3.3) builder (2.1.2) bundler (0.9.19) erubis (2.6.5) i18n (0.3.6) mail (2.2.0, 2.1.5.3) memcache-client (1.8.2) mime-types (1.16) polyglot (0.3.1) rack (1.1.0) rack-mount (0.6.1) rack-test (0.5.3) rails (3.0.0.beta2) railties (3.0.0.beta2) rake (0.8.7) rdoc (2.5.3) rubygems-update (1.3.6) sqlite3-ruby (1.2.5) text-format (1.0.0) text-hyphen (1.0.0) thor (0.13.4) treetop (1.4.5) gem env RubyGems Environment: - RUBYGEMS VERSION: 1.3.6 - RUBY VERSION: 1.9.1 (2010-01-10 patchlevel 378) [i686-linux] - INSTALLATION DIRECTORY: /usr/local/rvm/gems/ruby-1.9.1-p378 - RUBY EXECUTABLE: /usr/local/rvm/rubies/ruby-1.9.1-p378/bin/ruby - EXECUTABLE DIRECTORY: /usr/local/rvm/gems/ruby-1.9.1-p378/bin - RUBYGEMS PLATFORMS: - ruby - x86-linux - GEM PATHS: - /usr/local/rvm/gems/ruby-1.9.1-p378 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http://rubygems.org/ THEN getting problems with gem executable dir; gems can't be executed THEN trying to override rvm variables by directly setting export paths to .bashrc like this: # ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples # If not running interactively, don't do anything # [ -z "$PS1" ] # don't put duplicate lines in the history. See bash(1) for more options #export HISTCONTROL=ignoredups # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize # make less more friendly for non-text input files, see lesspipe(1) [ -x /usr/bin/lesspipe ] && eval "$(lesspipe)" # set variable identifying the chroot you work in (used in the prompt below) if [ -z "$debian_chroot" -a -r /etc/debian_chroot ]; then debian_chroot=$(cat /etc/debian_chroot) fi # set a fancy prompt (non-color, unless we know we "want" color) case "$TERM" in xterm-color) PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' ;; *) PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' ;; esac # Comment in the above and uncomment this below for a color prompt #PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' # If this is an xterm set the title to user@host:dir case "$TERM" in xterm*|rxvt*) PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"' ;; *) ;; esac # Alias definitions. # You may want to put all your additions into a separate file like # ~/.bash_aliases, instead of adding them here directly. # See /usr/share/doc/bash-doc/examples in the bash-doc package. #if [ -f ~/.bash_aliases ]; then # . ~/.bash_aliases #fi # enable color support of ls and also add handy aliases if [ "$TERM" != "dumb" ]; then eval "`dircolors -b`" alias ls='ls --color=auto' #alias dir='ls --color=auto --format=vertical' #alias vdir='ls --color=auto --format=long' fi # some more ls aliases #alias ll='ls -l' #alias la='ls -A' #alias l='ls -CF' # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc and /etc/profile # sources /etc/bash.bashrc). #if [ -f /etc/bash_completion ]; then # . /etc/bash_completion #fi alias l='ls -alFh' alias ll='ls -lAh' export EDITOR=vi export LANG=de_DE@euro export GEM_HOME=/usr/local/rvm/gems/ruby-1.9.1-p378 export PATH=$PATH:/usr/local/rvm/gems/ruby-1.9.1-p378/bin THEN created a test rails app rails test_01 THEN trying to run rails server on port 3000 ... THEN rake db:migrate (in /root/test_01) :~/test_01# rails server => Booting WEBrick => Rails 3.0.0.beta2 application starting in development on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server [2010-04-13 06:39:46] INFO WEBrick 1.3.1 [2010-04-13 06:39:46] INFO ruby 1.9.1 (2010-01-10) [i686-linux] [2010-04-13 06:39:46] INFO WEBrick::HTTPServer#start: pid=11384 port=3000 /usr/local/rvm/gems/ruby-1.9.1-p378/gems/activesupport-3.0.0.beta2/lib/active_support/core_ext/module/remove_method.rb:3: [BUG] Segmentation fault ruby 1.9.1p378 (2010-01-10 revision 26273) [i686-linux] -- control frame ---------- c:0090 p:---- s:0437 b:0437 l:000436 d:000436 CFUNC :remove_method c:0089 p:0013 s:0433 b:0433 l:000432 d:000432 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/activesupport-3.0.0.beta2/lib/active_support/core_ext/module/remove_method.rb:3 c:0088 p:0018 s:0429 b:0429 l:000610 d:000428 LAMBDA /usr/local/rvm/gems/ruby-1.9.1-p378/gems/activesupport-3.0.0.beta2/lib/active_support/core_ext/class/attribute.rb:49 c:0087 p:---- s:0426 b:0426 l:000425 d:000425 FINISH c:0086 p:0095 s:0424 b:0423 l:000412 d:000422 BLOCK /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/abstract_controller/rendering.rb:58 c:0085 p:---- s:0421 b:0421 l:000420 d:000420 FINISH c:0084 p:---- s:0419 b:0419 l:000418 d:000418 CFUNC :initialize c:0083 p:---- s:0417 b:0417 l:000416 d:000416 CFUNC :new c:0082 p:0046 s:0413 b:0413 l:000412 d:000412 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/abstract_controller/rendering.rb:49 c:0081 p:0023 s:0409 b:0409 l:000408 d:000408 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/abstract_controller/rendering.rb:68 c:0080 p:0011 s:0406 b:0406 l:000405 d:000405 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/abstract_controller/rendering.rb:86 c:0079 p:0011 s:0403 b:0403 l:000402 d:000402 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/abstract_controller/rendering.rb:115 c:0078 p:0029 s:0399 b:0399 l:000398 d:000398 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/abstract_controller/rendering.rb:101 c:0077 p:0025 s:0395 b:0395 l:000394 d:000394 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/action_controller/metal/renderers.rb:47 c:0076 p:0042 s:0391 b:0391 l:000390 d:000390 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/action_controller/metal/compatibility.rb:57 c:0075 p:0042 s:0387 b:0385 l:000384 d:000384 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/abstract_controller/rendering.rb:94 c:0074 p:0043 s:0379 b:0379 l:000378 d:000378 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/action_controller/metal/rendering.rb:17 c:0073 p:0010 s:0375 b:0375 l:000fcc d:000374 BLOCK /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/action_controller/metal/instrumentation.rb:39 c:0072 p:0005 s:0373 b:0373 l:0005bc d:000372 BLOCK /usr/local/rvm/gems/ruby-1.9.1-p378/gems/activesupport-3.0.0.beta2/lib/active_support/core_ext/benchmark.rb:17 c:0071 p:0024 s:0371 b:0371 l:000370 d:000370 METHOD /usr/local/rvm/rubies/ruby-1.9.1-p378/lib/ruby/1.9.1/benchmark.rb:309 c:0070 p:0013 s:0365 b:0364 l:0005bc d:0005bc METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/activesupport-3.0.0.beta2/lib/active_support/core_ext/benchmark.rb:17 c:0069 p:0015 s:0361 b:0361 l:000fcc d:000f1c BLOCK /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/action_controller/metal/instrumentation.rb:39 c:0068 p:0007 s:0359 b:0359 l:000358 d:000358 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/action_controller/metal/instrumentation.rb:77 c:0067 p:0054 s:0356 b:0356 l:000355 d:000355 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/activerecord-3.0.0.beta2/lib/active_record/railties/controller_runtime.rb:15 c:0066 p:0017 s:0350 b:0349 l:000fcc d:000fcc METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/action_controller/metal/instrumentation.rb:38 c:0065 p:0050 s:0344 b:0344 l:000343 d:000343 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/railties-3.0.0.beta2/lib/rails/info_controller.rb:4 c:0064 p:---- s:0341 b:0341 l:000340 d:000340 FINISH c:0063 p:---- s:0339 b:0339 l:000338 d:000338 CFUNC :send c:0062 p:0012 s:0335 b:0335 l:000334 d:000334 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/action_controller/metal/implicit_render.rb:4 c:0061 p:0015 s:0330 b:0330 l:000329 d:000329 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/abstract_controller/base.rb:153 c:0060 p:0041 s:0325 b:0325 l:000324 d:000324 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/action_controller/metal/rendering.rb:11 c:0059 p:0010 s:0321 b:0321 l:001040 d:000320 BLOCK /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/abstract_controller/callbacks.rb:18 c:0058 p:0033 s:0319 b:0319 l:000318 d:000318 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/activesupport-3.0.0.beta2/lib/active_support/callbacks.rb:428 c:0057 p:0168 s:0314 b:0314 l:000313 d:000313 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/activesupport-3.0.0.beta2/lib/active_support/callbacks.rb:423 c:0056 p:0024 s:0306 b:0306 l:000305 d:000305 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/activesupport-3.0.0.beta2/lib/active_support/callbacks.rb:88 c:0055 p:0015 s:0300 b:0300 l:001040 d:001040 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/abstract_controller/callbacks.rb:17 c:0054 p:0012 s:0296 b:0296 l:002338 d:000295 BLOCK /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/action_controller/metal/instrumentation.rb:29 c:0053 p:0039 s:0292 b:0292 l:000291 d:000291 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/activesupport-3.0.0.beta2/lib/active_support/notifications/instrumenter.rb:18 c:0052 p:0023 s:0285 b:0285 l:000284 d:000284 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/activesupport-3.0.0.beta2/lib/active_support/notifications.rb:53 c:0051 p:0152 s:0280 b:0280 l:002338 d:002338 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/action_controller/metal/instrumentation.rb:28 c:0050 p:0012 s:0274 b:0274 l:000273 d:000273 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/action_controller/metal/rescue.rb:8 c:0049 p:0077 s:0269 b:0269 l:000268 d:000268 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/abstract_controller/base.rb:123 c:0048 p:0084 s:0263 b:0263 l:000262 d:000262 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/abstract_controller/rendering.rb:40 c:0047 p:0045 s:0258 b:0258 l:000257 d:000257 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/action_controller/metal.rb:84 c:0046 p:0046 s:0253 b:0253 l:000252 d:000252 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/action_controller/metal/rack_delegation.rb:14 c:0045 p:0030 s:0248 b:0248 l:002604 d:000247 BLOCK /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/action_controller/metal.rb:124 c:0044 p:---- s:0245 b:0245 l:000244 d:000244 FINISH c:0043 p:---- s:0243 b:0243 l:000242 d:000242 CFUNC :call c:0042 p:0096 s:0239 b:0239 l:000238 d:000238 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/action_dispatch/routing/route_set.rb:29 c:0041 p:0095 s:0233 b:0233 l:000207 d:000232 BLOCK /usr/local/rvm/gems/ruby-1.9.1-p378/gems/rack-mount-0.6.1/lib/rack/mount/recognition/route_set.rb:75 c:0040 p:0014 s:0227 b:0227 l:000213 d:000226 BLOCK /usr/local/rvm/gems/ruby-1.9.1-p378/gems/rack-mount-0.6.1/lib/rack/mount/recognition/code_generation.rb:99 c:0039 p:0099 s:0222 b:0222 l:000221 d:000221 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/rack-mount-0.6.1/lib/rack/mount/recognition/code_generation.rb:76 c:0038 p:0067 s:0214 b:0214 l:000213 d:000213 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/rack-mount-0.6.1/lib/rack/mount/recognition/code_generation.rb:98 c:0037 p:0089 s:0208 b:0208 l:000207 d:000207 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/rack-mount-0.6.1/lib/rack/mount/recognition/route_set.rb:66 c:0036 p:0024 s:0202 b:0202 l:000201 d:000201 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/action_dispatch/routing/route_set.rb:454 c:0035 p:0013 s:0198 b:0198 l:000a88 d:000197 BLOCK /usr/local/rvm/gems/ruby-1.9.1-p378/gems/activerecord-3.0.0.beta2/lib/active_record/query_cache.rb:31 c:0034 p:0038 s:0196 b:0196 l:000195 d:000195 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/activerecord-3.0.0.beta2/lib/active_record/connection_adapters/abstract/query_cache.rb c:0033 p:0051 s:0192 b:0192 l:000191 d:000191 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/activerecord-3.0.0.beta2/lib/active_record/query_cache.rb:11 c:0032 p:0019 s:0188 b:0188 l:000a88 d:000a88 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/activerecord-3.0.0.beta2/lib/active_record/query_cache.rb:30 c:0031 p:0014 s:0184 b:0184 l:000183 d:000183 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/activerecord-3.0.0.beta2/lib/active_record/connection_adapters/abstract/connection_poo c:0030 p:0090 s:0180 b:0180 l:000179 d:000179 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/action_dispatch/middleware/head.rb:14 c:0029 p:0150 s:0173 b:0173 l:000172 d:000172 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/rack-1.1.0/lib/rack/methodoverride.rb:24 c:0028 p:0045 s:0167 b:0167 l:000166 d:000166 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/action_dispatch/middleware/params_parser.rb:19 c:0027 p:0051 s:0162 b:0162 l:000161 d:000161 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/action_dispatch/middleware/flash.rb:167 c:0026 p:0086 s:0156 b:0156 l:000155 d:000155 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/action_dispatch/middleware/session/cookie_store.rb:107 c:0025 p:0014 s:0146 b:0146 l:000145 d:000145 METHOD /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/action_dispatch/middleware/cookies.rb:206 c:0024 p:0029 s:0137 b:0137 l:001390 d:000136 BLOCK /usr/local/rvm/gems/ruby-1.9.1-p378/gems/actionpack-3.0.0.beta2/lib/action_dispatch/middleware/callbacks.rb:46 Segmentation fault :~/test_01# .bene ---------------------------------------- http://redmine.ruby-lang.org/issues/show/3138 ---------------------------------------- http://redmine.ruby-lang.org