Skip to content

Encountered a Stack Overflow Crash on stable compiled rust #105158

Open
@d3rpp

Description

@d3rpp

I tried this code:

https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=3bc6e2fae27c0a45ec2fa59a087a291b

I expected to see this happen:
Print out a vector of dynamic trait objects

Instead, this happened:
a Stack Overflow error on the compiled output

Meta

On the Rust Playground, using Debug, Stable on the 2nd of December 2022.

Backtrace

There isn't one here

thread 'main' has overflowed its stack
fatal runtime error: stack overflow
timeout: the monitored command dumped core
/playground/tools/entrypoint.sh: line 11:     7 Aborted                 timeout --signal=KILL ${timeout} "$@"

This is the error produced by the playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsC-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions