Commit Graph

24 Commits

Author SHA1 Message Date
Graydon Hoare
bc03121d7e Generalize leak suppression slightly, user reported not-real testsuite failure. 2012-07-19 14:37:27 -07:00
Brian Anderson
f4b293f0e3 rt: Fix the 0 bytes lost issue
This is a workaround for #1815. libev uses realloc(0) to
free the loop, which valgrind doesn't like. We have suppressions
to make valgrind ignore them.

Valgrind also has a sanity check when collecting allocation backtraces
that the stack pointer must be at least 512 bytes into the stack (at
least 512 bytes of frames must have come before). When this is not
the case it doesn't collect the backtrace.

Unfortunately, with our spaghetti stacks that valgrind check triggers
sometimes and we don't get the backtrace for the realloc(0), it
fails to be suppressed, and it gets reported as 0 bytes lost
from a malloc with no backtrace.

This fixes the issue by alloca'ing 512 bytes before calling uv_loop_delete
2012-04-03 17:08:33 -07:00
Brian Anderson
c8dc6fcb4c Revert "rt: Remove lock_held_by_current_thread"
Adds back the ability to make assertions about locks, but only under the
--enable-debug configuration

This reverts commit b247de6458.

Conflicts:

	src/rt/rust_sched_loop.cpp
2012-03-31 19:51:29 -07:00
Brian Anderson
b247de6458 rt: Remove lock_held_by_current_thread 2012-03-18 17:03:35 -07:00
Marijn Haverbeke
959adff2fa Suppress valgrind error in dynamic linker
This was happening when running the rustdoc tests. The test proceeded
fine after that, and the code looks like it is running before anything
we generate, so I assume it is spurious.
2012-03-15 15:08:30 +01:00
Brian Anderson
32f7818e7f etc: Add more helgrind suppressions for i686 2012-03-05 19:39:57 -08:00
Brian Anderson
43f9f4d54a etc: Add helgrind suppressions for libunwind 2012-03-05 19:39:55 -08:00
Brian Anderson
fdc5b53c6e etc: Add helgrind suppressions for random locking order in rust_port_selector 2012-03-02 17:59:12 -08:00
Brian Anderson
c76739072c etc: Add some helgrind suppressions for uv 2012-03-02 17:22:31 -08:00
Brian Anderson
9ec94f714a etc: Add more lock_and_signal helgrind suppressions 2012-03-02 15:21:48 -08:00
Brian Anderson
3923c8ee89 etc: Add helgrind suppression for lock_held_by_current_thread 2012-03-02 14:08:02 -08:00
Brian Anderson
050b8bfdf8 Revert "etc: Add helgrind suppression for lock_held_by_current_thread"
This reverts commit d44ca0923a.
2012-02-23 18:27:40 -08:00
Brian Anderson
d44ca0923a etc: Add helgrind suppression for lock_held_by_current_thread
I have some confidence that this function is correct now, but helgrind still
doesn't like it because it's not lock-protected.
2012-02-23 17:29:06 -08:00
Graydon Hoare
c485301d21 Update libuv. 2012-02-02 17:39:47 -08:00
Brian Anderson
7476a39e47 stdlib: Implement some preliminary libuv bindings
std::uv is intended to be low-level, exactly mirroring the C API.
Difficult to continue the implementation now without scheduler
improvements.
2011-12-01 10:24:21 -08:00
Brian Anderson
00a81a22a8 Add more valgrind suppressions for __libc_freeres
Somehow these started showing up on the tinderbox
2011-10-05 16:21:56 -07:00
Brian Anderson
3aef2c1d7d Add a valgrind suppression for the llvm::User leak
It's been around forever. I don't know what it is, but I need the compiler to
be valgrind clean for the istr transition so I'm suppressing it.
2011-08-26 13:20:22 -07:00
Patrick Walton
b55277002b etc: Eliminate dyld valgrind errors on OS X 2011-06-27 12:34:13 -07:00
Rafael Ávila de Espíndola
f9946c9748 Dead code. 2011-05-24 19:39:30 -04:00
Patrick Walton
23eef4da22 Add some more dlopen-related suppressions for the Mac 2011-03-16 11:37:50 -07:00
Brian Anderson
b7f8566ea9 Make the valgrind suppressions file compatible with older versions 2011-01-07 01:17:05 -05:00
Patrick Walton
a1c7d19836 rustc: Translate tag constructors. Can't call them at the moment due to lack of alias args, though. 2010-12-06 16:50:24 -08:00
Patrick Walton
53b01dc006 Add a valgrind suppression for Snow Leopard dyld 2010-08-05 12:00:34 -07:00
Graydon Hoare
d6b7c96c3e Populate tree. 2010-06-23 21:03:09 -07:00