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

Obscure zsh history overflow with segfault



Hi,

I just found this:

% zsh --version    
zsh 4.3.15 (x86_64-unknown-linux-gnu)
% gdb --args zsh -f
(gdb) r
Starting program: /bin/zsh -f
juno% asdfgh
zsh: command not found: asdfgh
juno% r 100 asdfgh
[... lots of repeat]
r 100 asdfgh
asdfgh
r 100 asdfgh
asdfgh
r 100 asdfgh
asdfgh
r 100 asdfgh
asdfgh
r 100 asdfgh
asdfgh
r 100 asdfgh
asdfgh
r 100 asdfgh
[... lots of repeat]
Program received signal SIGSEGV, Segmentation fault.
0x0000000000450792 in zhalloc ()
#0  0x0000000000450792 in zhalloc ()
#1  0x0000000000451b76 in hcalloc ()
#2  0x0000000000449bc7 in ?? ()
#3  0x000000000044aa54 in zshlex ()
#4  0x0000000000465ca7 in ?? ()
#5  0x000000000046685d in ?? ()
#6  0x0000000000466a9c in ?? ()
#7  0x0000000000466b3b in ?? ()
#8  0x0000000000467768 in ?? ()
#9  0x000000000046781b in ?? ()
#10 0x000000000046781b in ?? ()
#11 0x000000000046781b in ?? ()
#12 0x000000000046781b in ?? ()
#13 0x000000000046781b in ?? ()
#14 0x000000000046781b in ?? ()
#15 0x000000000046781b in ?? ()
[... lots of exactly the same function]
#173682 0x000000000046781b in ?? ()
#173683 0x000000000046781b in ?? ()
#173684 0x000000000046781b in ?? ()
#173685 0x00000000004678e1 in parse_event ()
#173686 0x000000000043d3e9 in loop ()
#173687 0x000000000041c4a2 in bin_fc ()
#173688 0x000000000041cc64 in execbuiltin ()
#173689 0x000000000042ac62 in ?? ()
#173690 0x000000000042b2be in ?? ()
#173691 0x000000000042b675 in ?? ()
#173692 0x000000000042c73d in execlist ()
#173693 0x000000000042cccf in execode ()
#173694 0x000000000043d56f in loop ()
#173695 0x000000000041c4a2 in bin_fc ()
#173696 0x000000000041cc64 in execbuiltin ()
[... lots of repeat]
#173820 0x000000000042c73d in execlist ()
#173821 0x000000000042cccf in execode ()
#173822 0x000000000043d56f in loop ()
#173823 0x000000000041c4a2 in bin_fc ()
#173824 0x000000000041cc64 in execbuiltin ()
#173825 0x000000000042ac62 in ?? ()
#173826 0x000000000042b2be in ?? ()
#173827 0x000000000042b675 in ?? ()
#173828 0x000000000042c73d in execlist ()
#173829 0x000000000042cccf in execode ()
#173830 0x000000000043d442 in loop ()
#173831 0x00000000004401de in zsh_main ()
#173832 0x00007ffff710138d in __libc_start_main () from /lib/libc.so.6
#173833 0x000000000040ec11 in _start ()

Any ideas?  TBH, I don't even know what "r 100 asdfgh" should do,
it was a mistyping of "repeat 100 asdfgh".

Cheers,
-- 
Christian Neukirchen  <chneukirchen@xxxxxxxxx>  http://chneukirchen.org



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