Skip to content

Linux: reflex run with REFLEX_USE_NPM=1 is still alive 30 s after SIGTERM, with a defunct npm run dev and an orphaned node dev server #7485

Closed

Description

@masenf

Severity: MEDIUM, pre-existing on Linux (0.9.12, 0.10.0a1, 0.10.0a2; 3/3 runs each). Residual of #6980 / #6981 / #7266 for the npm path; bun exits cleanly. On macOS arm64 (npm 11.19, Node 26.8) a1 and a2 exit cleanly in <0.3 s while 0.9.12 still hangs, so the remaining Linux failure is process-topology specific (npm → intermediate shell → node, the shell dies, node is orphaned).

Repro: reverify_db_install and thirdparty_a2 clusters (logs/f007-summary.txt): start REFLEX_USE_NPM=1 reflex run in a non-TTY process group, send SIGTERM to the CLI only, wait 30 s, list the group — the CLI, a defunct npm run dev and a listening node process remain. The frontend stop in reflex/reflex.py ~L466-472 terminates the direct child only; killing the process group (or using start_new_session + os.killpg) for the npm path would match bun.

Evidence: findings F-007 (10-06) and the 10-07 re-verification row in FINDINGS.md; macOS results in macos_lifecycle/.

Activity

  1. added theissue type on Oct 7, 2026
  2. linear-code commented on Oct 7, 2026

    @linear-code
  3. added
    release-train
    on Nov 11, 2026
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

    release-train

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions