Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Nov 2025 20:33:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 290330] /bin/sh crash in freejob
Message-ID:  <bug-290330-227-T1bFBdkr9O@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-290330-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

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.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-290330-227-T1bFBdkr9O>