Why "zsh" crashes on "unicode" characters ?

Solution Verified - Updated -

Issue

  • zsh occasionally crashes, seems to be unicode related.
  • Here's a reproducer that crashes zsh every time :
$ env -i zsh -f repro_zsh_crash
*** Error in `zsh': double free or corruption (!prev): 0x00000000008593f0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7c503)[0x7f942768d503]
zsh(bin_print+0x2ad)[0x417efd]
zsh(execbuiltin+0x302)[0x41ca02]
zsh[0x42bc6a]
zsh[0x42c2c6]
zsh[0x42c703]
zsh(execlist+0x815)[0x42e495]
zsh(execfor+0x251)[0x4505a1]
zsh[0x42ad94]
zsh[0x42c2c6]
zsh[0x42c703]
zsh(execlist+0x815)[0x42e495]
zsh(execode+0xa2)[0x42e782]
zsh(loop+0xbf)[0x440a3f]
zsh(zsh_main+0x47e)[0x44417e]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7f9427632b35]
zsh[0x40ed8e]
======= Memory map: ========
...
zsh: abort (core dumped)  env -i zsh -f repro_zsh_crash

Environment

  • Red Hat Enterprise Linux 7.3
  • zsh-5.0.2-25.el7.x86_64

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.