[Bug 279226] sort(1) can deadlock with poorly timed signal
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 May 2024 17:35:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279226
Bug ID: 279226
Summary: sort(1) can deadlock with poorly timed signal
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: bugs@FreeBSD.org
Reporter: kevans@freebsd.org
sort(1) has a semapahore to protect the tmp file list, and it catches numerous
signals to trigger tmp cleanup before bailing out. If we receive a signal
while tmp_files_sem is held, we can easily deadlock sort(1) as the signal
handler tries to take it again.
--
You are receiving this mail because:
You are the assignee for the bug.