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

Memory corruption #47

@vchekan

Description

@vchekan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions