zsh-workers
 help / color / mirror / code / Atom feed
From: Alexandre Duret-Lutz <duret_g@epita.fr>
To: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
Cc: zsh-workers@math.gatech.edu
Subject: Re: If someone wants to try...
Date: 19 Jan 2000 12:05:09 +0100	[thread overview]
Message-ID: <mvbln5mz5i2.fsf@phobos.lrde.epita.fr> (raw)
In-Reply-To: Sven Wischnowsky's message of "Wed, 19 Jan 2000 09:59:34 +0100 (MET)"

With the three patches applied I can reproduce the following segfault.
The idea is to make a completion (here on filenames, after cat)
just before completing for $functions (it look like it will
hang only when completing the varname `$functions').

% zsh -f
phobos% autoload -U compinit; compinit
phobos% cat <TAB>
foo.tar.gz   foo.tgz      foobar/
phobos% echo $funct<TAB>
zsh: segmentation fault (core dumped)  zsh -f

(gdb) bt
#0  0x400f19db in strlen () from /lib/libc.so.6
#1  0x80a038a in taddstr (s=0x81636d3 <Address 0x81636d3 out of bounds>)
    at ../../last/Src/text.c:60
#2  0x80a19ad in gettext2 (state=0xbffff0c0) at ../../last/Src/text.c:672
#3  0x80a0576 in getpermtext (prog=0x8113d80, c=0x813d330)
    at ../../last/Src/text.c:125
#4  0x401bc602 in scanfunctions (ht=0x81146b0, func=0x8086594 <scanparamvals>, 
    flags=32, dis=0) at ../../../last/Src/Modules/parameter.c:530
#5  0x401bc696 in scanpmfunctions (ht=0x81146b0, 
    func=0x8086594 <scanparamvals>, flags=32)
    at ../../../last/Src/Modules/parameter.c:546
#6  0x806c35d in scanhashtable (ht=0x81146b0, sorted=0, flags1=0, 
    flags2=1048576, scanfunc=0x8086594 <scanparamvals>, scanflags=32)
    at ../../last/Src/hashtable.c:367
#7  0x808682e in paramvalarr (ht=0x81146b0, flags=32)
    at ../../last/Src/params.c:416
#8  0x80868fa in getvaluearr (v=0x400160c8) at ../../last/Src/params.c:434
#9  0x808971c in getarrvalue (v=0x400160c8) at ../../last/Src/params.c:1365
#10 0x809d212 in paramsubst (l=0x400160b0, n=0x400160b8, str=0xbffff400, qt=1, 
    ssub=4) at ../../last/Src/subst.c:1120
#11 0x809a293 in stringsubst (list=0x400160b0, node=0x400160b8, ssub=4)
    at ../../last/Src/subst.c:122
...

-- 
Alexandre Duret-Lutz


  reply	other threads:[~2000-01-19 11:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-19  8:59 Sven Wischnowsky
2000-01-19 11:05 ` Alexandre Duret-Lutz [this message]
  -- strict thread matches above, loose matches on Subject: below --
2000-01-20  8:26 Sven Wischnowsky
2000-01-19 15:46 Sven Wischnowsky
2000-01-19 19:38 ` Peter Stephenson
2000-01-19 14:02 Sven Wischnowsky
2000-01-18 10:09 Sven Wischnowsky
2000-01-17 12:50 Sven Wischnowsky
2000-01-18 22:49 ` Tanaka Akira
2000-01-19 12:48 ` Peter Stephenson
2000-01-19 12:53   ` Peter Stephenson

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=mvbln5mz5i2.fsf@phobos.lrde.epita.fr \
    --to=duret_g@epita.fr \
    --cc=wischnow@informatik.hu-berlin.de \
    --cc=zsh-workers@math.gatech.edu \
    /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).