bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

loadable cut builtin gives assertion botched in free()


From: Duncan Roe
Subject: loadable cut builtin gives assertion botched in free()
Date: Mon, 16 Mar 2026 16:41:59 +1100

Hi Chet,

Bash version: devel tip (or any other branch tip)
Sample:-
| 16:17:12$ echo A=BB| cut -f1 -d' ' | cut -f2 -d=
| BB
| 16:17:38$ enable cut
| 16:17:46$ echo A=BB| cut -f1 -d' ' | cut -f2 -d=
| BB
| 
| malloc: cut.c:342: assertion botched
| free: start and end chunk sizes differ
| last command: echo A=BB| cut -f1 -d' ' | cut -f2 -d=
| Aborting...Aborted                    (core dumped) echo A=BB | cut -f1 -d' ' 
| cut -f2 -d=
| 16:17:49$ rm core

Patch appended,

Cheers ... Duncan.

Attachment: cut.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]