From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21358 invoked by alias); 30 Mar 2014 13:13:54 -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: 32509 Received: (qmail 5281 invoked from network); 30 Mar 2014 13:13:49 -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=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.2 X-tubIT-Incoming-IP: 130.149.58.163 Message-ID: <53381887.2040201@physik.tu-berlin.de> Date: Sun, 30 Mar 2014 15:13:43 +0200 From: =?ISO-8859-1?Q?Sebastian_G=F6tte?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: zsh-workers@zsh.org Subject: Segfault in hrealloc somewhere between rpromts and syntax highlighting Content-Type: multipart/mixed; boundary="------------010203050409000001030402" --------------010203050409000001030402 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, 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 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<>(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 () (gdb) --------------010203050409000001030402 Content-Type: text/plain; charset=UTF-8; name="minimal-zshrc" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="minimal-zshrc" setopt promptsubst RPROMPT='$("%s")' ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern) source ~/dotfiles/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh --------------010203050409000001030402 Content-Type: text/plain; charset=UTF-8; name="codegolf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="codegolf" python3 -c 't=0 while 1:print(t>>15&(t>>(2<>(8+t%2*3))%4)+(t>>10)|42&t>>7&t<<9,end="");t+=1'|aplay -c2 -r4 --------------010203050409000001030402--