Skip to content

Main Branch - closing window causes segfault on Linux #355

@johnny-smitherson

Description

@johnny-smitherson

Here is an app

Cargo.toml

dioxus-native = { git = "https://github.com/DioxusLabs/blitz", rev = "4be7733", features = ["prelude"] }

src/bin/main2.rs

fn main() {
    dioxus_native::launch(App)
}

use dioxus_native::prelude::*;

#[component]
fn App()->Element {
    rsx! {
        h1 {
            "Hello"
        }
    }
}

Run it with

 RUST_BACKTRACE=full RUST_LOG=info cargo run --bin main2 

It opens. Then click x on the window. The process segfaults and the shell might hang.

fish: Job 1, 'RUST_BACKTRACE=full RUST_LOG=in…' terminated by signal SIGSEGV (Address boundary error)

Running on Linux hostname 6.19.3-2-cachyos #1 SMP PREEMPT_DYNAMIC Fri, 20 Feb 2026 01:02:58 +0000 x86_64 GNU/Linux - archlinux variant

Here are some core dumps
https://github.com/johnny-smitherson/native-core-dump

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions