Date: Wed, 22 May 2024 17:35:13 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 279226] sort(1) can deadlock with poorly timed signal Message-ID: <bug-279226-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D279226 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 numer= ous 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. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-279226-227>