flexnbd: Add valgrind suppressions for a bug in glibc-2.11
This commit is contained in:
13
tests/acceptance/custom.supp
Normal file
13
tests/acceptance/custom.supp
Normal file
@@ -0,0 +1,13 @@
|
||||
{
|
||||
avoid_glibc_bug_do_lookup
|
||||
Memcheck:Addr8
|
||||
fun:do_lookup_x
|
||||
obj:*
|
||||
fun:_dl_lookup_symbol_x
|
||||
}
|
||||
{
|
||||
avoid_glibc_bug_check_match
|
||||
Memcheck:Addr8
|
||||
fun:check_match.12149
|
||||
}
|
||||
|
@@ -21,7 +21,7 @@ class ValgrindExecutor
|
||||
attr_reader :pid
|
||||
|
||||
def run( cmd )
|
||||
@pid = fork do exec "valgrind --track-origins=yes #{cmd}" end
|
||||
@pid = fork do exec "valgrind --track-origins=yes --suppressions=custom.supp #{cmd}" end
|
||||
end
|
||||
end # class ValgrindExecutor
|
||||
|
||||
@@ -131,7 +131,7 @@ class ValgrindKillingExecutor
|
||||
|
||||
def run( cmd )
|
||||
@io_r, io_w = IO.pipe
|
||||
@pid = fork do exec( "valgrind --xml=yes --xml-fd=#{io_w.fileno} " + cmd ) end
|
||||
@pid = fork do exec( "valgrind --suppressions=custom.supp --xml=yes --xml-fd=#{io_w.fileno} " + cmd ) end
|
||||
launch_watch_thread( @pid, @io_r )
|
||||
@pid
|
||||
end
|
||||
@@ -521,3 +521,4 @@ module FlexNBD
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user