[Bug 290330] /bin/sh crash in freejob
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 290330] /bin/sh crash in freejob"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 19 Nov 2025 20:33:20 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=290330
--- Comment #5 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=f44ac8cc9c10d7305223a10b8dbd8e234388cc73
commit f44ac8cc9c10d7305223a10b8dbd8e234388cc73
Author: Jilles Tjoelker <jilles@FreeBSD.org>
AuthorDate: 2025-11-17 17:42:01 +0000
Commit: Jilles Tjoelker <jilles@FreeBSD.org>
CommitDate: 2025-11-19 20:30:39 +0000
sh: Fix job pointer invalidation with trapsasync
Calling dotrap() can do almost anything, including reallocating the
jobtab array. Convert the job pointer to an index before calling
dotrap() and then restore a proper job pointer afterwards.
PR: 290330
Reported by: bdrewery
Reviewed by: bdrewery
Differential Revision: https://reviews.freebsd.org/D53793
bin/sh/jobs.c | 6 +++++-
bin/sh/tests/execution/Makefile | 1 +
bin/sh/tests/execution/bg14.0 (new) | 9 +++++++++
3 files changed, 15 insertions(+), 1 deletion(-)
--
You are receiving this mail because:
You are the assignee for the bug.