Skip to content

Fatal error due to unhandled EINTR during waitpid  #837

Open
@maleadt

Description

@maleadt

Running juliaup under lldb (on macOS) I encountered a crash due to waitpid returning an EINTR:

"name" = "Juliaup launcher"
"operating_system" = "Mac OS 14.3.1 [64-bit]"
"crate_version" = "1.14.5"
"explanation" = """
Panic occurred in file 'src/bin/julialauncher.rs' at line 374
"""
"cause" = "Could not fork (error waiting for child process, EINTR: Interrupted system call)"
"method" = "Panic"
"backtrace" = """

   0: 0x100011444 - julialauncher::run_app::h79c2bd8a18fe7633
   1: 0x100012e68 - julialauncher::main::hffe2305f8438214a
   2: 0x100004e8c - std::sys_common::backtrace::__rust_begin_short_backtrace::h064ba9eb7e9f45ee
   3: 0x100005784 - std::rt::lang_start::h97ea6a095c4b5358
   4: 0x10001509c - _main"""

I haven't looked much into this yet, but it looks similar to golang/go#36644. If relevant, we should install signal handlers differently (setting SA_RESTART), or handle EINTR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions