Skip to content

Invalid argument to process_mrelease #354

@james-pre

Description

@james-pre

I recently encountered an oom situation in which earlyoom itself failed, requiring a poweroff to fix. System logs prior to the poweroff reveal that earlyoom invoked process_mrelease incorrectly. I've omitted the command line of the process due to its length, but I wouldn't expect it to cause the issue:

Nov 12 17:08:27 earlyoom[1295]: mem avail:   888 of 55597 MiB ( 1.60%), swap free:    0 of 8191 MiB ( 0.00%)
Nov 12 17:08:27 earlyoom[1295]: low memory! at or below SIGTERM limits: mem  1.66%, swap 10.00%
Nov 12 17:08:27 earlyoom[1295]: sending SIGTERM to process 906175 uid 1000 "java": oom_score 1170, VmRSS 43912 MiB, cmdline "..."
Nov 12 17:08:27 earlyoom[1295]: kill_release: pid=906175: process_mrelease pidfd=4 failed: Invalid argument
Nov 12 17:08:37 earlyoom[1295]: process 906175 did not exit
Nov 12 17:08:37 earlyoom[1295]: kill failed: Timer expired
Nov 12 17:08:37 earlyoom[1295]: mem avail:   896 of 55599 MiB ( 1.61%), swap free:    0 of 8191 MiB ( 0.00%)
Nov 12 17:08:37 earlyoom[1295]: low memory! at or below SIGTERM limits: mem  1.66%, swap 10.00%
Nov 12 17:08:37 earlyoom[1295]: sending SIGTERM to process 906175 uid 1000 "java": oom_score 1170, VmRSS 43912 MiB, cmdline "..."
Nov 12 17:08:37 earlyoom[1295]: kill_release: pid=906175: process_mrelease pidfd=4 failed: Invalid argument
Nov 12 17:08:47 earlyoom[1295]: process 906175 did not exit
Nov 12 17:08:47 earlyoom[1295]: kill failed: Timer expired
Nov 12 17:08:47 earlyoom[1295]: mem avail:   892 of 55595 MiB ( 1.61%), swap free:    0 of 8191 MiB ( 0.00%)
Nov 12 17:08:47 earlyoom[1295]: low memory! at or below SIGTERM limits: mem  1.66%, swap 10.00%
Nov 12 17:08:47 earlyoom[1295]: sending SIGTERM to process 906175 uid 1000 "java": oom_score 1170, VmRSS 43912 MiB, cmdline "..."
Nov 12 17:08:47 earlyoom[1295]: kill_release: pid=906175: process_mrelease pidfd=4 failed: Invalid argument
Nov 12 17:08:57 earlyoom[1295]: process 906175 did not exit
Nov 12 17:08:57 earlyoom[1295]: kill failed: Timer expired

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions