Files
clamav/unit_tests
Micah Snyder 390c264480 Tests, Valgrind: suppress jpeg decoder error fp
Observed the following:

7: [INFO]: ==13953== Conditional jump or move depends on uninitialised value(s)
7: [INFO]: ==13953==    at 0x52F1DA5: drop_in_place<core::result::Result<(), std::sync::mpsc::SendError<alloc::vec::Vec<u8, alloc::alloc::Global>>>> (mod.rs:192)
7: [INFO]: ==13953==    by 0x52F1DA5: {closure#0} (multithreaded.rs:77)
7: [INFO]: ==13953==    by 0x52F1DA5: <std::panic::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once (panic.rs:347)
7: [INFO]: ==13953==    by 0x52EB913: do_call<std::panic::AssertUnwindSafe<jpeg_decoder::worker::multithreaded::spawn_worker_thread::{closure#0}>, ()> (panicking.rs:401)
7: [INFO]: ==13953==    by 0x52EB913: try<(), std::panic::AssertUnwindSafe<jpeg_decoder::worker::multithreaded::spawn_worker_thread::{closure#0}>> (panicking.rs:365)
7: [INFO]: ==13953==    by 0x52EB913: catch_unwind<std::panic::AssertUnwindSafe<jpeg_decoder::worker::multithreaded::spawn_worker_thread::{closure#0}>, ()> (panic.rs:434)
7: [INFO]: ==13953==    by 0x52EB913: halt_unwinding<jpeg_decoder::worker::multithreaded::spawn_worker_thread::{closure#0}, ()> (unwind.rs:17)
7: [INFO]: ==13953==    by 0x52EB913: {closure#0}<jpeg_decoder::worker::multithreaded::spawn_worker_thread::{closure#0}> (mod.rs:97)
7: [INFO]: ==13953==    by 0x52EB913: _ZN77_$LT$rayon_core..job..HeapJob$LT$BODY$GT$$u20$as$u20$rayon_core..job..Job$GT$7execute17h0490359412a3f331E.llvm.897720431843799762 (job.rs:167)
7: [INFO]: ==13953==    by 0x50052C0: execute (job.rs:59)
7: [INFO]: ==13953==    by 0x50052C0: execute (registry.rs:749)
7: [INFO]: ==13953==    by 0x50052C0: rayon_core::registry::WorkerThread::wait_until_cold (registry.rs:726)
7: [INFO]: ==13953==    by 0x53007AC: wait_until<rayon_core::latch::CountLatch> (registry.rs:700)
7: [INFO]: ==13953==    by 0x53007AC: main_loop (registry.rs:833)
7: [INFO]: ==13953==    by 0x53007AC: rayon_core::registry::ThreadBuilder::run (registry.rs:55)
7: [INFO]: ==13953==    by 0x5303104: {closure#0} (registry.rs:100)
7: [INFO]: ==13953==    by 0x5303104: std::sys_common::backtrace::__rust_begin_short_backtrace (backtrace.rs:125)
7: [INFO]: ==13953==    by 0x52FD0AA: {closure#0}<rayon_core::registry::{impl#2}::spawn::{closure#0}, ()> (mod.rs:476)
7: [INFO]: ==13953==    by 0x52FD0AA: call_once<(), std::thread::{impl#0}::spawn_unchecked::{closure#0}::{closure#0}> (panic.rs:347)
7: [INFO]: ==13953==    by 0x52FD0AA: do_call<std::panic::AssertUnwindSafe<std::thread::{impl#0}::spawn_unchecked::{closure#0}::{closure#0}>, ()> (panicking.rs:401)
7: [INFO]: ==13953==    by 0x52FD0AA: try<(), std::panic::AssertUnwindSafe<std::thread::{impl#0}::spawn_unchecked::{closure#0}::{closure#0}>> (panicking.rs:365)
7: [INFO]: ==13953==    by 0x52FD0AA: catch_unwind<std::panic::AssertUnwindSafe<std::thread::{impl#0}::spawn_unchecked::{closure#0}::{closure#0}>, ()> (panic.rs:434)
7: [INFO]: ==13953==    by 0x52FD0AA: {closure#0}<rayon_core::registry::{impl#2}::spawn::{closure#0}, ()> (mod.rs:475)
7: [INFO]: ==13953==    by 0x52FD0AA: core::ops::function::FnOnce::call_once{{vtable-shim}} (function.rs:227)
7: [INFO]: ==13953==    by 0x53BC4E6: call_once<(), dyn core::ops::function::FnOnce<(), Output=()>, alloc::alloc::Global> (boxed.rs:1572)
7: [INFO]: ==13953==    by 0x53BC4E6: call_once<(), alloc::boxed::Box<dyn core::ops::function::FnOnce<(), Output=()>, alloc::alloc::Global>, alloc::alloc::Global> (boxed.rs:1572)
7: [INFO]: ==13953==    by 0x53BC4E6: std::sys::unix::thread::Thread::new::thread_start (thread.rs:74)
7: [INFO]: ==13953==    by 0x6EF4EA4: start_thread (in /usr/lib64/libpthread-2.17.so)
7: [INFO]: ==13953==    by 0x6C1DB0C: clone (in /usr/lib64/libc-2.17.so)

The issue stems from jpeg decoder error handling.
It appears to be a false positive.
2022-03-02 13:12:59 -07:00
..
2022-01-09 14:23:25 -07:00
2022-01-09 14:23:25 -07:00
2022-01-09 14:23:25 -07:00
2022-01-09 14:23:25 -07:00
2022-01-09 14:23:25 -07:00
2022-01-09 14:23:25 -07:00
2022-01-09 14:23:25 -07:00
2022-01-09 14:23:25 -07:00
2022-01-09 14:23:25 -07:00