Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Double-free crash in call to _values
- X-seq: zsh-workers 41436
- From: dana <dana@xxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Double-free crash in call to _values
- Date: Tue, 18 Jul 2017 00:36:01 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=Jy0sALq3l0CaEfrjba1adS6V4dvzbmGCBAkmeUQU7oc=; b=me6ljkWXYQWwRjqF8KBG6p9GCzsCHwX5/GawbESQJs+nbr2OH096X7vGWlkOJK+kPZ YY9eeE0doBC18Bv0P7h1HU30jZoHsngncIFjOWrOqR1nGEWUeMfRSuyGZCXUO3lYarsM he4G649G2fchQzZKDpSX5zRBxlmyA94wWOophbvY7wNJEG6vMogbYpt+S5wmebBmhifh qqF55RlOfQh5IIZJDdIAb2VJVBReZ9zNQxAMn0Tqa/JVGUheIWBhhkGFsrMDu6/JzMGV Xd7gyp40xB6f0t3f6WZtSwHMkCF6T3J85ZedrctsbaStIFMPtDhgKYG1EPrGRuqftP9Q TGmw==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello,
This completion function —
#compdef foo
_values -S ':' 'val' 'val:val'
— crashes zsh when i enter the following at the command line:
% foo abcd:val:<tab>
On *zsh 5.3.1 (x86_64-apple-darwin16.6.0)* from Homebrew i get an error
like this (sometimes it complains about not finding some gibberish command
first):
-zsh(83431,0x7fffc0b9b3c0) malloc: *** error for object 0x7fce5fa19970:
pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
I was also able to replicate on *zsh 5.1.1 (x86_64-ubuntu-linux-gnu)* from
Ubuntu 16.04, though the error it produces is less consistent. Here's one
example:
*** Error in `-zsh': munmap_chunk(): invalid pointer: 0x00000000015748f0 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f21d02787e5]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x1a8)[0x7f21d0284ae8]
-zsh(freearray+0x21)[0x489ba1]
/usr/lib/x86_64-linux-gnu/zsh/5.1.1/zsh/complete.so(+0xa980)[0x7f21cf355980]
-zsh(runshfunc+0x91)[0x42e981]
-zsh(doshfunc+0x745)[0x42f335]
...
(Obviously when i encountered this 'in the wild' it was in a more useful
context, but i've tried to reduce the test case to the bare minimum.)
Please let me know if i can provide any other information. Cheers
dana
Messages sorted by:
Reverse Date,
Date,
Thread,
Author