Skip to content

Instantly share code, notes, and snippets.

@thc1006
Created March 6, 2026 16:31
Show Gist options
  • Select an option

  • Save thc1006/2bb7392607c524df67ecd24cae98bc67 to your computer and use it in GitHub Desktop.

Select an option

Save thc1006/2bb7392607c524df67ecd24cae98bc67 to your computer and use it in GitHub Desktop.
Claude Code interactive mode exits immediately on kernel 4.18 - diagnostic data
2026-03-06T16:25:56.515Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT
2026-03-06T16:25:56.517Z [DEBUG] MDM settings load completed in 2ms
2026-03-06T16:25:56.530Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT
2026-03-06T16:25:56.530Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /home/leo07010/.claude/settings.local.json
2026-03-06T16:25:56.530Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT
2026-03-06T16:25:56.530Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /etc/claude-code/managed-settings.json
2026-03-06T16:25:56.530Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT
2026-03-06T16:25:56.530Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /etc/claude-code/managed-settings.json
2026-03-06T16:25:56.531Z [DEBUG] CA certs: Config fallback - globalEnv keys: , settingsEnv keys: none
2026-03-06T16:25:56.531Z [DEBUG] [init] configureGlobalMTLS starting
2026-03-06T16:25:56.531Z [DEBUG] [init] configureGlobalMTLS complete
2026-03-06T16:25:56.531Z [DEBUG] [init] configureGlobalAgents starting
2026-03-06T16:25:56.532Z [DEBUG] CA certs: Config fallback - globalEnv keys: , settingsEnv keys: none
2026-03-06T16:25:56.532Z [DEBUG] CA certs: useSystemCA=false, envPath=undefined, configPath=undefined, extraCertsPath=undefined
2026-03-06T16:25:56.532Z [DEBUG] [init] configureGlobalAgents complete
2026-03-06T16:25:56.533Z [DEBUG] Error log sink initialized
2026-03-06T16:25:56.538Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT
2026-03-06T16:25:56.538Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /etc/claude-code/managed-settings.json
2026-03-06T16:25:56.539Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT
2026-03-06T16:25:56.539Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /home/leo07010/.claude/settings.local.json
2026-03-06T16:25:56.539Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT
2026-03-06T16:25:56.539Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /etc/claude-code/managed-settings.json
2026-03-06T16:25:56.539Z [DEBUG] [STARTUP] Loading MCP configs...
2026-03-06T16:25:56.541Z [DEBUG] Git remote URL: null
2026-03-06T16:25:56.541Z [DEBUG] No git remote URL found
2026-03-06T16:25:56.542Z [DEBUG] [ToolSearch:optimistic] mode=tst, ENABLE_TOOL_SEARCH=undefined, result=true
2026-03-06T16:25:56.542Z [DEBUG] [STARTUP] Running setup()...
2026-03-06T16:25:56.544Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT
2026-03-06T16:25:56.544Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /etc/claude-code/managed-settings.json
2026-03-06T16:25:56.545Z [DEBUG] Loading skills from: managed=/etc/claude-code/.claude/skills, user=/home/leo07010/.claude/skills, project=[]
2026-03-06T16:25:56.545Z [DEBUG] Error log sink initialized
2026-03-06T16:25:56.556Z [DEBUG] installed_plugins.json doesn't exist, returning empty V2 object
2026-03-06T16:25:56.556Z [DEBUG] Found 0 plugins (0 enabled, 0 disabled)
2026-03-06T16:25:56.556Z [DEBUG] getPluginSkills: Processing 0 enabled plugins
2026-03-06T16:25:56.556Z [DEBUG] Registered 0 hooks from 0 plugins
2026-03-06T16:25:56.556Z [DEBUG] Total plugin skills loaded: 0
2026-03-06T16:25:56.557Z [DEBUG] Total plugin commands loaded: 0
2026-03-06T16:25:56.560Z [DEBUG] Acquired PID lock for 2.1.70 (PID 124616)
2026-03-06T16:25:56.560Z [DEBUG] Acquired PID lock on running version: /home/leo07010/.local/share/claude/versions/2.1.70
2026-03-06T16:25:56.560Z [DEBUG] Loaded 0 unique skills (0 unconditional, 0 conditional, managed: 0, user: 0, project: 0, additional: 0, legacy commands: 0)
2026-03-06T16:25:56.560Z [DEBUG] getSkills returning: 0 skill dir commands, 0 plugin skills, 5 bundled skills, 0 builtin plugin skills
2026-03-06T16:25:56.562Z [DEBUG] [STARTUP] setup() completed in 20ms
2026-03-06T16:25:56.567Z [DEBUG] [STARTUP] Loading commands and agents...
2026-03-06T16:25:56.568Z [DEBUG] Total plugin agents loaded: 0
2026-03-06T16:25:56.568Z [DEBUG] [STARTUP] Commands and agents loaded in 1ms
2026-03-06T16:25:56.574Z [DEBUG] [STARTUP] Running showSetupScreens()...
2026-03-06T16:25:56.576Z [DEBUG] [keybindings] KeybindingSetup initialized with 104 bindings, 0 warnings
2026-03-06T16:25:56.577Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT
2026-03-06T16:25:56.577Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /home/leo07010/.claude/settings.local.json
2026-03-06T16:25:56.577Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT
2026-03-06T16:25:56.577Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /home/leo07010/.claude/settings.local.json
2026-03-06T16:25:56.578Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT
2026-03-06T16:25:56.578Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /home/leo07010/.claude/settings.local.json
2026-03-06T16:25:56.578Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT
2026-03-06T16:25:56.578Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /home/leo07010/.claude/settings.local.json
2026-03-06T16:25:56.578Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT
2026-03-06T16:25:56.579Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /home/leo07010/.claude/settings.local.json
2026-03-06T16:25:56.579Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT
2026-03-06T16:25:56.579Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /home/leo07010/.claude/settings.local.json
2026-03-06T16:25:56.595Z [DEBUG] [keybindings] Watching for changes to /home/leo07010/.claude/keybindings.json
2026-03-06T16:25:56.614Z [DEBUG] [Claude in Chrome] Extension not found in any browser
2026-03-06T16:26:06.112Z [DEBUG] Cleared CA certificates cache
2026-03-06T16:26:06.112Z [DEBUG] Cleared mTLS configuration cache
2026-03-06T16:26:06.112Z [DEBUG] Cleared proxy agent cache
2026-03-06T16:26:06.113Z [DEBUG] CA certs: Config fallback - globalEnv keys: , settingsEnv keys: none
2026-03-06T16:26:06.113Z [DEBUG] CA certs: useSystemCA=false, envPath=undefined, configPath=undefined, extraCertsPath=undefined
2026-03-06T16:26:06.113Z [DEBUG] Grove: Using fresh cached config
2026-03-06T16:26:06.119Z [DEBUG] Not in a GitHub repository, skipping path mapping update
2026-03-06T16:26:06.119Z [DEBUG] [Perfetto] initializePerfettoTracing called, env value: undefined
2026-03-06T16:26:06.119Z [DEBUG] [3P telemetry] isTelemetryEnabled=false (CLAUDE_CODE_ENABLE_TELEMETRY=undefined)
2026-03-06T16:26:06.437Z [DEBUG] [STARTUP] showSetupScreens() completed in 9863ms
2026-03-06T16:26:06.437Z [DEBUG] [LSP MANAGER] initializeLspServerManager() called
2026-03-06T16:26:06.437Z [DEBUG] [LSP MANAGER] Created manager instance, state=pending
2026-03-06T16:26:06.437Z [DEBUG] [LSP MANAGER] Starting async initialization (generation 1)
2026-03-06T16:26:06.437Z [DEBUG] Starting background startup prefetches
2026-03-06T16:26:06.438Z [DEBUG] [API:request] Creating client, ANTHROPIC_CUSTOM_HEADERS present: false, has Authorization header: false
2026-03-06T16:26:06.438Z [DEBUG] [API:auth] OAuth token check starting
2026-03-06T16:26:06.438Z [DEBUG] Passes: Using fresh cached eligibility data
2026-03-06T16:26:06.440Z [DEBUG] [STARTUP] MCP configs resolved in 18ms (awaited at +9901ms)
2026-03-06T16:26:06.440Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT
2026-03-06T16:26:06.440Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /etc/claude-code/managed-settings.json
2026-03-06T16:26:06.454Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT
2026-03-06T16:26:06.454Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /etc/claude-code/managed-settings.json
2026-03-06T16:26:06.455Z [DEBUG] Total LSP servers loaded: 0
2026-03-06T16:26:06.455Z [DEBUG] [API:auth] OAuth token check complete
2026-03-06T16:26:06.456Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT
2026-03-06T16:26:06.456Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /etc/claude-code/managed-settings.json
2026-03-06T16:26:06.456Z [DEBUG] detectFileEncoding failed for expected reason: ENOENT
2026-03-06T16:26:06.456Z [DEBUG] Broken symlink or missing file encountered for settings.json at path: /etc/claude-code/managed-settings.json
2026-03-06T16:26:06.456Z [DEBUG] Getting matching hook commands for SessionStart with query: startup
2026-03-06T16:26:06.456Z [DEBUG] Found 0 hook matchers in settings
2026-03-06T16:26:06.456Z [DEBUG] Matched 0 unique hooks for query "startup" (0 before deduplication)
2026-03-06T16:26:06.456Z [DEBUG] Initialized versioned plugins system with 0 plugins
2026-03-06T16:26:06.456Z [DEBUG] [LSP SERVER MANAGER] getAllLspServers returned 0 server(s)
2026-03-06T16:26:06.456Z [DEBUG] LSP manager initialized with 0 servers
2026-03-06T16:26:06.458Z [DEBUG] [Reconnection] computeInitialTeamContext: No teammate context set (not a teammate)
2026-03-06T16:26:06.461Z [DEBUG] Writing to temp file: /home/leo07010/.claude.json.tmp.124616.1772814366461
2026-03-06T16:26:06.461Z [DEBUG] Preserving file permissions: 100600
2026-03-06T16:26:06.463Z [DEBUG] Temp file written successfully, size: 18768 bytes
2026-03-06T16:26:06.463Z [DEBUG] Applied original permissions to temp file
2026-03-06T16:26:06.463Z [DEBUG] Renaming /home/leo07010/.claude.json.tmp.124616.1772814366461 to /home/leo07010/.claude.json
2026-03-06T16:26:06.463Z [DEBUG] File /home/leo07010/.claude.json written atomically
2026-03-06T16:26:06.464Z [DEBUG] LSP server manager initialized successfully
2026-03-06T16:26:06.464Z [DEBUG] LSP notification handlers registered successfully for all 0 server(s)
2026-03-06T16:26:06.673Z [DEBUG] [keybindings] KeybindingSetup initialized with 104 bindings, 0 warnings
2026-03-06T16:26:06.695Z [DEBUG] [REPL:mount] REPL mounted, disabled=false
2026-03-06T16:26:06.696Z [DEBUG] Official marketplace auto-install skipped: already_attempted
2026-03-06T16:26:06.696Z [DEBUG] performStartupChecks called
2026-03-06T16:26:06.696Z [DEBUG] Starting background plugin installations
2026-03-06T16:26:06.697Z [DEBUG] No CLAUDE.md/rules files found
2026-03-06T16:26:06.698Z [DEBUG] performBackgroundPluginInstallations called
2026-03-06T16:26:06.701Z [DEBUG] [claudeai-mcp] Checking gate (cached)...
2026-03-06T16:26:06.701Z [DEBUG] [claudeai-mcp] Gate returned: true
2026-03-06T16:26:06.701Z [DEBUG] [claudeai-mcp] Fetching from https://api.anthropic.com/v1/mcp_servers?limit=1000
2026-03-06T16:26:06.711Z [DEBUG] Security messages are fresh (<1h old), skipping fetch
2026-03-06T16:26:06.712Z [DEBUG] Watching for changes in setting files /home/leo07010/.claude/settings.json, /home/leo07010/.claude/settings.local.json...
2026-03-06T16:26:06.712Z [DEBUG] Org fast mode: disabled (extra_usage_disabled)
2026-03-06T16:26:06.724Z [DEBUG] Loaded plugins - Enabled: 0, Disabled: 0, Commands: 0, Agents: 0, Errors: 0
2026-03-06T16:26:06.730Z [DEBUG] Fast mode unavailable: Fast mode requires extra usage billing · /extra-usage to enable
2026-03-06T16:26:06.739Z [DEBUG] AutoUpdaterWrapper: Installation type: native
2026-03-06T16:26:06.742Z [DEBUG] Fast mode unavailable: Fast mode requires extra usage billing · /extra-usage to enable
2026-03-06T16:26:06.885Z [DEBUG] Ripgrep first use test: PASSED (mode=builtin, path=/home/leo07010/.local/share/claude/versions/2.1.70)
2026-03-06T16:26:06.888Z [DEBUG] rg error (signal=null, code=2, stderr: rg: /home/leo07010/.claude/plugins/cache: IO error for operation on /home/leo07010/.claude/plugins/cache: No such file or directory (os error 2)
), 0 results
2026-03-06T16:26:06.971Z [DEBUG] [claudeai-mcp] Fetched 2 servers
2026-03-06T16:26:06.973Z [DEBUG] CLAUDE_CODE_WEBSOCKET_AUTH_FILE_DESCRIPTOR not set, no file descriptor token available
2026-03-06T16:26:06.974Z [DEBUG] MCP server "claude.ai Gmail": Initializing claude.ai proxy transport for server mcpsrv_01Y5jFUFHazu1YYrW2f2L1nA
2026-03-06T16:26:06.974Z [DEBUG] MCP server "claude.ai Gmail": Using claude.ai proxy at https://mcp-proxy.anthropic.com/v1/mcp/mcpsrv_01Y5jFUFHazu1YYrW2f2L1nA
2026-03-06T16:26:06.974Z [DEBUG] MCP server "claude.ai Gmail": claude.ai proxy transport created successfully
2026-03-06T16:26:06.978Z [DEBUG] MCP server "claude.ai Gmail": Starting connection with timeout of 30000ms
2026-03-06T16:26:06.978Z [DEBUG] MCP server "claude.ai Google Calendar": Initializing claude.ai proxy transport for server mcpsrv_017n3Bj6aabgxe5yehoimGXh
2026-03-06T16:26:06.978Z [DEBUG] MCP server "claude.ai Google Calendar": Using claude.ai proxy at https://mcp-proxy.anthropic.com/v1/mcp/mcpsrv_017n3Bj6aabgxe5yehoimGXh
2026-03-06T16:26:06.978Z [DEBUG] MCP server "claude.ai Google Calendar": claude.ai proxy transport created successfully
2026-03-06T16:26:06.979Z [DEBUG] MCP server "claude.ai Google Calendar": Starting connection with timeout of 30000ms
2026-03-06T16:26:06.982Z [DEBUG] Fast mode unavailable: Fast mode requires extra usage billing · /extra-usage to enable
2026-03-06T16:26:07.061Z [DEBUG] Checking for native installer update to version 2.1.70
2026-03-06T16:26:07.062Z [DEBUG] Found 2.1.70 at /home/leo07010/.local/bin/claude, skipping install
2026-03-06T16:26:07.064Z [DEBUG] Fast mode unavailable: Fast mode requires extra usage billing · /extra-usage to enable
2026-03-06T16:26:07.068Z [DEBUG] Released PID lock for 2.1.70
2026-03-06T16:26:07.069Z [DEBUG] Writing to temp file: /home/leo07010/.claude.json.tmp.124616.1772814367069
2026-03-06T16:26:07.069Z [DEBUG] Preserving file permissions: 100600
2026-03-06T16:26:07.072Z [DEBUG] Temp file written successfully, size: 18768 bytes
2026-03-06T16:26:07.072Z [DEBUG] Applied original permissions to temp file
2026-03-06T16:26:07.072Z [DEBUG] Renaming /home/leo07010/.claude.json.tmp.124616.1772814367069 to /home/leo07010/.claude.json
2026-03-06T16:26:07.072Z [DEBUG] File /home/leo07010/.claude.json written atomically
2026-03-06T16:26:07.073Z [DEBUG] Writing to temp file: /home/leo07010/.claude.json.tmp.124616.1772814367073
2026-03-06T16:26:07.073Z [DEBUG] Preserving file permissions: 100600
2026-03-06T16:26:07.107Z [DEBUG] Temp file written successfully, size: 18766 bytes
2026-03-06T16:26:07.107Z [DEBUG] Applied original permissions to temp file
2026-03-06T16:26:07.107Z [DEBUG] Renaming /home/leo07010/.claude.json.tmp.124616.1772814367073 to /home/leo07010/.claude.json
2026-03-06T16:26:07.108Z [DEBUG] File /home/leo07010/.claude.json written atomically
=== OS ===
Linux dwams1ctr1770581401314-s2x52 4.18.0-305.131.1.el8_4.x86_64 #1 SMP Fri May 17 03:52:29 EDT 2024 x86_64 x86_64 x86_64 GNU/Linux
=== OS Release ===
PRETTY_NAME="Ubuntu 24.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.3 LTS (Noble Numbat)"
VERSION_CODENAME=noble
=== Claude Version ===
2.1.70 (Claude Code)
=== Memory ===
total used free shared buff/cache available
Mem: 754Gi 71Gi 409Gi 4.1Gi 284Gi 682Gi
Swap: 0B 0B 0B
=== io_uring test ===
io_uring_setup: FAILED (errno=38, Function not implemented)
=== /etc/profile.d/init.sh ===
#!/bin/bash
tmpHome=$HOME
# echo "init: \$HOME :${HOME}"
echo "init: Setting environment variables"
sudo cp /proc/1/environ /tmp/environ
sudo chmod 0777 /tmp/environ
while IFS= read -r -d '' line ; do declare -x "$line" ;done < /tmp/environ
sudo rm -f /tmp/environ
export HOME=$tmpHome
export BAZELRC=$HOME/.bazelrc
export HISTSIZE=10000
export HISTFILESIZE=10000
export HISTTIMEFORMAT='%F %T '
=== Env var count ===
20

Claude Code Interactive Mode Diagnostic Report

Summary

Claude Code interactive mode starts, renders the TUI welcome screen with REPL prompt, then immediately exits with code 0. Non-interactive mode (claude -p) works correctly.

Environment

  • Claude Code: v2.1.70 (also reproduced on v2.1.58)
  • Binary type: Native Bun binary (self-contained ELF)
  • OS: Ubuntu 24.04.3 LTS (container) on Kubernetes
  • Host Kernel: 4.18.0-305.131.1.el8_4.x86_64 (RHEL/CentOS 8 host)
  • Platform: TWCC (Taiwan Computing Cloud)
  • Memory: 754GB total (not an OOM issue)
  • glibc: 2.39
  • TTY: Confirmed /dev/pts/X via tmux, stty size returns valid 36x120

Observed Behavior

  1. claude --version — works
  2. claude -p "hello" — works, returns response
  3. claude (interactive) — trust prompt appears, stays alive waiting for input
  4. After confirming trust — welcome screen renders with prompt, then process exits with code 0 within ~1 second
  5. No error message, no crash, clean exit

Diagnostic Evidence

1. io_uring syscall test

io_uring_setup (syscall 425): FAILED (errno=38, Function not implemented / ENOSYS)

Kernel 4.18 has __ia32_sys_io_uring_* stubs in /proc/kallsyms but they return ENOSYS. io_uring was formally introduced in kernel 5.1.

2. strace analysis (key excerpts)

Main process (PID 119114):

119114 --- SIGPWR {si_signo=SIGPWR, si_code=SI_TKILL, si_pid=119114, si_uid=34336} ---
119114 --- SIGPWR {si_signo=SIGPWR, si_code=SI_TKILL, si_pid=119114, si_uid=34336} ---
119114 epoll_ctl(44, EPOLL_CTL_DEL, 54, NULL) = 0     # starts removing all fd watchers
119114 epoll_ctl(44, EPOLL_CTL_DEL, 52, NULL) = 0
119114 epoll_ctl(44, EPOLL_CTL_DEL, 50, NULL) = 0
119114 epoll_ctl(44, EPOLL_CTL_DEL, 49, NULL) = 0
119114 epoll_ctl(44, EPOLL_CTL_DEL, 47, NULL) = 0
119114 exit_group(0)                                    # clean exit

Key observations:

  • epoll_wait called only 1 time — event loop runs a single iteration then drains
  • io_uring syscalls attempted 6 times — all return ENOSYS, Bun falls back to epoll
  • Main process never reads from fd 0 (stdin) — stdin watcher not registered
  • SIGPWR sent by process to itself (Bun internal shutdown signal)
  • All child threads exit cleanly before main process

3. Node.js comparison test

A simple Node.js script on the same system keeps the event loop alive with stdin watching:

process.stdin.setRawMode(true);
process.stdin.resume();
process.stdin.on("data", (data) => { /* works */ });
setTimeout(() => { console.log("still alive!"); }, 5000); // fires correctly

This confirms the kernel/PTY supports stdin event watching. The issue is specific to the Bun runtime.

4. Debug log (from ~/.claude/debug/)

After trust confirmation:

[STARTUP] showSetupScreens() completed in 40344ms
[STARTUP] MCP configs resolved in 17ms
[REPL:mount] REPL mounted, disabled=false
performStartupChecks called
AutoUpdaterWrapper: Installation type: native
Ripgrep first use test: PASSED

REPL mounts successfully, startup checks pass, then the log ends — no error, no shutdown message.

5. What was ruled out

  • TTY/PTY issues: Confirmed valid PTY via tmux, tty returns /dev/pts/X
  • Terminal size: stty size returns valid dimensions (36 120)
  • Auth/OAuth: Token valid, claude -p works
  • VS Code shell integration: Reproduced in plain tmux with no VS Code
  • Environment variables: Reproduced with env -i clean environment
  • Auto-update: Disabled with CLAUDE_CODE_DISABLE_AUTOUPDATE=1, same result
  • Version: Reproduced on both v2.1.58 and v2.1.70
  • expect wrapper: Even with expect providing a separate PTY, same exit behavior
  • BUN_FEATURE_FLAG_FORCE_WAITER_THREAD=1: No effect
  • npm/Node.js not installed: Installed Node.js 22 + npm, no change
  • seccomp io_uring blocking: Container doesn't allow PR_SET_SECCOMP

Hypothesis

The Bun runtime's event loop does not properly register/maintain stdin watchers when io_uring_setup returns ENOSYS on kernels < 5.1. The fallback to epoll appears incomplete — epoll_wait runs only once before the event loop determines there are no active handles and drains, causing the process to exit cleanly.

The trust prompt stays alive because it uses a synchronous/blocking input mechanism, while the REPL uses async stdin watching that depends on the event loop.

Requested Fix

Support for interactive mode on Linux kernels where io_uring is not available (returns ENOSYS), particularly kernel 4.18 which is still common in enterprise/HPC Kubernetes environments (RHEL/CentOS 8 hosts).

112280 --- SIGPWR {si_signo=SIGPWR, si_code=SI_TKILL, si_pid=112280, si_uid=34336} ---
112280 --- SIGPWR {si_signo=SIGPWR, si_code=SI_TKILL, si_pid=112280, si_uid=34336} ---
112280 --- SIGPWR {si_signo=SIGPWR, si_code=SI_TKILL, si_pid=112280, si_uid=34336} ---
112280 --- SIGPWR {si_signo=SIGPWR, si_code=SI_TKILL, si_pid=112280, si_uid=34336} ---
112280 --- SIGPWR {si_signo=SIGPWR, si_code=SI_TKILL, si_pid=112280, si_uid=34336} ---
112280 --- SIGPWR {si_signo=SIGPWR, si_code=SI_TKILL, si_pid=112280, si_uid=34336} ---
112280 --- SIGPWR {si_signo=SIGPWR, si_code=SI_TKILL, si_pid=112280, si_uid=34336} ---
112280 --- SIGPWR {si_signo=SIGPWR, si_code=SI_TKILL, si_pid=112280, si_uid=34336} ---
112280 --- SIGPWR {si_signo=SIGPWR, si_code=SI_TKILL, si_pid=112280, si_uid=34336} ---
112280 --- SIGPWR {si_signo=SIGPWR, si_code=SI_TKILL, si_pid=112280, si_uid=34336} ---
112280 --- SIGPWR {si_signo=SIGPWR, si_code=SI_TKILL, si_pid=112280, si_uid=34336} ---
112280 --- SIGPWR {si_signo=SIGPWR, si_code=SI_TKILL, si_pid=112280, si_uid=34336} ---
112280 --- SIGPWR {si_signo=SIGPWR, si_code=SI_TKILL, si_pid=112280, si_uid=34336} ---
112280 --- SIGPWR {si_signo=SIGPWR, si_code=SI_TKILL, si_pid=112280, si_uid=34336} ---
112280 --- SIGPWR {si_signo=SIGPWR, si_code=SI_TKILL, si_pid=112280, si_uid=34336} ---
112580 rt_sigaction(SIGCHLD, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fbcab882330}, NULL, 8) = 0
112580 rt_sigaction(SIGPWR, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fbcab882330}, NULL, 8) = 0
112581 rt_sigaction(SIGCHLD, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fbcab882330}, NULL, 8) = 0
112581 rt_sigaction(SIGPWR, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fbcab882330}, NULL, 8) = 0
112582 rt_sigaction(SIGCHLD, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fbcab882330}, NULL, 8) = 0
112582 rt_sigaction(SIGPWR, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fbcab882330}, NULL, 8) = 0
112583 rt_sigaction(SIGCHLD, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fbcab882330}, NULL, 8) = 0
112583 rt_sigaction(SIGPWR, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7fbcab882330}, NULL, 8) = 0
112583 rt_sigaction(SIGCHLD, {sa_handler=0x55c1e59bbcd0, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7fafeb975330}, NULL, 8) = 0
112585 read(0, <unfinished ...>
112584 rt_sigaction(SIGPWR, {sa_handler=0x555f62c12a30, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7f23d869e330}, NULL, 8) = 0
112586 read(0, <unfinished ...>
112584 rt_sigaction(SIGCHLD, {sa_handler=0x555f62c12a30, sa_mask=~[RTMIN RT_1], sa_flags=SA_RESTORER, sa_restorer=0x7f23d869e330}, NULL, 8) = 0
112280 --- SIGPWR {si_signo=SIGPWR, si_code=SI_TKILL, si_pid=112280, si_uid=34336} ---
112280 --- SIGPWR {si_signo=SIGPWR, si_code=SI_TKILL, si_pid=112280, si_uid=34336} ---
112580 rt_sigaction(SIGPWR, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
112580 rt_sigaction(SIGPWR, {sa_handler=0x4f4ab70, sa_mask=[PWR], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7fdcaf47a330}, NULL, 8) = 0
112581 rt_sigaction(SIGPWR, NULL, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
112581 rt_sigaction(SIGPWR, {sa_handler=0x4f4ab70, sa_mask=[PWR], sa_flags=SA_RESTORER|SA_RESTART|SA_SIGINFO, sa_restorer=0x7f0d45d27330}, <unfinished ...>
112585 read(0, "/terminal/common/scripts/shellIn"..., 94208) = 4096
112585 read(0, <unfinished ...>
112586 read(0, <unfinished ...>
112585 read(0, "", 90112) = 0
112586 read(0, "", 94208) = 0
112584 exit_group(0 <unfinished ...>
112585 exit_group(0 <unfinished ...>
112584 <... exit_group resumed>) = ?
112585 <... exit_group resumed>) = ?
112586 exit_group(0 <unfinished ...>
112586 <... exit_group resumed>) = ?
112583 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=112585, si_uid=34336, si_status=0, si_utime=0, si_stime=0} ---
112583 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=112586, si_uid=34336, si_status=0, si_utime=0, si_stime=0} ---
112583 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=112584, si_uid=34336, si_status=0, si_utime=0, si_stime=1 /* 0.01 s */} ---
112583 exit_group(0) = ?
112280 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=112583, si_uid=34336, si_status=0, si_utime=0, si_stime=0} ---
112582 exit_group(1) = ?
112280 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=112582, si_uid=34336, si_status=1, si_utime=0, si_stime=2 /* 0.02 s */} ---
112280 --- SIGPWR {si_signo=SIGPWR, si_code=SI_TKILL, si_pid=112280, si_uid=34336} ---
112280 --- SIGPWR {si_signo=SIGPWR, si_code=SI_TKILL, si_pid=112280, si_uid=34336} ---
112580 exit_group(0) = ?
112581 exit_group(2 <unfinished ...>
112581 <... exit_group resumed>) = ?
112280 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=112580, si_uid=34336, si_status=0, si_utime=6 /* 0.06 s */, si_stime=13 /* 0.13 s */} ---
112280 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=112581, si_uid=34336, si_status=2, si_utime=6 /* 0.06 s */, si_stime=12 /* 0.12 s */} ---
112280 exit_group(0) = ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment