Skip to content

Instantly share code, notes, and snippets.

View MSNexploder's full-sized avatar

Stefan Stüben MSNexploder

View GitHub Profile
diff --git a/vm/llvm/passes.cpp b/vm/llvm/passes.cpp
index 3f88cb1..9d10130 100644
--- a/vm/llvm/passes.cpp
+++ b/vm/llvm/passes.cpp
@@ -348,9 +348,15 @@ namespace {
}
virtual
+#if __clang_major__ == 2 && __clang_minor__ == 9
+ AliasAnalysis::AliasResult alias(const Location &locA, const Location &locB)
Rubinius Crash Report #rbxcrashreport
Error: signal SIGSEGV
[[Backtrace]]
0 rbx 0x000000010000c8d1 _ZN8rubinius12segv_handlerEi + 497
1 libSystem.B.dylib 0x00007fff836e466a _sigtramp + 26
2 ??? 0x00007fff5fbf11c0 0x0 + 140734799745472
3 rbx 0x00000001000a9af2 _ZN8rubinius10Primitives13string_unpackEPNS_2VMEPNS_9CallFrameEPNS_10ExecutableEPNS_6ModuleERNS_9ArgumentsE + 578
4 rbx 0x00000001000162ff _ZN8rubinius11InlineCache19empty_cache_privateEPNS_2VMEPS0_PNS_9CallFrameERNS_9ArgumentsE + 399
macbookpro:rubinius-test stefan$ ./bin/mspec spec/ruby/core/time/_dump_spec.rb
rubinius 2.0.0dev (1.8.7 6fad56ef yyyy-mm-dd JI) [x86_64-apple-darwin10.7.4]
---------------------------------------------
CRASH: A fatal error has occured.
Backtrace:
0 rbx 0x000000010000c8d1 _ZN8rubinius12segv_handlerEi + 497
1 libSystem.B.dylib 0x00007fff836e466a _sigtramp + 26
2 rbx 0x0000000100119fad _ZN8rubinius16BlockEnvironment19execute_interpreterEPNS_2VMEPNS_9CallFrameEPS0_RNS_9ArgumentsERNS_15BlockInvocationE + 973
bin/rbx -X19 -Xprofile -Xprofiler.graph -Xprofiler.full_report csv.rb
===== Thread 1 =====
Total running time: 149.57584935s
index % time self children called name
----------------------------------------------------------
[1] 100.0 0.00 149.54 1 Rubinius::Loader#script [1]
0.00 149.54 1 Rubinius::CodeLoader.load_script [2]
-------------------------------------------------------
0.00 149.54 1 Rubinius::Loader#script [1]
(1) erb 0.010000 0.000000 0.010000 ( 0.018089)
(1) erubis 0.030000 0.000000 0.030000 ( 0.022826)
(1) fast erubis 0.010000 0.000000 0.010000 ( 0.016941)
(1) temple erb 0.040000 0.000000 0.040000 ( 0.031773)
(1) slim pretty 0.030000 0.000000 0.030000 ( 0.037284)
(1) slim ugly 0.030000 0.000000 0.030000 ( 0.024610)
(1) haml pretty 0.120000 0.000000 0.120000 ( 0.120439)
(1) haml ugly 0.110000 0.000000 0.110000 ( 0.115456)
(1) slaml pretty 0.040000 0.000000 0.040000 ( 0.038365)
(1) slaml ugly 0.030000 0.000000 0.030000 ( 0.033274)
@MSNexploder
MSNexploder / gist:6301589
Created August 21, 2013 23:42
Just some quick thoughts...
class FoosController < ApplicationController
before_filter :foobar
class Bar
before_filter :find_bar
def new
...
end
@MSNexploder
MSNexploder / gist:11292428
Created April 25, 2014 14:56
NSStringRandomEncoding
NSStringEncoding NSStringRandomEncoding(void) {
const NSStringEncoding *encodings = [NSString availableStringEncodings];
NSStringEncoding currentEncoding = encodings[0];
NSUInteger count = 0;
while (currentEncoding != 0x0) {
count += 1;
currentEncoding = encodings[count];
}
return encodings[arc4random_uniform(count)];
}
@MSNexploder
MSNexploder / backtrace
Created June 23, 2014 20:24
warbler compile all exception
[Foo] rake war
rake aborted!
Java::JavaIo::IOException: Cannot run program "/bin/sh" (in directory "/Users/stefan/projects/Foo"): error=7, Argument list too long
java.lang.ProcessBuilder.start(java/lang/ProcessBuilder.java:1041)
java.lang.reflect.Method.invoke(java/lang/reflect/Method.java:606)
RUBY.`(file:/Users/stefan/.rubies/jruby-1.7.12/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:31)
RUBY.`(file:/Users/stefan/.rubies/jruby-1.7.12/lib/jruby.jar!/jruby/kernel/jruby/process_manager.rb:49)
RUBY.`(/Users/stefan/.gem/jruby/1.9.3/gems/activesupport-4.1.1/lib/active_support/core_ext/kernel/agnostics.rb:7)
RUBY.run_javac(/Users/stefan/.gem/jruby/1.9.3/bundler/gems/warbler-aeb67ef9bc58/lib/warbler/jar.rb:64)
RUBY.compile(/Users/stefan/.gem/jruby/1.9.3/bundler/gems/warbler-aeb67ef9bc58/lib/warbler/jar.rb:46)