Skip to content

SIGILL in byond #57941

Closed
Closed
@Mark-Simulacrum

Description

@Mark-Simulacrum
Member

I suspect this is actually just UB -- https://github.com/PJB3005/byond-rs/blob/master/src/call.rs#L77-L79 looks like it's storing pointers to freed memory -- but I could be misinterpreting, so filing an issue for further investigation.

https://crater-reports.s3.amazonaws.com/beta-1.33-1/beta-2019-01-22/reg/byond-0.3.2/log.txt

cc @PJB3005

Activity

PJB3005

PJB3005 commented on Jan 28, 2019

@PJB3005

I've been cc'd on here before for UB. Isn't the issue that I'm testing panics across extern C boundaries or did something else break this time? I've been too lazy to fix the tests.

I don't see how the code linked has use after free, the cstrs are stored in a vec so they're freed only after the callback is finished. I could be wrong though.

Mark-Simulacrum

Mark-Simulacrum commented on Jan 28, 2019

@Mark-Simulacrum
MemberAuthor

Ah, yes, I missed the cstr vec. If there's a panic across an ABI boundary then that would be the cause here most likely. Since that change in behavior is expected, I'm closing this.

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

    T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @Mark-Simulacrum@PJB3005

        Issue actions

          SIGILL in byond · Issue #57941 · rust-lang/rust