Created
November 27, 2014 16:41
-
-
Save fxn/00842c5df8d8fe741775 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant@rails-docs-server:~$ rvm install 2.0.0-p598 --patch railsexpress -n railsexpress | |
Checking requirements for ubuntu. | |
Installing requirements for ubuntu. | |
Updating system...... | |
Installing required packages: libreadline6-dev, zlib1g-dev, libssl-dev, libyaml-dev, libsqlite3-dev, sqlite3, autoconf, libgdbm-dev, libncurses5-dev, automake, libtool, bison, pkg-config, libffi-dev.............. | |
Requirements installation successful. | |
Installing Ruby from source to: /home/vagrant/.rvm/rubies/ruby-2.0.0-p598-railsexpress, this may take a while depending on your cpu(s)... | |
ruby-2.0.0-p598-railsexpress - #downloading ruby-2.0.0-p598, this may take a while depending on your connection... | |
% Total % Received % Xferd Average Speed Time Time Time Current | |
Dload Upload Total Spent Left Speed | |
100 10.2M 100 10.2M 0 0 1414k 0 0:00:07 0:00:07 --:--:-- 2700k | |
ruby-2.0.0-p598-railsexpress - #extracting ruby-2.0.0-p598 to /home/vagrant/.rvm/src/ruby-2.0.0-p598-railsexpress.... | |
Patch 'https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.0.0/p598/railsexpress/01-zero-broken-tests.patch' not found. | |
Patch 'https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.0.0/p598/railsexpress/02-railsexpress-gc.patch' not found. | |
Patch 'https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.0.0/p598/railsexpress/03-display-more-detailed-stack-trace.patch' not found. | |
Patch 'https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.0.0/p598/railsexpress/04-show-full-backtrace-on-stack-overflow.patch' not found. | |
There has been an error applying the specified patches. Halting the installation. | |
vagrant@rails-docs-server:~$ curl https://raw.githubusercontent.com/skaes/rvm-patchsets/master/patches/ruby/2.0.0/p598/railsexpress/04-show-full-backtrace-on-stack-overflow.patch | |
diff --git a/eval.c b/eval.c | |
index ec563bc..5d1671d 100644 | |
--- a/eval.c | |
+++ b/eval.c | |
@@ -444,8 +444,7 @@ setup_exception(rb_thread_t *th, int tag, volatile VALUE mesg) | |
if (file) line = rb_sourceline(); | |
if (file && !NIL_P(mesg)) { | |
if (mesg == sysstack_error) { | |
- at = rb_enc_sprintf(rb_usascii_encoding(), "%s:%d", file, line); | |
- at = rb_ary_new3(1, at); | |
+ at = rb_make_backtrace(); | |
rb_iv_set(mesg, "bt", at); | |
} | |
else { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment