From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12097 invoked by alias); 20 Jan 2012 19:57:49 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30115 Received: (qmail 26209 invoked from network); 20 Jan 2012 19:57:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_MED,RCVD_NUMERIC_HELO, SPF_HELO_PASS,T_TO_NO_BRKTS_FREEMAIL autolearn=ham version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at m.gmane.org designates 80.91.229.12 as permitted sender) X-Injected-Via-Gmane: http://gmane.org/ To: zsh-workers@zsh.org From: Christian Neukirchen Subject: Obscure zsh history overflow with segfault Date: Fri, 20 Jan 2012 20:42:10 +0100 Sender: chris@juno Message-ID: <87ty3q5ffx.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 89.204.139.10 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) 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 http://chneukirchen.org