[Bug 292146] shells/mksh: Segmentation fault on RELESE-15.0

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 03 Jan 2026 23:32:08 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=292146

Jamie Landeg-Jones <jamie@catflap.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jamie@catflap.org

--- Comment #7 from Jamie Landeg-Jones <jamie@catflap.org> ---
Created attachment 266794
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=266794&action=edit
patch for mksh for FreeBSD 15+

I noticed this too. The failure is in the current ports version - indeed the
official pkg for mksh also coredumps.

Attached is a fix.

I'm not sure if the FreeBSD_version I use is accurate - I couldn't find exactly
where this change occurred.

Until the port is fixed, do this:

cd /usr/ports/shells/mksh
make patch
cd work
patch < patch-histrap.c
cd ..
make install clean

-- 
You are receiving this mail because:
You are the assignee for the bug.