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

Debug info for panic in FFI #304

Closed
Closed
@antoyo

Description

@antoyo

Hi.
I had a lot of trouble to debug this issue, so instead of just having "Uncaught panic, exiting", it would be nice to have more info maybe the stack trace, to be able to debug.
Thanks.

Activity

EPashkin

EPashkin commented on Apr 2, 2018

@EPashkin
Member
antoyo

antoyo commented on Apr 2, 2018

@antoyo
MemberAuthor

I know this message comes from this code, but perhaps gir could generate code using catch_unwind() or something.
Or perhaps in the code you mentioned we should get the stack trace in the condition using libbacktrace.

EPashkin

EPashkin commented on Apr 2, 2018

@EPashkin
Member

Need of CallbackGuard will be removed in 1-2 rust stable release,
as rust will be do it yourself, then I hope RUST_BACKTRACE will works as usual.
See end of #250.

EPashkin

EPashkin commented on Apr 2, 2018

@EPashkin
Member

@antoyo As you have panic test case, can you check that panic will be caught without this line https://github.com/gtk-rs/gio/blob/master/src/auto/socket_listener.rs#L99 and that RUST_BACKTRACE=1 works as usual ?

EPashkin

EPashkin commented on Apr 2, 2018

@EPashkin
Member

I mean that unwinding already landed in last stable (second time), we just waiting to be sure that it will be not reverted again.

antoyo

antoyo commented on Apr 2, 2018

@antoyo
MemberAuthor

Yeah, I see the backtrace on Rust nightly.

EPashkin

EPashkin commented on Apr 2, 2018

@EPashkin
Member

Thanks for confirming, so we just wait for stable 1.26.0 and remove CallbackGuard again

sdroege

sdroege commented on Apr 2, 2018

@sdroege
Member

I mean that unwinding already landed in last stable (second time)

It was not ready for 1.25 unfortunately

EPashkin

EPashkin commented on Apr 2, 2018

@EPashkin
Member

Then we better wait for stable 1.27.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @sdroege@EPashkin@antoyo

        Issue actions

          Debug info for panic in FFI · Issue #304 · gtk-rs/glib