Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Memory corruption #47

Open
vchekan opened this issue May 3, 2017 · 0 comments
Open

Memory corruption #47

vchekan opened this issue May 3, 2017 · 0 comments

Comments

@vchekan
Copy link

vchekan commented May 3, 2017

My application started exiting with status code 1 and I think one time I've seen signal 11 too.
Investigation narrowed it down to this line:

 let mut local = $wrapper{
    origin: Box::new(origin),
    ptr: ::std::mem::uninitialized(),

I've replaced uninitialized() with zeroed() and my app is working again:
vchekan@21f25e6

I do not understand qml low level api and I am not sure what is going on with pointer manipulations in $wrapper::with_no_props() and QmlObject::new() so i do not consider it a proper fix, so if somebody has insight, please share.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant