Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when getting key-value pairs during iteration #8

Open
vmosone opened this issue Nov 7, 2018 · 0 comments
Open

Crash when getting key-value pairs during iteration #8

vmosone opened this issue Nov 7, 2018 · 0 comments

Comments

@vmosone
Copy link

vmosone commented Nov 7, 2018

OS: windows 8.1
Rust toolchain: nightly-1.29.0-x86_64-pc-windows-gnu
Clang:
clang version 5.0.0 (tags/RELEASE_500/final)
Target: x86_64-w64-windows-gnu
Thread model: posix
unqlite.rs: 1.4.1

gdb trace info:
...
warning: HEAP[test_db.exe]:
warning: Invalid address specified to RtlFreeHeap( 0000000000AC0000, 0000000000024830 )
Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007ff8b7413af2 in ntdll!RtlpNtMakeTemporaryKey ()
from C:\WINDOWS\SYSTEM32\ntdll.dll
(gdb) bt
bt
#0 0x00007ff8b7413af2 in ntdll!RtlpNtMakeTemporaryKey ()
from C:\WINDOWS\SYSTEM32\ntdll.dll
#1 0x00007ff8b73cd876 in ntdll!memset () from C:\WINDOWS\SYSTEM32\ntdll.dll
#2 0x00007ff8b7412984 in ntdll!RtlpNtMakeTemporaryKey ()
from C:\WINDOWS\SYSTEM32\ntdll.dll
#3 0x00007ff8b73ca8d5 in ntdll!memset () from C:\WINDOWS\SYSTEM32\ntdll.dll
#4 0x00007ff8b7355a38 in ntdll!RtlFreeHeap ()
from C:\WINDOWS\SYSTEM32\ntdll.dll
#5 0x0000000000419282 in alloc::alloc::dealloc (
ptr=0x24830 "SALDKFJ;098787t5k,.mcv,xmc.ckpo&^%IOU_)K<jlknksafd;alkmds7t6r57k()&^%$#@$%^&<mhlsmv,s.mdf;lasdfya967sdjl;867546KHHGLK;", '\253' <repeats 16 times>, "\356\376\356\376\356\376\000", layout=...)
at C:\projects\rust\src\liballoc/alloc.rs:80
#6 0x000000000041906b in <alloc::alloc::Global as core::alloc::Alloc>::dealloc (self=0x23fb60, ptr=..., layout=...)
at C:\projects\rust\src\liballoc/alloc.rs:128
#7 0x000000000041ad3a in <alloc::raw_vec::RawVec<T, A>>::dealloc_buffer (
self=0x23fb60) at C:\projects\rust\src\liballoc/raw_vec.rs:720
#8 0x000000000041c813 in <alloc::raw_vec::RawVec<T, A> as core::ops::drop::Drop>::drop (self=0x23fb60) at C:\projects\rust\src\liballoc/raw_vec.rs:729
#9 0x0000000000403ab3 in core::ptr::drop_in_place ()
at C:\projects\rust\src\libcore/ptr.rs:59
#10 0x0000000000403b02 in core::ptr::drop_in_place ()
at C:\projects\rust\src\libcore/ptr.rs:59
#11 0x0000000000406a16 in test_db::main () at src\main.rs:38
(gdb)

#0  0x00007ff8b7413af2 in ntdll!RtlpNtMakeTemporaryKey ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#1  0x00007ff8b73cd876 in ntdll!memset () from C:\WINDOWS\SYSTEM32\ntdll.dll
#2  0x00007ff8b7412984 in ntdll!RtlpNtMakeTemporaryKey () from C:\WINDOWS\SYSTEM32\ntdll.dll
#3  0x00007ff8b73ca8d5 in ntdll!memset () from C:\WINDOWS\SYSTEM32\ntdll.dll
#4  0x00007ff8b7355a38 in ntdll!RtlFreeHeap ()
   from C:\WINDOWS\SYSTEM32\ntdll.dll
#5  0x0000000000419282 in alloc::alloc::dealloc (
    ptr=0x24830 "SALDKFJ;098787t5k,.mcv,xmc.ckpo&*^%*IOU_)K<jlknksafd;alkmds7t6r57k()*&^%$#@$%^&*<mhlsmv,s.mdf;lasdfya967sdjl;867546KHHGLK;", '\253' <repeats 16 times>, "\356\376\356\376\356\376\000", layout=...)
    at C:\projects\rust\src\liballoc/alloc.rs:80
#6  0x000000000041906b in <alloc::alloc::Global as core::alloc::Alloc>::dealloc (self=0x23fb60, ptr=..., layout=...)
    at C:\projects\rust\src\liballoc/alloc.rs:128
#7  0x000000000041ad3a in <alloc::raw_vec::RawVec<T, A>>::dealloc_buffer (self=0x23fb60) at C:\projects\rust\src\liballoc/raw_vec.rs:720
#8  0x000000000041c813 in <alloc::raw_vec::RawVec<T, A> as core::ops::drop::Drop>::drop (self=0x23fb60) at C:\projects\rust\src\liballoc/raw_vec.rs:729
#9  0x0000000000403ab3 in core::ptr::drop_in_place ()
    at C:\projects\rust\src\libcore/ptr.rs:59
#10 0x0000000000403b02 in core::ptr::drop_in_place ()
    at C:\projects\rust\src\libcore/ptr.rs:59
#11 0x0000000000406a16 in test_db::main () at src\main.rs:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant