Skip to content

Instantly share code, notes, and snippets.

@garrison
Created June 3, 2015 01:30
Show Gist options
  • Save garrison/5a1a3cd1d481c8f0d48f to your computer and use it in GitHub Desktop.
Save garrison/5a1a3cd1d481c8f0d48f to your computer and use it in GitHub Desktop.
$ valgrind -q --smc-check=all --suppressions=$PWD/contrib/valgrind-julia.supp --trace-children=yes make
CC src/jltypes.o
CC src/gf.o
FLISP src/julia_flisp.boot
FLISP src/julia_flisp.boot.inc
CC src/ast.o
CC src/builtins.o
CC src/module.o
CC src/codegen.o
CC src/disasm.o
CC src/debuginfo.o
CC src/interpreter.o
CC src/alloc.o
CC src/dlload.o
CC src/sys.o
CC src/init.o
CC src/task.o
CC src/array.o
CC src/dump.o
dump.c: In function ‘jl_save_system_image_to_stream’:
dump.c:1469:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
write_int32(f, (int)reinit_list.items[i]);
^
dump.c:1470:24: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
write_int32(f, (int)reinit_list.items[i+1]);
^
CC src/toplevel.o
CC src/jl_uv.o
CC src/jlapi.o
CC src/profile.o
CC src/llvm-simdloop.o
CC src/simplevector.o
CC src/gc.o
gc.c: In function ‘gc_mark_module’:
gc.c:1547:61: warning: comparison of distinct pointer types lacks a cast
verify_parent1("module", m, &vb, "binding_buff");
^
gc.c:1550:71: warning: comparison of distinct pointer types lacks a cast
verify_parent2("module", m, &b->value, "binding(%s)", b->name->name);
^
gc.c:1566:72: warning: comparison of distinct pointer types lacks a cast
verify_parent1("module", m, &m->constant_table, "constant_table");
^
gc.c: In function ‘clear_mark’:
gc.c:1955:13: warning: unused variable ‘pool’ [-Wunused-variable]
pool_t* pool;
^
gc.c:1954:12: warning: unused variable ‘i’ [-Wunused-variable]
size_t i;
^
LINK usr/lib/libjulia.so
CC ui/repl.o
LINK usr/bin/julia
PERL base/pcre_h.jl
PERL base/errno_h.jl
PERL base/build_h.jl.phony
PERL base/fenv_constants.jl
PERL base/file_constants.jl
PERL base/uv_constants.jl
PERL base/version_git.jl.phony
JULIA usr/lib/julia/inference0.o
essentials.jl
reflection.jl
build_h.jl
options.jl
promotion.jl
tuple.jl
range.jl
expr.jl
error.jl
bool.jl
number.jl
int.jl
operators.jl
pointer.jl
abstractarray.jl
subarray.jl
array.jl
subarray2.jl
hashing.jl
nofloat_hashing.jl
functors.jl
reduce.jl
intset.jl
dict.jl
iterator.jl
inference.jl
LINK usr/lib/julia/inference0.so
JULIA usr/lib/julia/inference.o
essentials.jl
reflection.jl
build_h.jl
options.jl
promotion.jl
tuple.jl
range.jl
expr.jl
error.jl
bool.jl
number.jl
int.jl
operators.jl
pointer.jl
abstractarray.jl
subarray.jl
array.jl
subarray2.jl
hashing.jl
nofloat_hashing.jl
functors.jl
reduce.jl
intset.jl
dict.jl
iterator.jl
inference.jl
LINK usr/lib/julia/inference.so
JULIA usr/lib/julia/sys.o
exports.jl
essentials.jl
base.jl
reflection.jl
build_h.jl
version_git.jl
c.jl
options.jl
promotion.jl
tuple.jl
range.jl
expr.jl
error.jl
bool.jl
number.jl
int.jl
operators.jl
pointer.jl
refpointer.jl
abstractarray.jl
subarray.jl
array.jl
subarray2.jl
hashing.jl
rounding.jl
float.jl
complex.jl
rational.jl
simdloop.jl
functors.jl
reduce.jl
bitarray.jl
intset.jl
dict.jl
set.jl
iterator.jl
osutils.jl
char.jl
ascii.jl
utf8.jl
utf16.jl
utf32.jl
iobuffer.jl
string.jl
utf8proc.jl
regex.jl
pcre.jl
base64.jl
io.jl
iostream.jl
libc.jl
libdl.jl
env.jl
path.jl
intfuncs.jl
nullable.jl
task.jl
lock.jl
show.jl
stream.jl
uv_constants.jl
socket.jl
stat.jl
fs.jl
process.jl
multimedia.jl
grisu.jl
file.jl
methodshow.jl
floatfuncs.jl
math.jl
float16.jl
cartesian.jl
multidimensional.jl
primes.jl
reducedim.jl
ordering.jl
collections.jl
sort.jl
version.jl
gmp.jl
mpfr.jl
combinatorics.jl
hashing2.jl
dSFMT.jl
random.jl
printf.jl
meta.jl
Enums.jl
serialize.jl
multi.jl
managers.jl
loading.jl
poll.jl
mmap.jl
sharedarray.jl
datafmt.jl
deepcopy.jl
interactiveutil.jl
replutil.jl
test.jl
i18n.jl
help.jl
Terminals.jl
LineEdit.jl
REPLCompletions.jl
REPL.jl
client.jl
markdown/Markdown.jl
docs.jl
util.jl
linalg.jl
broadcast.jl
statistics.jl
sparse.jl
fftw.jl
dsp.jl
sysinfo.jl
constants.jl
quadgk.jl
fastmath.jl
pkg.jl
profile.jl
Dates.jl
deprecated.jl
basedocs.jl
precompile.jl
==24070== Invalid read of size 1
==24070== at 0x4C2D9C0: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:915)
==24070== by 0x4F9EC2B: ios_write (ios.c:403)
==24070== by 0x4F6ECBD: jl_serialize_value_ (dump.c:647)
==24070== by 0x4F6E871: jl_serialize_value_ (dump.c:791)
==24070== by 0x4F6E9B3: jl_serialize_value_ (dump.c:651)
==24070== by 0x4F6F516: jl_serialize_module (dump.c:518)
==24070== by 0x4F6F516: jl_serialize_value_ (dump.c:740)
==24070== by 0x4F6F404: jl_serialize_module (dump.c:501)
==24070== by 0x4F6F404: jl_serialize_value_ (dump.c:740)
==24070== by 0x4F6F18C: jl_serialize_value_ (dump.c:730)
==24070== by 0x4F6F02B: jl_serialize_value_ (dump.c:688)
==24070== by 0x4F6E871: jl_serialize_value_ (dump.c:791)
==24070== by 0x4F6E871: jl_serialize_value_ (dump.c:791)
==24070== by 0x4F6E871: jl_serialize_value_ (dump.c:791)
==24070== Address 0xad0b710 is 80 bytes inside a block of size 112 free'd
==24070== at 0x4C29E90: free (vg_replace_malloc.c:473)
==24070== by 0x32DB4C17: ???
==24070== by 0x32DB4BA5: ???
==24070== by 0x4F0DCFA: jl_apply (julia.h:1299)
==24070== by 0x4F0DCFA: jl_apply_generic (gf.c:1625)
==24070== by 0x32DB49CA: ???
==24070== by 0x4F7A01E: jl_apply (julia.h:1299)
==24070== by 0x4F7A01E: run_finalizer (gc.c:119)
==24070== by 0x4F7E4CB: run_finalizers (gc.c:157)
==24070== by 0x4F7E4CB: jl_gc_run_all_finalizers (gc.c:178)
==24070== by 0x4F661CC: jl_atexit_hook (init.c:561)
==24070== by 0x401645: main (repl.c:529)
==24070==
==24070== Invalid read of size 1
==24070== at 0x4C2D9CE: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:915)
==24070== by 0x4F9EC2B: ios_write (ios.c:403)
==24070== by 0x4F6ECBD: jl_serialize_value_ (dump.c:647)
==24070== by 0x4F6E871: jl_serialize_value_ (dump.c:791)
==24070== by 0x4F6E9B3: jl_serialize_value_ (dump.c:651)
==24070== by 0x4F6F516: jl_serialize_module (dump.c:518)
==24070== by 0x4F6F516: jl_serialize_value_ (dump.c:740)
==24070== by 0x4F6F404: jl_serialize_module (dump.c:501)
==24070== by 0x4F6F404: jl_serialize_value_ (dump.c:740)
==24070== by 0x4F6F18C: jl_serialize_value_ (dump.c:730)
==24070== by 0x4F6F02B: jl_serialize_value_ (dump.c:688)
==24070== by 0x4F6E871: jl_serialize_value_ (dump.c:791)
==24070== by 0x4F6E871: jl_serialize_value_ (dump.c:791)
==24070== by 0x4F6E871: jl_serialize_value_ (dump.c:791)
==24070== Address 0xad0b712 is 82 bytes inside a block of size 112 free'd
==24070== at 0x4C29E90: free (vg_replace_malloc.c:473)
==24070== by 0x32DB4C17: ???
==24070== by 0x32DB4BA5: ???
==24070== by 0x4F0DCFA: jl_apply (julia.h:1299)
==24070== by 0x4F0DCFA: jl_apply_generic (gf.c:1625)
==24070== by 0x32DB49CA: ???
==24070== by 0x4F7A01E: jl_apply (julia.h:1299)
==24070== by 0x4F7A01E: run_finalizer (gc.c:119)
==24070== by 0x4F7E4CB: run_finalizers (gc.c:157)
==24070== by 0x4F7E4CB: jl_gc_run_all_finalizers (gc.c:178)
==24070== by 0x4F661CC: jl_atexit_hook (init.c:561)
==24070== by 0x401645: main (repl.c:529)
==24070==
==24070== Invalid read of size 2
==24070== at 0x4C2D988: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:915)
==24070== by 0x4F9EC2B: ios_write (ios.c:403)
==24070== by 0x4F6ECBD: jl_serialize_value_ (dump.c:647)
==24070== by 0x4F6E871: jl_serialize_value_ (dump.c:791)
==24070== by 0x4F6F3EA: jl_serialize_module (dump.c:499)
==24070== by 0x4F6F3EA: jl_serialize_value_ (dump.c:740)
==24070== by 0x4F6F3EA: jl_serialize_module (dump.c:499)
==24070== by 0x4F6F3EA: jl_serialize_value_ (dump.c:740)
==24070== by 0x4F6F387: jl_serialize_module (dump.c:489)
==24070== by 0x4F6F387: jl_serialize_value_ (dump.c:740)
==24070== by 0x4F6F387: jl_serialize_module (dump.c:489)
==24070== by 0x4F6F387: jl_serialize_value_ (dump.c:740)
==24070== by 0x4F6E871: jl_serialize_value_ (dump.c:791)
==24070== by 0x4F6EFFC: jl_serialize_datatype (dump.c:471)
==24070== by 0x4F6EFFC: jl_serialize_value_ (dump.c:676)
==24070== by 0x4F6EDF0: jl_serialize_value_ (dump.c:616)
==24070== by 0x4F6F6AC: jl_serialize_datatype (dump.c:467)
==24070== by 0x4F6F6AC: jl_serialize_value_ (dump.c:676)
==24070== Address 0x15163b40 is 80 bytes inside a block of size 184 free'd
==24070== at 0x4C29E90: free (vg_replace_malloc.c:473)
==24070== by 0x32DB4C17: ???
==24070== by 0x32DB4BA5: ???
==24070== by 0x4F0DCFA: jl_apply (julia.h:1299)
==24070== by 0x4F0DCFA: jl_apply_generic (gf.c:1625)
==24070== by 0x32DB49CA: ???
==24070== by 0x4F7A01E: jl_apply (julia.h:1299)
==24070== by 0x4F7A01E: run_finalizer (gc.c:119)
==24070== by 0x4F7E4CB: run_finalizers (gc.c:157)
==24070== by 0x4F7E4CB: jl_gc_run_all_finalizers (gc.c:178)
==24070== by 0x4F661CC: jl_atexit_hook (init.c:561)
==24070== by 0x401645: main (repl.c:529)
==24070==
==24070== Invalid read of size 2
==24070== at 0x4C2D996: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:915)
==24070== by 0x4F9EC2B: ios_write (ios.c:403)
==24070== by 0x4F6ECBD: jl_serialize_value_ (dump.c:647)
==24070== by 0x4F6E871: jl_serialize_value_ (dump.c:791)
==24070== by 0x4F6F3EA: jl_serialize_module (dump.c:499)
==24070== by 0x4F6F3EA: jl_serialize_value_ (dump.c:740)
==24070== by 0x4F6F3EA: jl_serialize_module (dump.c:499)
==24070== by 0x4F6F3EA: jl_serialize_value_ (dump.c:740)
==24070== by 0x4F6F387: jl_serialize_module (dump.c:489)
==24070== by 0x4F6F387: jl_serialize_value_ (dump.c:740)
==24070== by 0x4F6F387: jl_serialize_module (dump.c:489)
==24070== by 0x4F6F387: jl_serialize_value_ (dump.c:740)
==24070== by 0x4F6E871: jl_serialize_value_ (dump.c:791)
==24070== by 0x4F6EFFC: jl_serialize_datatype (dump.c:471)
==24070== by 0x4F6EFFC: jl_serialize_value_ (dump.c:676)
==24070== by 0x4F6EDF0: jl_serialize_value_ (dump.c:616)
==24070== by 0x4F6F6AC: jl_serialize_datatype (dump.c:467)
==24070== by 0x4F6F6AC: jl_serialize_value_ (dump.c:676)
==24070== Address 0x15163b44 is 84 bytes inside a block of size 184 free'd
==24070== at 0x4C29E90: free (vg_replace_malloc.c:473)
==24070== by 0x32DB4C17: ???
==24070== by 0x32DB4BA5: ???
==24070== by 0x4F0DCFA: jl_apply (julia.h:1299)
==24070== by 0x4F0DCFA: jl_apply_generic (gf.c:1625)
==24070== by 0x32DB49CA: ???
==24070== by 0x4F7A01E: jl_apply (julia.h:1299)
==24070== by 0x4F7A01E: run_finalizer (gc.c:119)
==24070== by 0x4F7E4CB: run_finalizers (gc.c:157)
==24070== by 0x4F7E4CB: jl_gc_run_all_finalizers (gc.c:178)
==24070== by 0x4F661CC: jl_atexit_hook (init.c:561)
==24070== by 0x401645: main (repl.c:529)
==24070==
==24070== Invalid read of size 8
==24070== at 0x4C2D940: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:915)
==24070== by 0x4F9EC2B: ios_write (ios.c:403)
==24070== by 0x4F6ECBD: jl_serialize_value_ (dump.c:647)
==24070== by 0x4F6E871: jl_serialize_value_ (dump.c:791)
==24070== by 0x4F6E9B3: jl_serialize_value_ (dump.c:651)
==24070== by 0x4F6F516: jl_serialize_module (dump.c:518)
==24070== by 0x4F6F516: jl_serialize_value_ (dump.c:740)
==24070== by 0x4F6F4FE: jl_serialize_module (dump.c:515)
==24070== by 0x4F6F4FE: jl_serialize_value_ (dump.c:740)
==24070== by 0x4F6E871: jl_serialize_value_ (dump.c:791)
==24070== by 0x4F6EFFC: jl_serialize_datatype (dump.c:471)
==24070== by 0x4F6EFFC: jl_serialize_value_ (dump.c:676)
==24070== by 0x4F6EDF0: jl_serialize_value_ (dump.c:616)
==24070== by 0x4F6F6AC: jl_serialize_datatype (dump.c:467)
==24070== by 0x4F6F6AC: jl_serialize_value_ (dump.c:676)
==24070== by 0x4F6EDF0: jl_serialize_value_ (dump.c:616)
==24070== Address 0x11739a80 is 80 bytes inside a block of size 112 free'd
==24070== at 0x4C29E90: free (vg_replace_malloc.c:473)
==24070== by 0x32DB4C17: ???
==24070== by 0x32DB4BA5: ???
==24070== by 0x4F0DCFA: jl_apply (julia.h:1299)
==24070== by 0x4F0DCFA: jl_apply_generic (gf.c:1625)
==24070== by 0x32DB49CA: ???
==24070== by 0x4F7A01E: jl_apply (julia.h:1299)
==24070== by 0x4F7A01E: run_finalizer (gc.c:119)
==24070== by 0x4F7E4CB: run_finalizers (gc.c:157)
==24070== by 0x4F7E4CB: jl_gc_run_all_finalizers (gc.c:178)
==24070== by 0x4F661CC: jl_atexit_hook (init.c:561)
==24070== by 0x401645: main (repl.c:529)
==24070==
==24070== Invalid read of size 8
==24070== at 0x4C2D94E: memcpy@@GLIBC_2.14 (vg_replace_strmem.c:915)
==24070== by 0x4F9EC2B: ios_write (ios.c:403)
==24070== by 0x4F6ECBD: jl_serialize_value_ (dump.c:647)
==24070== by 0x4F6E871: jl_serialize_value_ (dump.c:791)
==24070== by 0x4F6F3EA: jl_serialize_module (dump.c:499)
==24070== by 0x4F6F3EA: jl_serialize_value_ (dump.c:740)
==24070== by 0x4F6E871: jl_serialize_value_ (dump.c:791)
==24070== by 0x4F6EFFC: jl_serialize_datatype (dump.c:471)
==24070== by 0x4F6EFFC: jl_serialize_value_ (dump.c:676)
==24070== by 0x4F6EDF0: jl_serialize_value_ (dump.c:616)
==24070== by 0x4F6F6AC: jl_serialize_datatype (dump.c:467)
==24070== by 0x4F6F6AC: jl_serialize_value_ (dump.c:676)
==24070== by 0x4F6E9B3: jl_serialize_value_ (dump.c:651)
==24070== by 0x4F6F105: jl_serialize_value_ (dump.c:722)
==24070== by 0x4F6F02B: jl_serialize_value_ (dump.c:688)
==24070== Address 0xb009080 is 96 bytes inside a block of size 184 free'd
==24070== at 0x4C29E90: free (vg_replace_malloc.c:473)
==24070== by 0x32DB4C17: ???
==24070== by 0x32DB4BA5: ???
==24070== by 0x4F0DCFA: jl_apply (julia.h:1299)
==24070== by 0x4F0DCFA: jl_apply_generic (gf.c:1625)
==24070== by 0x32DB49CA: ???
==24070== by 0x4F7A01E: jl_apply (julia.h:1299)
==24070== by 0x4F7A01E: run_finalizer (gc.c:119)
==24070== by 0x4F7E4CB: run_finalizers (gc.c:157)
==24070== by 0x4F7E4CB: jl_gc_run_all_finalizers (gc.c:178)
==24070== by 0x4F661CC: jl_atexit_hook (init.c:561)
==24070== by 0x401645: main (repl.c:529)
==24070==
LINK usr/lib/julia/sys.so
CC test/libccalltest.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment