zsh-workers
 help / color / mirror / code / Atom feed
From: Christian Neukirchen <chneukirchen@gmail.com>
To: zsh-workers@zsh.org
Subject: Obscure zsh history overflow with segfault
Date: Fri, 20 Jan 2012 20:42:10 +0100	[thread overview]
Message-ID: <87ty3q5ffx.fsf@gmail.com> (raw)

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@gmail.com>  http://chneukirchen.org


             reply	other threads:[~2012-01-20 19:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-20 19:42 Christian Neukirchen [this message]
2012-01-21  2:39 ` Daniel Shahaf
2012-01-24 20:28   ` Bart Schaefer
2012-01-26 20:57     ` Peter Stephenson
2012-01-27  4:59       ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ty3q5ffx.fsf@gmail.com \
    --to=chneukirchen@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).