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

Segfault in hrealloc somewhere between rpromts and syntax highlighting


the problem occurs when entering/pasting the contents of the attached file named "codegolf" into a zsh.

I attached a minimal zshrc causing the problem. The zsh-syntax-highlighting folder contains a clone of git://github.com/zsh-users/zsh-syntax-highlighting.git

newton~ <3 uname -a
uname -a
Linux newton 3.13.5-1-ARCH #1 SMP PREEMPT Sun Feb 23 00:25:24 CET 2014 x86_64 GNU/Linux
newton~ <3 zsh --version
zsh --version
zsh 5.0.5 (x86_64-unknown-linux-gnu)
newton~ <3 gdb zsh
GNU gdb (GDB) 7.7
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from zsh...(no debugging symbols found)...done.
(gdb) run
Starting program: /usr/bin/zsh 
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
newton~ <3 echo '
quote> while 1:print(t>>15&(t>>(2<<t%2))%(3+(t>>(8+t%2*3))%4)+(t>>10)|42&t>>7&t<<9,end="");t+=1'

Program received signal SIGSEGV, Segmentation fault.
0x0000000000451de7 in hrealloc ()
(gdb) bt
#0  0x0000000000451de7 in hrealloc ()
#1  0x00000000004496d5 in add ()
#2  0x000000000044a617 in ?? ()
#3  0x000000000044bba1 in zshlex ()
#4  0x0000000000465e4c in ?? ()
#5  0x0000000000466b0a in ?? ()
#6  0x0000000000466d6a in ?? ()
#7  0x0000000000466dfb in ?? ()
#8  0x0000000000467991 in ?? ()
#9  0x0000000000468631 in parse_event ()
#10 0x000000000043dc49 in loop ()
#11 0x0000000000440f5e in zsh_main ()
#12 0x00007ffff70e7b05 in __libc_start_main () from /usr/lib/libc.so.6
#13 0x000000000040f7be in _start ()
setopt promptsubst
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern)
source ~/dotfiles/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
python3 -c 't=0
while 1:print(t>>15&(t>>(2<<t%2))%(3+(t>>(8+t%2*3))%4)+(t>>10)|42&t>>7&t<<9,end="");t+=1'|aplay -c2 -r4

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