Colin J. Fuller cjfuller

View gist:9712968
1 2 3 4 5 6 7 8 9 10
sudo zypper in gcc gcc-c++
sudo zypper in curl
\curl -sSL https://get.rvm.io | bash -s stable --ruby=2.1.1
source /home/colin/.rvm/scripts/rvm
sudo zypper in libatlas3 libatlas3-devel
git clone https://github.com/SciRuby/nmatrix.git
cd nmatrix
bundle install
bundle exec rake compile
bundle exec rake spec
View gist:7310032
1 2 3 4 5 6 7 8 9 10
install -c tmp/x86_64-linux/nmatrix/2.0.0/nmatrix.so lib//nmatrix.so
valgrind --tool=memcheck --num-callers=15 --partial-loads-ok=yes --undef-value-errors=no ruby -S rspec -Ilib:ext spec
==12531== Memcheck, a memory error detector
==12531== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==12531== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==12531== Command: ruby -S rspec -Ilib:ext spec
==12531==
NMatrix {
creates a matrix with the new constructor OK (0.01s)
adequately requires information to access a single entry of a dense matrix OK (0.02s)
View volatile_test.c
1 2 3 4 5 6 7 8 9 10
#include <stdlib.h>
 
typedef unsigned long VALUE;
 
int main() {
VALUE x = 0;
volatile VALUE y = 1;
VALUE* a = malloc(sizeof(VALUE));
volatile VALUE* b = malloc(sizeof(VALUE));
*b = x;
View crashreport.txt
1 2 3 4 5 6 7 8 9 10
Rubinius Crash Report #rbxcrashreport
 
Error: signal SIGABRT
 
[[Backtrace]]
0 rbx 0x00000001004fbfb6 _ZN8rubiniusL12segv_handlerEi + 486
1 libsystem_c.dylib 0x00007fff8e61ecfa _sigtramp + 26
2 ??? 0x00007fff600c7110 0x0 + 140734804816144
3 rbx 0x0000000100c4e796 abort + 22
4 rbx 0x0000000100500075 _ZN8rubinius5abortEv + 53
Something went wrong with that request. Please try again.