[Top][All Lists]

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

Re: Extended regex match (shmatch.c:115) malloc error

From: Greg Wooledge
Subject: Re: Extended regex match (shmatch.c:115) malloc error
Date: Mon, 9 Aug 2021 16:32:03 -0400

On Mon, Aug 09, 2021 at 01:08:32PM -0400, Gyorgy Matyasfalvi wrote:
> Machine: ia64
> OS: hpux11.31
> Compiler: cc
> Compilation CFLAGS: -O -I/usr/local/include -D_XOPEN_SOURCE_EXTENDED +DD64
> uname output: HP-UX sovmh352 B.11.31 U ia64 1429105484 unlimited-user
> license
> Machine Type: ia64-hp-hpux11.31
> Bash Version: 5.1
> Patch Level: 8
> Release Status: release

>         malloc: shmatch.c:115: assertion botched
>         free: start and end chunk sizes differ
>         Aborting...ABORT instruction (core dumped)

I can't reproduce your results on Linux.  I suspect there's eomething
wrong with your build of bash, or possibly with your system's regex
functions (in libc).

Even on HP-UX, I still can't reproduce it.  Granted, my HP-UX systems are
PA-RISC, running older versions of HP-UX, and running bash 4.3, but still.

You also appear to be using bash's builtin malloc, rather than the
system's malloc from libc.  I'm not sure whether that's relevant here,
but it's noteworthy.

reply via email to

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