Skip to content

runtime: defer statement not executed during panicking #43939

Closed
@mdempsky

Description

@mdempsky

This program should run successfully: https://play.golang.org/p/rms3jZGZcAQ

It does run successfully with gccgo, but it fails with cmd/compile. The problem is the deferred function containing "panic(4)" is never executed.

/cc @danscales @randall77

Found with mdempsky/deferfuzz.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions