Created
April 12, 2020 01:05
-
-
Save andoriyu/438e27c5b84cb5d4b43dc21b6af3e766 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==4658== Memcheck, a memory error detector | |
==4658== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. | |
==4658== Using Valgrind-3.14.0 and LibVEX; rerun with -h for copyright info | |
==4658== Command: ./target/debug/uclicious-c0965233f696e227 raw::parser::test::basic_vars_handler | |
==4658== | |
==4658== Syscall param statx(file_name) points to unaddressable byte(s) | |
==4658== at 0x498AF59: syscall (syscall.S:38) | |
==4658== by 0x1CB85B: statx (weak.rs:90) | |
==4658== by 0x1CB85B: std::sys::unix::fs::try_statx (fs.rs:122) | |
==4658== by 0x1C67EE: std::sys::unix::fs::stat (fs.rs:1035) | |
==4658== by 0x18FA08: metadata<&std::path::PathBuf> (fs.rs:1591) | |
==4658== by 0x18FA08: term::terminfo::searcher::get_dbpath_for_term (searcher.rs:50) | |
==4658== by 0x18EC64: term::terminfo::TermInfo::from_name (mod.rs:83) | |
==4658== by 0x18EA70: term::terminfo::TermInfo::from_env (mod.rs:69) | |
==4658== by 0x199919: new<std::io::stdio::Stdout> (mod.rs:220) | |
==4658== by 0x199919: term::stdout (lib.rs:62) | |
==4658== by 0x1727CB: test::console::run_tests_console (console.rs:254) | |
==4658== by 0x181903: test::test_main (lib.rs:122) | |
==4658== by 0x182910: test::test_main_static (lib.rs:141) | |
==4658== by 0x143695: uclicious::main (in /subj/target/debug/uclicious-c0965233f696e227) | |
==4658== by 0x12169F: std::rt::lang_start::{{closure}} (rt.rs:67) | |
==4658== Address 0x0 is not stack'd, malloc'd or (recently) free'd | |
==4658== | |
==4658== Syscall param statx(buf) points to unaddressable byte(s) | |
==4658== at 0x498AF59: syscall (syscall.S:38) | |
==4658== by 0x1CB85B: statx (weak.rs:90) | |
==4658== by 0x1CB85B: std::sys::unix::fs::try_statx (fs.rs:122) | |
==4658== by 0x1C67EE: std::sys::unix::fs::stat (fs.rs:1035) | |
==4658== by 0x18FA08: metadata<&std::path::PathBuf> (fs.rs:1591) | |
==4658== by 0x18FA08: term::terminfo::searcher::get_dbpath_for_term (searcher.rs:50) | |
==4658== by 0x18EC64: term::terminfo::TermInfo::from_name (mod.rs:83) | |
==4658== by 0x18EA70: term::terminfo::TermInfo::from_env (mod.rs:69) | |
==4658== by 0x199919: new<std::io::stdio::Stdout> (mod.rs:220) | |
==4658== by 0x199919: term::stdout (lib.rs:62) | |
==4658== by 0x1727CB: test::console::run_tests_console (console.rs:254) | |
==4658== by 0x181903: test::test_main (lib.rs:122) | |
==4658== by 0x182910: test::test_main_static (lib.rs:141) | |
==4658== by 0x143695: uclicious::main (in /subj/target/debug/uclicious-c0965233f696e227) | |
==4658== by 0x12169F: std::rt::lang_start::{{closure}} (rt.rs:67) | |
==4658== Address 0x0 is not stack'd, malloc'd or (recently) free'd | |
==4658== | |
running 1 test | |
==4658== Thread 2 raw::parser::tes: | |
==4658== Invalid write of size 2 | |
==4658== at 0x483C9DB: memmove (vg_replace_strmem.c:1270) | |
==4658== by 0x1A77E7: ucl_expand_single_variable (ucl_parser.c:466) | |
==4658== by 0x1A7998: ucl_expand_variable (ucl_parser.c:540) | |
==4658== by 0x1A7B5C: ucl_copy_or_store_ptr (ucl_parser.c:604) | |
==4658== by 0x1AA886: ucl_parse_value (ucl_parser.c:1707) | |
==4658== by 0x1AC7B0: ucl_state_machine (ucl_parser.c:2461) | |
==4658== by 0x1AEA44: ucl_parser_add_chunk_full (ucl_parser.c:2947) | |
==4658== by 0x14F34A: uclicious::raw::parser::Parser::add_chunk_full (parser.rs:75) | |
==4658== by 0x1264AD: uclicious::raw::parser::test::basic_vars_handler (parser.rs:280) | |
==4658== by 0x1351E9: uclicious::raw::parser::test::basic_vars_handler::{{closure}} (parser.rs:242) | |
==4658== by 0x137BFD: core::ops::function::FnOnce::call_once (function.rs:232) | |
==4658== by 0x16C7FE: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once (boxed.rs:1015) | |
==4658== Address 0x4bfcad0 is 0 bytes inside a block of size 1 alloc'd | |
==4658== at 0x483577F: malloc (vg_replace_malloc.c:299) | |
==4658== by 0x1A7937: ucl_expand_variable (ucl_parser.c:531) | |
==4658== by 0x1A7B5C: ucl_copy_or_store_ptr (ucl_parser.c:604) | |
==4658== by 0x1AA886: ucl_parse_value (ucl_parser.c:1707) | |
==4658== by 0x1AC7B0: ucl_state_machine (ucl_parser.c:2461) | |
==4658== by 0x1AEA44: ucl_parser_add_chunk_full (ucl_parser.c:2947) | |
==4658== by 0x14F34A: uclicious::raw::parser::Parser::add_chunk_full (parser.rs:75) | |
==4658== by 0x1264AD: uclicious::raw::parser::test::basic_vars_handler (parser.rs:280) | |
==4658== by 0x1351E9: uclicious::raw::parser::test::basic_vars_handler::{{closure}} (parser.rs:242) | |
==4658== by 0x137BFD: core::ops::function::FnOnce::call_once (function.rs:232) | |
==4658== by 0x16C7FE: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once (boxed.rs:1015) | |
==4658== by 0x1CBCF6: __rust_maybe_catch_panic (lib.rs:86) | |
==4658== | |
==4658== Invalid write of size 1 | |
==4658== at 0x483CA14: memmove (vg_replace_strmem.c:1270) | |
==4658== by 0x1A77E7: ucl_expand_single_variable (ucl_parser.c:466) | |
==4658== by 0x1A7998: ucl_expand_variable (ucl_parser.c:540) | |
==4658== by 0x1A7B5C: ucl_copy_or_store_ptr (ucl_parser.c:604) | |
==4658== by 0x1AA886: ucl_parse_value (ucl_parser.c:1707) | |
==4658== by 0x1AC7B0: ucl_state_machine (ucl_parser.c:2461) | |
==4658== by 0x1AEA44: ucl_parser_add_chunk_full (ucl_parser.c:2947) | |
==4658== by 0x14F34A: uclicious::raw::parser::Parser::add_chunk_full (parser.rs:75) | |
==4658== by 0x1264AD: uclicious::raw::parser::test::basic_vars_handler (parser.rs:280) | |
==4658== by 0x1351E9: uclicious::raw::parser::test::basic_vars_handler::{{closure}} (parser.rs:242) | |
==4658== by 0x137BFD: core::ops::function::FnOnce::call_once (function.rs:232) | |
==4658== by 0x16C7FE: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once (boxed.rs:1015) | |
==4658== Address 0x4bfcad2 is 1 bytes after a block of size 1 alloc'd | |
==4658== at 0x483577F: malloc (vg_replace_malloc.c:299) | |
==4658== by 0x1A7937: ucl_expand_variable (ucl_parser.c:531) | |
==4658== by 0x1A7B5C: ucl_copy_or_store_ptr (ucl_parser.c:604) | |
==4658== by 0x1AA886: ucl_parse_value (ucl_parser.c:1707) | |
==4658== by 0x1AC7B0: ucl_state_machine (ucl_parser.c:2461) | |
==4658== by 0x1AEA44: ucl_parser_add_chunk_full (ucl_parser.c:2947) | |
==4658== by 0x14F34A: uclicious::raw::parser::Parser::add_chunk_full (parser.rs:75) | |
==4658== by 0x1264AD: uclicious::raw::parser::test::basic_vars_handler (parser.rs:280) | |
==4658== by 0x1351E9: uclicious::raw::parser::test::basic_vars_handler::{{closure}} (parser.rs:242) | |
==4658== by 0x137BFD: core::ops::function::FnOnce::call_once (function.rs:232) | |
==4658== by 0x16C7FE: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once (boxed.rs:1015) | |
==4658== by 0x1CBCF6: __rust_maybe_catch_panic (lib.rs:86) | |
==4658== | |
==4658== Invalid write of size 1 | |
==4658== at 0x1A79CC: ucl_expand_variable (ucl_parser.c:547) | |
==4658== by 0x1A7B5C: ucl_copy_or_store_ptr (ucl_parser.c:604) | |
==4658== by 0x1AA886: ucl_parse_value (ucl_parser.c:1707) | |
==4658== by 0x1AC7B0: ucl_state_machine (ucl_parser.c:2461) | |
==4658== by 0x1AEA44: ucl_parser_add_chunk_full (ucl_parser.c:2947) | |
==4658== by 0x14F34A: uclicious::raw::parser::Parser::add_chunk_full (parser.rs:75) | |
==4658== by 0x1264AD: uclicious::raw::parser::test::basic_vars_handler (parser.rs:280) | |
==4658== by 0x1351E9: uclicious::raw::parser::test::basic_vars_handler::{{closure}} (parser.rs:242) | |
==4658== by 0x137BFD: core::ops::function::FnOnce::call_once (function.rs:232) | |
==4658== by 0x16C7FE: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once (boxed.rs:1015) | |
==4658== by 0x1CBCF6: __rust_maybe_catch_panic (lib.rs:86) | |
==4658== by 0x187610: try<(),std::panic::AssertUnwindSafe<alloc::boxed::Box<FnOnce<()>>>> (panicking.rs:281) | |
==4658== by 0x187610: catch_unwind<std::panic::AssertUnwindSafe<alloc::boxed::Box<FnOnce<()>>>,()> (panic.rs:394) | |
==4658== by 0x187610: run_test_in_process (lib.rs:539) | |
==4658== by 0x187610: test::run_test::run_test_inner::{{closure}} (lib.rs:452) | |
==4658== Address 0x4bfcad3 is 2 bytes after a block of size 1 alloc'd | |
==4658== at 0x483577F: malloc (vg_replace_malloc.c:299) | |
==4658== by 0x1A7937: ucl_expand_variable (ucl_parser.c:531) | |
==4658== by 0x1A7B5C: ucl_copy_or_store_ptr (ucl_parser.c:604) | |
==4658== by 0x1AA886: ucl_parse_value (ucl_parser.c:1707) | |
==4658== by 0x1AC7B0: ucl_state_machine (ucl_parser.c:2461) | |
==4658== by 0x1AEA44: ucl_parser_add_chunk_full (ucl_parser.c:2947) | |
==4658== by 0x14F34A: uclicious::raw::parser::Parser::add_chunk_full (parser.rs:75) | |
==4658== by 0x1264AD: uclicious::raw::parser::test::basic_vars_handler (parser.rs:280) | |
==4658== by 0x1351E9: uclicious::raw::parser::test::basic_vars_handler::{{closure}} (parser.rs:242) | |
==4658== by 0x137BFD: core::ops::function::FnOnce::call_once (function.rs:232) | |
==4658== by 0x16C7FE: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once (boxed.rs:1015) | |
==4658== by 0x1CBCF6: __rust_maybe_catch_panic (lib.rs:86) | |
==4658== | |
==4658== Invalid read of size 1 | |
==4658== at 0x4838C74: strlen (vg_replace_strmem.c:460) | |
==4658== by 0x1BC489: std::ffi::c_str::CStr::from_ptr (c_str.rs:1007) | |
==4658== by 0x1552BE: <uclicious::raw::object::ObjectRef as core::fmt::Debug>::fmt (object.rs:702) | |
==4658== by 0x123CEF: <&T as core::fmt::Debug>::fmt (mod.rs:1959) | |
==4658== by 0x123D2F: <&T as core::fmt::Debug>::fmt (mod.rs:1959) | |
==4658== by 0x1E3B91: run (mod.rs:1097) | |
==4658== by 0x1E3B91: core::fmt::write (mod.rs:1061) | |
==4658== by 0x161AC4: std::io::Write::write_fmt (mod.rs:1426) | |
==4658== by 0x1BEAD3: write_fmt<Write> (impls.rs:156) | |
==4658== by 0x1BEAD3: {{closure}}<std::io::stdio::Stderr> (stdio.rs:797) | |
==4658== by 0x1BEAD3: try_with<core::cell::RefCell<core::option::Option<alloc::boxed::Box<Write>>>,closure-0,core::result::Result<(), std::io::error::Error>> (local.rs:262) | |
==4658== by 0x1BEAD3: print_to<std::io::stdio::Stderr> (stdio.rs:793) | |
==4658== by 0x1BEAD3: std::io::stdio::_eprint (stdio.rs:828) | |
==4658== by 0x12681D: uclicious::raw::parser::test::basic_vars_handler (parser.rs:287) | |
==4658== by 0x1351E9: uclicious::raw::parser::test::basic_vars_handler::{{closure}} (parser.rs:242) | |
==4658== by 0x137BFD: core::ops::function::FnOnce::call_once (function.rs:232) | |
==4658== by 0x16C7FE: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once (boxed.rs:1015) | |
==4658== Address 0x4bfcad1 is 0 bytes after a block of size 1 alloc'd | |
==4658== at 0x483577F: malloc (vg_replace_malloc.c:299) | |
==4658== by 0x1A7937: ucl_expand_variable (ucl_parser.c:531) | |
==4658== by 0x1A7B5C: ucl_copy_or_store_ptr (ucl_parser.c:604) | |
==4658== by 0x1AA886: ucl_parse_value (ucl_parser.c:1707) | |
==4658== by 0x1AC7B0: ucl_state_machine (ucl_parser.c:2461) | |
==4658== by 0x1AEA44: ucl_parser_add_chunk_full (ucl_parser.c:2947) | |
==4658== by 0x14F34A: uclicious::raw::parser::Parser::add_chunk_full (parser.rs:75) | |
==4658== by 0x1264AD: uclicious::raw::parser::test::basic_vars_handler (parser.rs:280) | |
==4658== by 0x1351E9: uclicious::raw::parser::test::basic_vars_handler::{{closure}} (parser.rs:242) | |
==4658== by 0x137BFD: core::ops::function::FnOnce::call_once (function.rs:232) | |
==4658== by 0x16C7FE: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once (boxed.rs:1015) | |
==4658== by 0x1CBCF6: __rust_maybe_catch_panic (lib.rs:86) | |
==4658== | |
==4658== Invalid read of size 1 | |
==4658== at 0x1E5D4F: <core::str::lossy::Utf8LossyChunksIter as core::iter::traits::iterator::Iterator>::next (lossy.rs:64) | |
==4658== by 0x1DDFC5: alloc::string::String::from_utf8_lossy (string.rs:552) | |
==4658== by 0x1BC4AF: std::ffi::c_str::CStr::to_string_lossy (c_str.rs:1253) | |
==4658== by 0x1552DD: <uclicious::raw::object::ObjectRef as core::fmt::Debug>::fmt (object.rs:703) | |
==4658== by 0x123CEF: <&T as core::fmt::Debug>::fmt (mod.rs:1959) | |
==4658== by 0x123D2F: <&T as core::fmt::Debug>::fmt (mod.rs:1959) | |
==4658== by 0x1E3B91: run (mod.rs:1097) | |
==4658== by 0x1E3B91: core::fmt::write (mod.rs:1061) | |
==4658== by 0x161AC4: std::io::Write::write_fmt (mod.rs:1426) | |
==4658== by 0x1BEAD3: write_fmt<Write> (impls.rs:156) | |
==4658== by 0x1BEAD3: {{closure}}<std::io::stdio::Stderr> (stdio.rs:797) | |
==4658== by 0x1BEAD3: try_with<core::cell::RefCell<core::option::Option<alloc::boxed::Box<Write>>>,closure-0,core::result::Result<(), std::io::error::Error>> (local.rs:262) | |
==4658== by 0x1BEAD3: print_to<std::io::stdio::Stderr> (stdio.rs:793) | |
==4658== by 0x1BEAD3: std::io::stdio::_eprint (stdio.rs:828) | |
==4658== by 0x12681D: uclicious::raw::parser::test::basic_vars_handler (parser.rs:287) | |
==4658== by 0x1351E9: uclicious::raw::parser::test::basic_vars_handler::{{closure}} (parser.rs:242) | |
==4658== by 0x137BFD: core::ops::function::FnOnce::call_once (function.rs:232) | |
==4658== Address 0x4bfcad1 is 0 bytes after a block of size 1 alloc'd | |
==4658== at 0x483577F: malloc (vg_replace_malloc.c:299) | |
==4658== by 0x1A7937: ucl_expand_variable (ucl_parser.c:531) | |
==4658== by 0x1A7B5C: ucl_copy_or_store_ptr (ucl_parser.c:604) | |
==4658== by 0x1AA886: ucl_parse_value (ucl_parser.c:1707) | |
==4658== by 0x1AC7B0: ucl_state_machine (ucl_parser.c:2461) | |
==4658== by 0x1AEA44: ucl_parser_add_chunk_full (ucl_parser.c:2947) | |
==4658== by 0x14F34A: uclicious::raw::parser::Parser::add_chunk_full (parser.rs:75) | |
==4658== by 0x1264AD: uclicious::raw::parser::test::basic_vars_handler (parser.rs:280) | |
==4658== by 0x1351E9: uclicious::raw::parser::test::basic_vars_handler::{{closure}} (parser.rs:242) | |
==4658== by 0x137BFD: core::ops::function::FnOnce::call_once (function.rs:232) | |
==4658== by 0x16C7FE: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once (boxed.rs:1015) | |
==4658== by 0x1CBCF6: __rust_maybe_catch_panic (lib.rs:86) | |
==4658== | |
==4658== Invalid read of size 2 | |
==4658== at 0x483C9D8: memmove (vg_replace_strmem.c:1270) | |
==4658== by 0x15705B: core::intrinsics::copy_nonoverlapping (intrinsics.rs:1523) | |
==4658== by 0x1226BA: core::slice::<impl [T]>::copy_from_slice (mod.rs:2231) | |
==4658== by 0x11CA9A: <alloc::vec::Vec<T> as alloc::vec::SpecExtend<&T,core::slice::Iter<T>>>::spec_extend (vec.rs:2117) | |
==4658== by 0x11DFBD: alloc::vec::Vec<T>::extend_from_slice (vec.rs:1524) | |
==4658== by 0x143733: alloc::slice::hack::to_vec (slice.rs:159) | |
==4658== by 0x1359B3: alloc::slice::<impl [T]>::to_vec (slice.rs:394) | |
==4658== by 0x135A43: alloc::slice::<impl alloc::borrow::ToOwned for [T]>::to_owned (slice.rs:727) | |
==4658== by 0x15BF08: alloc::str::<impl alloc::borrow::ToOwned for str>::to_owned (str.rs:205) | |
==4658== by 0x15C867: <alloc::borrow::Cow<str> as alloc::string::ToString>::to_string (string.rs:2191) | |
==4658== by 0x1552EC: <uclicious::raw::object::ObjectRef as core::fmt::Debug>::fmt (object.rs:703) | |
==4658== by 0x123CEF: <&T as core::fmt::Debug>::fmt (mod.rs:1959) | |
==4658== Address 0x4bfcad0 is 0 bytes inside a block of size 1 alloc'd | |
==4658== at 0x483577F: malloc (vg_replace_malloc.c:299) | |
==4658== by 0x1A7937: ucl_expand_variable (ucl_parser.c:531) | |
==4658== by 0x1A7B5C: ucl_copy_or_store_ptr (ucl_parser.c:604) | |
==4658== by 0x1AA886: ucl_parse_value (ucl_parser.c:1707) | |
==4658== by 0x1AC7B0: ucl_state_machine (ucl_parser.c:2461) | |
==4658== by 0x1AEA44: ucl_parser_add_chunk_full (ucl_parser.c:2947) | |
==4658== by 0x14F34A: uclicious::raw::parser::Parser::add_chunk_full (parser.rs:75) | |
==4658== by 0x1264AD: uclicious::raw::parser::test::basic_vars_handler (parser.rs:280) | |
==4658== by 0x1351E9: uclicious::raw::parser::test::basic_vars_handler::{{closure}} (parser.rs:242) | |
==4658== by 0x137BFD: core::ops::function::FnOnce::call_once (function.rs:232) | |
==4658== by 0x16C7FE: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once (boxed.rs:1015) | |
==4658== by 0x1CBCF6: __rust_maybe_catch_panic (lib.rs:86) | |
==4658== | |
==4658== Invalid read of size 1 | |
==4658== at 0x483CA10: memmove (vg_replace_strmem.c:1270) | |
==4658== by 0x15705B: core::intrinsics::copy_nonoverlapping (intrinsics.rs:1523) | |
==4658== by 0x1226BA: core::slice::<impl [T]>::copy_from_slice (mod.rs:2231) | |
==4658== by 0x11CA9A: <alloc::vec::Vec<T> as alloc::vec::SpecExtend<&T,core::slice::Iter<T>>>::spec_extend (vec.rs:2117) | |
==4658== by 0x11DFBD: alloc::vec::Vec<T>::extend_from_slice (vec.rs:1524) | |
==4658== by 0x143733: alloc::slice::hack::to_vec (slice.rs:159) | |
==4658== by 0x1359B3: alloc::slice::<impl [T]>::to_vec (slice.rs:394) | |
==4658== by 0x135A43: alloc::slice::<impl alloc::borrow::ToOwned for [T]>::to_owned (slice.rs:727) | |
==4658== by 0x15BF08: alloc::str::<impl alloc::borrow::ToOwned for str>::to_owned (str.rs:205) | |
==4658== by 0x15C867: <alloc::borrow::Cow<str> as alloc::string::ToString>::to_string (string.rs:2191) | |
==4658== by 0x1552EC: <uclicious::raw::object::ObjectRef as core::fmt::Debug>::fmt (object.rs:703) | |
==4658== by 0x123CEF: <&T as core::fmt::Debug>::fmt (mod.rs:1959) | |
==4658== Address 0x4bfcad2 is 1 bytes after a block of size 1 alloc'd | |
==4658== at 0x483577F: malloc (vg_replace_malloc.c:299) | |
==4658== by 0x1A7937: ucl_expand_variable (ucl_parser.c:531) | |
==4658== by 0x1A7B5C: ucl_copy_or_store_ptr (ucl_parser.c:604) | |
==4658== by 0x1AA886: ucl_parse_value (ucl_parser.c:1707) | |
==4658== by 0x1AC7B0: ucl_state_machine (ucl_parser.c:2461) | |
==4658== by 0x1AEA44: ucl_parser_add_chunk_full (ucl_parser.c:2947) | |
==4658== by 0x14F34A: uclicious::raw::parser::Parser::add_chunk_full (parser.rs:75) | |
==4658== by 0x1264AD: uclicious::raw::parser::test::basic_vars_handler (parser.rs:280) | |
==4658== by 0x1351E9: uclicious::raw::parser::test::basic_vars_handler::{{closure}} (parser.rs:242) | |
==4658== by 0x137BFD: core::ops::function::FnOnce::call_once (function.rs:232) | |
==4658== by 0x16C7FE: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once (boxed.rs:1015) | |
==4658== by 0x1CBCF6: __rust_maybe_catch_panic (lib.rs:86) | |
==4658== | |
==4658== Invalid read of size 1 | |
==4658== at 0x4838C74: strlen (vg_replace_strmem.c:460) | |
==4658== by 0x1BC489: std::ffi::c_str::CStr::from_ptr (c_str.rs:1007) | |
==4658== by 0x13963E: uclicious::raw::utils::to_str (utils.rs:8) | |
==4658== by 0x154043: uclicious::raw::object::ObjectRef::as_string (object.rs:313) | |
==4658== by 0x126834: uclicious::raw::parser::test::basic_vars_handler (parser.rs:289) | |
==4658== by 0x1351E9: uclicious::raw::parser::test::basic_vars_handler::{{closure}} (parser.rs:242) | |
==4658== by 0x137BFD: core::ops::function::FnOnce::call_once (function.rs:232) | |
==4658== by 0x16C7FE: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once (boxed.rs:1015) | |
==4658== by 0x1CBCF6: __rust_maybe_catch_panic (lib.rs:86) | |
==4658== by 0x187610: try<(),std::panic::AssertUnwindSafe<alloc::boxed::Box<FnOnce<()>>>> (panicking.rs:281) | |
==4658== by 0x187610: catch_unwind<std::panic::AssertUnwindSafe<alloc::boxed::Box<FnOnce<()>>>,()> (panic.rs:394) | |
==4658== by 0x187610: run_test_in_process (lib.rs:539) | |
==4658== by 0x187610: test::run_test::run_test_inner::{{closure}} (lib.rs:452) | |
==4658== by 0x160F35: std::sys_common::backtrace::__rust_begin_short_backtrace (backtrace.rs:129) | |
==4658== by 0x165505: {{closure}}<closure-0,()> (mod.rs:475) | |
==4658== by 0x165505: call_once<(),closure-0> (panic.rs:318) | |
==4658== by 0x165505: std::panicking::try::do_call (panicking.rs:305) | |
==4658== Address 0x4bfcad1 is 0 bytes after a block of size 1 alloc'd | |
==4658== at 0x483577F: malloc (vg_replace_malloc.c:299) | |
==4658== by 0x1A7937: ucl_expand_variable (ucl_parser.c:531) | |
==4658== by 0x1A7B5C: ucl_copy_or_store_ptr (ucl_parser.c:604) | |
==4658== by 0x1AA886: ucl_parse_value (ucl_parser.c:1707) | |
==4658== by 0x1AC7B0: ucl_state_machine (ucl_parser.c:2461) | |
==4658== by 0x1AEA44: ucl_parser_add_chunk_full (ucl_parser.c:2947) | |
==4658== by 0x14F34A: uclicious::raw::parser::Parser::add_chunk_full (parser.rs:75) | |
==4658== by 0x1264AD: uclicious::raw::parser::test::basic_vars_handler (parser.rs:280) | |
==4658== by 0x1351E9: uclicious::raw::parser::test::basic_vars_handler::{{closure}} (parser.rs:242) | |
==4658== by 0x137BFD: core::ops::function::FnOnce::call_once (function.rs:232) | |
==4658== by 0x16C7FE: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once (boxed.rs:1015) | |
==4658== by 0x1CBCF6: __rust_maybe_catch_panic (lib.rs:86) | |
==4658== | |
==4658== Invalid read of size 1 | |
==4658== at 0x1E5D4F: <core::str::lossy::Utf8LossyChunksIter as core::iter::traits::iterator::Iterator>::next (lossy.rs:64) | |
==4658== by 0x1DDFC5: alloc::string::String::from_utf8_lossy (string.rs:552) | |
==4658== by 0x1BC4AF: std::ffi::c_str::CStr::to_string_lossy (c_str.rs:1253) | |
==4658== by 0x139675: uclicious::raw::utils::to_str (utils.rs:9) | |
==4658== by 0x154043: uclicious::raw::object::ObjectRef::as_string (object.rs:313) | |
==4658== by 0x126834: uclicious::raw::parser::test::basic_vars_handler (parser.rs:289) | |
==4658== by 0x1351E9: uclicious::raw::parser::test::basic_vars_handler::{{closure}} (parser.rs:242) | |
==4658== by 0x137BFD: core::ops::function::FnOnce::call_once (function.rs:232) | |
==4658== by 0x16C7FE: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once (boxed.rs:1015) | |
==4658== by 0x1CBCF6: __rust_maybe_catch_panic (lib.rs:86) | |
==4658== by 0x187610: try<(),std::panic::AssertUnwindSafe<alloc::boxed::Box<FnOnce<()>>>> (panicking.rs:281) | |
==4658== by 0x187610: catch_unwind<std::panic::AssertUnwindSafe<alloc::boxed::Box<FnOnce<()>>>,()> (panic.rs:394) | |
==4658== by 0x187610: run_test_in_process (lib.rs:539) | |
==4658== by 0x187610: test::run_test::run_test_inner::{{closure}} (lib.rs:452) | |
==4658== by 0x160F35: std::sys_common::backtrace::__rust_begin_short_backtrace (backtrace.rs:129) | |
==4658== Address 0x4bfcad1 is 0 bytes after a block of size 1 alloc'd | |
==4658== at 0x483577F: malloc (vg_replace_malloc.c:299) | |
==4658== by 0x1A7937: ucl_expand_variable (ucl_parser.c:531) | |
==4658== by 0x1A7B5C: ucl_copy_or_store_ptr (ucl_parser.c:604) | |
==4658== by 0x1AA886: ucl_parse_value (ucl_parser.c:1707) | |
==4658== by 0x1AC7B0: ucl_state_machine (ucl_parser.c:2461) | |
==4658== by 0x1AEA44: ucl_parser_add_chunk_full (ucl_parser.c:2947) | |
==4658== by 0x14F34A: uclicious::raw::parser::Parser::add_chunk_full (parser.rs:75) | |
==4658== by 0x1264AD: uclicious::raw::parser::test::basic_vars_handler (parser.rs:280) | |
==4658== by 0x1351E9: uclicious::raw::parser::test::basic_vars_handler::{{closure}} (parser.rs:242) | |
==4658== by 0x137BFD: core::ops::function::FnOnce::call_once (function.rs:232) | |
==4658== by 0x16C7FE: <alloc::boxed::Box<F> as core::ops::function::FnOnce<A>>::call_once (boxed.rs:1015) | |
==4658== by 0x1CBCF6: __rust_maybe_catch_panic (lib.rs:86) | |
==4658== | |
test raw::parser::test::basic_vars_handler ... ok | |
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 39 filtered out | |
==4658== | |
==4658== HEAP SUMMARY: | |
==4658== in use at exit: 3 bytes in 1 blocks | |
==4658== total heap usage: 677 allocs, 676 frees, 71,293 bytes allocated | |
==4658== | |
==4658== LEAK SUMMARY: | |
==4658== definitely lost: 3 bytes in 1 blocks | |
==4658== indirectly lost: 0 bytes in 0 blocks | |
==4658== possibly lost: 0 bytes in 0 blocks | |
==4658== still reachable: 0 bytes in 0 blocks | |
==4658== suppressed: 0 bytes in 0 blocks | |
==4658== Rerun with --leak-check=full to see details of leaked memory | |
==4658== | |
==4658== For counts of detected and suppressed errors, rerun with: -v | |
==4658== ERROR SUMMARY: 20 errors from 11 contexts (suppressed: 0 from 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment