Skip to content

Instantly share code, notes, and snippets.

==9796== Memcheck, a memory error detector
==9796== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==9796== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==9796== Command: ./julia-debug-readline -J sys0.ji stage1.jl
==9796==
==9796== Conditional jump or move depends on uninitialised value(s)
==9796== at 0xBF817D: u8_isvalid (utf8.c:643)
==9796== by 0x46E9E8: jl_array_to_string (array.c:163)
==9796== by 0x46BBF6: jl_takebuf_string (sys.c:127)
==9796== by 0x4064A01: ???
Thread 2 (Thread 0x7f1c558c5700 (LWP 11984)):
#0 pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
No locals.
#1 0x000000000046bf96 in run_io_thr (arg=0x0) at sys.c:245
buf = 0x7f1c635a84e8 ""
r = 0x18
sz = 139759671072512
n = 0
nw = 139759671074232
@Keno
Keno / arch.patch
Created May 28, 2012 17:30
Julia LLVM Python arch patch
diff --git deps/Makefile deps/Makefile
index 2c75fe6..5342c3a 100644
--- deps/Makefile
+++ deps/Makefile
@@ -142,11 +142,20 @@ llvm-$(LLVM_VER)/configure: $(LLVM_TAR)
tar -C llvm-$(LLVM_VER) --strip-components 1 -xf $<
touch $@
-$(LLVM_OBJ_SOURCE): llvm-$(LLVM_VER)/configure
+## LLVM needs python 2.x, but doesn't check for it, so we have to use an ugly workaround to make it compile
/* uv_spawn() options */
typedef enum {
UV_IGNORE = 0x00,
UV_CREATE_PIPE = 0x01,
UV_INHERIT_FD = 0x02,
UV_INHERIT_STREAM = 0x04,
UV_DUAL_PIPE = 0x08,
/* When UV_CREATE_PIPE is specified, UV_READABLE_PIPE and UV_WRITABLE_PIPE
* determine the direction of flow, from the child process' perspective. Both
C:\src\julia\deps\libuv\Debug>.\run-tests.exe
[% 0|+ 0|- 0]: platform_output
Output from process `platform_output`:
uv_get_process_title: C:\Windows\system32\cmd.exe - .\run-tests.exe
uv_resident_set_memory: 4014080
uv_uptime: 108920.281265
uv_cpu_info:
model: Intel(R) Core(TM) i7-2760QM CPU @ 2.40GHz
speed: 2394
times.sys: 8324416
keno@kmf-vh01:~/julia-ci$ vagrant up jenkins
[jenkins] Importing base box 'julia-ubuntu-11.10-server-amd64'...
/home/keno/.rvm/gems/ruby-1.9.2-p320/gems/vagrant-1.1.0.dev/lib/vagrant/util/subprocess.rb:133:in `execute': undefined method `empty?' for nil:NilClass (NoMethodError)
from /home/keno/.rvm/gems/ruby-1.9.2-p320/gems/vagrant-1.1.0.dev/lib/vagrant/util/subprocess.rb:20:in `execute'
from /home/keno/.rvm/gems/ruby-1.9.2-p320/gems/vagrant-1.1.0.dev/lib/vagrant/driver/virtualbox_base.rb:321:in `block in raw'
from /home/keno/.rvm/gems/ruby-1.9.2-p320/gems/vagrant-1.1.0.dev/lib/vagrant/util/busy.rb:19:in `busy'
from /home/keno/.rvm/gems/ruby-1.9.2-p320/gems/vagrant-1.1.0.dev/lib/vagrant/driver/virtualbox_base.rb:320:in `raw'
from /home/keno/.rvm/gems/ruby-1.9.2-p320/gems/vagrant-1.1.0.dev/lib/vagrant/driver/virtualbox_base.rb:284:in `block in execute'
from /home/keno/.rvm/gems/ruby-1.9.2-p320/gems/vagrant-1.1.0.dev/lib/vagrant/util/retryable.rb:14:in `retryable'
from /home/keno/.rvm/gems/ruby-1.9.2-p32
include_recipe "mingw::default"
execute "install msys" do
command "mingw-get install msys"
not_if { File.exists?("#{node[:mingw][:dir]}\\msys\\1.0\\bin\\make.exe") }
end
execute "install wget" do
command "mingw-get install msys-wget"
not_if { File.exists?("#{node[:mingw][:dir]}\\msys\\1.0\\bin\\wget.exe") }
Started by upstream project "libuv" build number 3
Building remotely on worker-ubuntu-11.10.dev in workspace /home/jenkins/workspace/libuv/label/worker-ubuntu-11.10.dev
Checkout:worker-ubuntu-11.10.dev / /home/jenkins/workspace/libuv/label/worker-ubuntu-11.10.dev - hudson.remoting.Channel@a0f0c8d:worker-ubuntu-11.10.dev
Using strategy: Default
Last Built Revision: Revision 732486be1d0561df4d4380237b93e400838b278f (origin/upipes)
Fetching changes from 1 remote Git repository
Fetching upstream changes from https://github.com/JuliaLang/libuv
Commencing build of Revision 732486be1d0561df4d4380237b93e400838b278f (origin/upipes)
Checking out Revision 732486be1d0561df4d4380237b93e400838b278f (origin/upipes)
[worker-ubuntu-11.10.dev] $ /bin/sh -xe /tmp/hudson357729392813143276.sh
julia> Base.disassemble(sum,typeof((m,)))
define %jl_value_t* @sum705(%jl_value_t*, %jl_value_t**, i32) {
top:
%3 = alloca [2 x %jl_value_t*], align 8, !dbg !6228
%4 = alloca %jl_gcframe_t, align 8, !dbg !6228
%.sub = getelementptr inbounds [2 x %jl_value_t*]* %3, i64 0, i64 0
%5 = bitcast [2 x %jl_value_t*]* %3 to %jl_value_t***, !dbg !6228
%6 = getelementptr %jl_gcframe_t* %4, i64 0, i32 0, !dbg !6228
store %jl_value_t*** %5, %jl_value_t**** %6, align 8, !dbg !6228
@Keno
Keno / streams
Created December 8, 2012 03:58
Howto and overview of new I/O system:
Using spawn and run
-------------------
Commands are specified with backticks as before:
julia> `echo test`
`echo test`