[Bug 1098750] Re: zsh5 crashed with SIGSEGV in hrealloc()

2014-01-18 Thread flux
*** This bug is a duplicate of bug 1070820 ***
https://bugs.launchpad.net/bugs/1070820

Yes, sorry, 5.0.5-1 from Debian Unstable on AMD64. I was able to
reproduce it both with both the system zsh and a self-compiled debian
package (but compiled with -O0 to ease debugging). I've seen this happen
with the Zsh of Ubuntu 12.10 as well.

Personally I'm considering just replacing hrealloc with relloc and pay
the small (?) performance penalty (didn't look what other changes that
would require). Of course, the bug might not be inside hrealloc per se,
even if the crash happens there..

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1098750

Title:
  zsh5 crashed with SIGSEGV in hrealloc()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zsh/+bug/1098750/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1098750] Re: zsh5 crashed with SIGSEGV in hrealloc()

2014-01-18 Thread Axel Beckert
*** This bug is a duplicate of bug 1070820 ***
https://bugs.launchpad.net/bugs/1070820

No need to be sorry. I'm glad about it. :-)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1098750

Title:
  zsh5 crashed with SIGSEGV in hrealloc()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zsh/+bug/1098750/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1098750] Re: zsh5 crashed with SIGSEGV in hrealloc()

2014-01-18 Thread Launchpad Bug Tracker
*** This bug is a duplicate of bug 1070820 ***
https://bugs.launchpad.net/bugs/1070820

Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: zsh (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1098750

Title:
  zsh5 crashed with SIGSEGV in hrealloc()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zsh/+bug/1098750/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1098750] Re: zsh5 crashed with SIGSEGV in hrealloc()

2014-01-16 Thread flux
I've been able to crash hrealloc with ease and sadly too often writing
multi-line git commit messages. But if I do it as root (as it doesn't
have custom configs for zsh), I am not able to. It probably relates to
my zsh configuration as I was able to reproduce the problem with only
this loaded: http://github.com/zsh-users/zsh-syntax-highlighting
(version 4519467). Following backtraces are done with optimization level
-O0. Obviously h ending up being 0 is a problem..

% gdb zsh
GNU gdb (GDB) 7.6.1 (Debian 7.6.1-1)
Copyright (C) 2013 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-linux-gnu.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /bin/zsh5...Reading symbols from 
/usr/lib/debug/.build-id/25/1d29f03c12f43b25ac96d3429c2e9fa6e6633b.debug...done.
done.
(gdb) directory /tmp/zsh-5.0.5/debian/examples/
Source directories searched: /tmp/zsh-5.0.5/debian/examples:$cdir:$cwd
(gdb) run
Starting program: /usr/bin/zsh 
warning: no loadable sections found in added symbol-file system-supplied DSO at 
0x77ffa000
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need set solib-search-path or set sysroot?
[gdb] [19:47] aiee(pts/18):/tmp% echo 'asdfjioasdf jaiosdfj ioasdf ji
quote asdjfioajsdf ioasdjfio ajsdio jsdifjaiosdf
quote asdjfio asdjfioasdjfioasd fjaiosdf 
quote asdjfioasd fjioasdfjioasdfjio asdfjio 
quote ajsdfiojsiodfjiofjsdioajio sdfj ioasdfj ioasjdfioa
quote djasdiofjioa sdf a sdjfiojasdfjioa sdfj ioasdfj ioasdf
quote jafiojiosdfj ioasdfj ioasdfj iojaiosdjf ioadsf
quote ajsdfiojaiosdf jaiosdfj aiosdfj ajfiojfaiosdfj asd fjioasdj fio
quote asdjfioajsdiof  asd fjioadfj ioadjf ioasdjfioa sdjiofjaiosdfj oasdj fio
quote ajdiofjaio sdfjioasdf jaiosdf jaiosdfjioasdf jaiosdjfio jioasdfjioasdfj 

Program received signal SIGSEGV, Segmentation fault.
0x00461a41 in hrealloc (
p=0x77fe65b0 \231asdfjioasdf jaiosdfj ioasdf ji\nasdjfioajsdf 
ioasdjfio ajsdio jsdifjaiosdf\nasdjfio asdjfioasdjfioasd fjaiosdf \nasdjfioasd 
fjioasdfjioasdfjio asdfjio \najsdfiojsiodfjiofjsdioajio sdfj ioasdfj 
ioasjdfioa..., 
old=512, new=1024) at ../../Src/mem.c:616
616 if (p + old  arena(h) + h-used) {
(gdb) bt full
#0  0x00461a41 in hrealloc (
p=0x77fe65b0 \231asdfjioasdf jaiosdfj ioasdf ji\nasdjfioajsdf 
ioasdjfio ajsdio jsdifjaiosdf\nasdjfio asdjfioasdjfioasd fjaiosdf \nasdjfioasd 
fjioasdfjioasdfjio asdfjio \najsdfiojsiodfjiofjsdioajio sdfj ioasdfj 
ioasjdfioa..., 
old=512, new=1024) at ../../Src/mem.c:616
h = 0x0
ph = 0x77f6a000
#1  0x00457b23 in add (c=10) at ../../Src/lex.c:579
newbsiz = 1024
#2  0x0045929b in gettokstr (c=10, sub=0) at ../../Src/lex.c:1357
strquote = 0
act = 14
e = 0
inbl = 0
bct = 0
pct = 0
brct = 0
fdpar = 0
intpos = 1
in_brace_param = 0
inquote = 0
unmatched = 0
peek = STRING
#3  0x004588f4 in gettok () at ../../Src/lex.c:999
c = 39
d = 4686160
peekfd = -1
peek = 32767
#4  0x00457643 in zshlex () at ../../Src/lex.c:395
No locals.
#5  0x0047b4aa in par_simple (complex=0x7fffddb8, nr=0)
at ../../Src/parse.c:1687
redir_var = 0
oecused = 3
isnull = 1
r = 3
argc = 1
p = 3
isfunc = 0
sr = 0
c = 0
nrediradd = 0
assignments = 0
#6  0x004792a8 in par_cmd (complex=0x7fffddb8)
at ../../Src/parse.c:880
sr = 0
r = 3
nr = 0
#7  0x00478d3d in par_pline (complex=0x7fffddb8)
at ../../Src/parse.c:729
p = 2
line = 1
#8  0x00478cf6 in par_sublist2 (complex=0x7fffddb8)
at ../../Src/parse.c:710
f = 0
#9  0x00478b87 in par_sublist (complex=0x7fffdde0)
at ../../Src/parse.c:664
f = -8720
p = 1
c = 1
#10 0x004785a3 in par_event () at ../../Src/parse.c:477
r = 0
p = 0
c = 0
#11 0x0047851d in parse_event () at ../../Src/parse.c:454
No locals.
#12 0x00449cc4 in loop (toplevel=1, justonce=0) at ../../Src/init.c:132
prog = 0x0
err = 0
non_empty = 0
#13 0x0044d87d in zsh_main (argc=1, argv=0x7fffdfb8)
at ../../Src/init.c:1633
errexit = 0
t = 0x7fffdfc0
runscript = 0x0
t0 = 158
#14 0x0040e3cd in main (argc=1, argv=0x7fffdfb8)
at ../../Src/main.c:93
No locals.

aiee# gdb zsh
GNU gdb (GDB) 7.6.1 (Debian 7.6.1-1)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 

[Bug 1098750] Re: zsh5 crashed with SIGSEGV in hrealloc()

2014-01-16 Thread Axel Beckert
*** This bug is a duplicate of bug 1070820 ***
https://bugs.launchpad.net/bugs/1070820

Hi flux,

so you were able to reproduce this with zsh 5.0.5-1 from Debian
Unstable/Testing?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1098750

Title:
  zsh5 crashed with SIGSEGV in hrealloc()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zsh/+bug/1098750/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1098750] Re: zsh5 crashed with SIGSEGV in hrealloc()

2014-01-16 Thread Axel Beckert
*** This bug is a duplicate of bug 1070820 ***
https://bugs.launchpad.net/bugs/1070820

** This bug has been marked a duplicate of bug 1070820
   zsh crashes with long double quoted strings.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1098750

Title:
  zsh5 crashed with SIGSEGV in hrealloc()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zsh/+bug/1098750/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1098750] Re: zsh5 crashed with SIGSEGV in hrealloc()

2013-01-11 Thread nyuszika7h
-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1098750

Title:
  zsh5 crashed with SIGSEGV in hrealloc()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zsh/+bug/1098750/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1098750] Re: zsh5 crashed with SIGSEGV in hrealloc()

2013-01-11 Thread nyuszika7h
Updated stack trace with debugging symbols. I have no idea where to get
them for _start; if that's needed, any help is appreciated.

** Attachment added: Stacktrace.txt
   
https://bugs.launchpad.net/ubuntu/+source/zsh/+bug/1098750/+attachment/3480605/+files/Stacktrace.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1098750

Title:
  zsh5 crashed with SIGSEGV in hrealloc()

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zsh/+bug/1098750/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs