Package: posh
Version: 0.13.2

I have found that when trying to use a function called 'echo' which
also calls the 'echo' builtin posh will hang while leaking several GBs
of memory and then segfaulting.

  echo () { echo foo; } ; echo

When I rebuilt posh with '-O0 -g' the amount of memory its leaks is
much greater and it seems like I will run out of swap before it
segfaults, maybe this is an infinite loop?

When running posh in gdb and getting a backtrace while posh is leaking
memory by pressing ctrl+c I find that gdb will also enter an infinite
loop...

I have attached a very large backtrace compressed with xz and a short
example script that will demonstrate the problem. Please take care when
testing it.

Attachment: posh.log.xz
Description: application/xz

Attachment: posh_leak.sh
Description: application/shellscript

Reply via email to