Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [BUG] sigsegv



> On 28/04/2023 12:25 Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx> wrote:
> It looks like the last field is incorrect:
> 
> (gdb) up
> #1  0x00007ffff7e1f628 in histwgetfn (pm=0x508e10)
>     at parameter.c:1241
> 1241                addlinknode(l, dupstring(h));
> (gdb) p *l->list->last
> Cannot access memory at address 0x7ffff5350068

You'll probably find this is tied to something in your history which
bufferwords() is processing incorrectly, as that's something of a
hack into the lexical analyser.  If you can find what that is we
ought to be able to fix it at source.

However, making this code (taking out history words from a string
given the start and end) more robust seems like a good plan anyway.

pws




Messages sorted by: Reverse Date, Date, Thread, Author