Skip to content

Instantly share code, notes, and snippets.

@cholcombe973
Created November 17, 2016 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cholcombe973/9ee6f0cba41bc467ac84fdd53231fa10 to your computer and use it in GitHub Desktop.
Save cholcombe973/9ee6f0cba41bc467ac84fdd53231fa10 to your computer and use it in GitHub Desktop.
encrypt: data_len: 1048576
encryptor.process final pointer: 0x18c0c9c0
ciphertext pointer: 0x18c0c9c0
ciphertext first element: Some(168)
==519608== Invalid read of size 8
==519608== at 0x617DDD: arena_dalloc_bin_locked_impl.isra.39 (in /home/ubuntu/preserve)
==519608== by 0x63217E: je_tcache_bin_flush_small (in /home/ubuntu/preserve)
==519608== by 0x61A425: je_arena_ralloc (in /home/ubuntu/preserve)
==519608== by 0x610560: rallocx (in /home/ubuntu/preserve)
==519608== by 0x221721: alloc::heap::reallocate::hb9d7c449a6f8a882 (heap.rs:79)
==519608== by 0x1FFD36: _$LT$alloc..raw_vec..RawVec$LT$T$GT$$GT$::reserve::hdc9c2318f1e1dd6e (raw_vec.rs:427)
==519608== by 0x1E6444: _$LT$collections..vec..Vec$LT$T$GT$$GT$::reserve::hc7aa5672d2bb7317 (vec.rs:428)
==519608== by 0x1E3A9A: _$LT$collections..vec..Vec$LT$T$GT$$GT$::extend_from_slice::h9159aeb8950ac6c4 (vec.rs:1092)
==519608== by 0x29D723: preserve::keystore::KeyStore::encrypt_block::ha8572e3a33ee169d (keystore.rs:296)
==519608== by 0x27D0D2: preserve::block::BlockStore::new_block_from_plaintext::he9712b1bdd6dc8a6 (block.rs:32)
==519608== by 0x28A762: preserve::cmds::create::read_file_inner::h7ce31670724883c8 (mod.rs:692)
==519608== by 0x288BE7: preserve::cmds::create::read_file::heef76f6725399fa9 (mod.rs:590)
==519608== Address 0xa7de90 is not stack'd, malloc'd or (recently) free'd
==519608==
==519608== Invalid read of size 8
==519608== at 0x617E5E: arena_dalloc_bin_locked_impl.isra.39 (in /home/ubuntu/preserve)
==519608== by 0x63217E: je_tcache_bin_flush_small (in /home/ubuntu/preserve)
==519608== by 0x61A425: je_arena_ralloc (in /home/ubuntu/preserve)
==519608== by 0x610560: rallocx (in /home/ubuntu/preserve)
==519608== by 0x221721: alloc::heap::reallocate::hb9d7c449a6f8a882 (heap.rs:79)
==519608== by 0x1FFD36: _$LT$alloc..raw_vec..RawVec$LT$T$GT$$GT$::reserve::hdc9c2318f1e1dd6e (raw_vec.rs:427)
==519608== by 0x1E6444: _$LT$collections..vec..Vec$LT$T$GT$$GT$::reserve::hc7aa5672d2bb7317 (vec.rs:428)
==519608== by 0x1E3A9A: _$LT$collections..vec..Vec$LT$T$GT$$GT$::extend_from_slice::h9159aeb8950ac6c4 (vec.rs:1092)
==519608== by 0x29D723: preserve::keystore::KeyStore::encrypt_block::ha8572e3a33ee169d (keystore.rs:296)
==519608== by 0x27D0D2: preserve::block::BlockStore::new_block_from_plaintext::he9712b1bdd6dc8a6 (block.rs:32)
==519608== by 0x28A762: preserve::cmds::create::read_file_inner::h7ce31670724883c8 (mod.rs:692)
==519608== by 0x288BE7: preserve::cmds::create::read_file::heef76f6725399fa9 (mod.rs:590)
==519608== Address 0x7805d0a4f058 is not stack'd, malloc'd or (recently) free'd
==519608==
==519608==
==519608== Process terminating with default action of signal 11 (SIGSEGV)
==519608== Access not within mapped region at address 0x7805D0A4F058
==519608== at 0x617E5E: arena_dalloc_bin_locked_impl.isra.39 (in /home/ubuntu/preserve)
==519608== by 0x63217E: je_tcache_bin_flush_small (in /home/ubuntu/preserve)
==519608== by 0x61A425: je_arena_ralloc (in /home/ubuntu/preserve)
==519608== by 0x610560: rallocx (in /home/ubuntu/preserve)
==519608== by 0x221721: alloc::heap::reallocate::hb9d7c449a6f8a882 (heap.rs:79)
==519608== by 0x1FFD36: _$LT$alloc..raw_vec..RawVec$LT$T$GT$$GT$::reserve::hdc9c2318f1e1dd6e (raw_vec.rs:427)
==519608== by 0x1E6444: _$LT$collections..vec..Vec$LT$T$GT$$GT$::reserve::hc7aa5672d2bb7317 (vec.rs:428)
==519608== by 0x1E3A9A: _$LT$collections..vec..Vec$LT$T$GT$$GT$::extend_from_slice::h9159aeb8950ac6c4 (vec.rs:1092)
==519608== by 0x29D723: preserve::keystore::KeyStore::encrypt_block::ha8572e3a33ee169d (keystore.rs:296)
==519608== by 0x27D0D2: preserve::block::BlockStore::new_block_from_plaintext::he9712b1bdd6dc8a6 (block.rs:32)
==519608== by 0x28A762: preserve::cmds::create::read_file_inner::h7ce31670724883c8 (mod.rs:692)
==519608== by 0x288BE7: preserve::cmds::create::read_file::heef76f6725399fa9 (mod.rs:590)
==519608== If you believe this happened as a result of a stack
==519608== overflow in your program's main thread (unlikely but
==519608== possible), you can try to increase the size of the
==519608== main thread stack using the --main-stacksize= flag.
==519608== The main thread stack size used in this run was 8388608.
==519608== Thread 2 log:
==519608== Invalid read of size 8
==519608== at 0x617DDD: arena_dalloc_bin_locked_impl.isra.39 (in /home/ubuntu/preserve)
==519608== by 0x61917C: je_arena_dalloc_small (in /home/ubuntu/preserve)
==519608== by 0xF8C07B7: __libc_freeres (in /lib/x86_64-linux-gnu/libc-2.23.so)
==519608== by 0x4A2868C: _vgnU_freeres (in /usr/lib/valgrind/vgpreload_core-amd64-linux.so)
==519608== Address 0xa7de90 is not stack'd, malloc'd or (recently) free'd
==519608==
==519608==
==519608== Process terminating with default action of signal 11 (SIGSEGV)
==519608== Access not within mapped region at address 0xA7DE90
==519608== at 0x617DDD: arena_dalloc_bin_locked_impl.isra.39 (in /home/ubuntu/preserve)
==519608== by 0x61917C: je_arena_dalloc_small (in /home/ubuntu/preserve)
==519608== by 0xF8C07B7: __libc_freeres (in /lib/x86_64-linux-gnu/libc-2.23.so)
==519608== by 0x4A2868C: _vgnU_freeres (in /usr/lib/valgrind/vgpreload_core-amd64-linux.so)
==519608== If you believe this happened as a result of a stack
==519608== overflow in your program's main thread (unlikely but
==519608== possible), you can try to increase the size of the
==519608== main thread stack using the --main-stacksize= flag.
==519608==
==519608== HEAP SUMMARY:
==519608== in use at exit: 264,229 bytes in 1,020 blocks
==519608== total heap usage: 13,631 allocs, 12,611 frees, 1,047,398 bytes allocated
==519608==
==519608== LEAK SUMMARY:
==519608== definitely lost: 0 bytes in 0 blocks
==519608== indirectly lost: 0 bytes in 0 blocks
==519608== possibly lost: 136 bytes in 2 blocks
==519608== still reachable: 264,093 bytes in 1,018 blocks
==519608== suppressed: 0 bytes in 0 blocks
==519608== Rerun with --leak-check=full to see details of leaked memory
==519608==
==519608== For counts of detected and suppressed errors, rerun with: -v
==519608== ERROR SUMMARY: 4 errors from 3 contexts (suppressed: 0 from 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment