zsh-workers
 help / color / mirror / code / Atom feed
* Segfault in hrealloc somewhere between rpromts and syntax highlighting
@ 2014-03-30 13:13 Sebastian Götte
  2014-04-06  7:05 ` Bart Schaefer
  0 siblings, 1 reply; 7+ messages in thread
From: Sebastian Götte @ 2014-03-30 13:13 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 2163 bytes --]

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 <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:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
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 ()
(gdb) 

[-- Attachment #2: minimal-zshrc --]
[-- Type: text/plain, Size: 158 bytes --]

setopt promptsubst
RPROMPT='$("%s")'
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern)
source ~/dotfiles/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

[-- Attachment #3: codegolf --]
[-- Type: text/plain, Size: 120 bytes --]

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-04-13  1:36 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-03-30 13:13 Segfault in hrealloc somewhere between rpromts and syntax highlighting Sebastian Götte
2014-04-06  7:05 ` Bart Schaefer
2014-04-06 16:02   ` Peter Stephenson
2014-04-06 16:50     ` Bart Schaefer
2014-04-06 17:06       ` Peter Stephenson
2014-04-12 17:29   ` Jun T.
2014-04-13  1:35     ` Bart Schaefer

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).