zsh-workers
 help / color / mirror / code / Atom feed
* Re: BUG: 3.1.5-pws-11 completion coredumps
@ 1999-03-15 10:21 Sven Wischnowsky
  0 siblings, 0 replies; 4+ messages in thread
From: Sven Wischnowsky @ 1999-03-15 10:21 UTC (permalink / raw)
  To: zsh-workers


Bart Schaefer wrote:

> On Mar 14,  5:04am, Geoff Wing wrote:
> } Subject: BUG: 3.1.5-pws-11 completion coredumps
> }
> } may be fixed in pws-12 but nothing in pws's list seemed to indicate so.
> } 
> } Couple of core dumps with completion. pws-11 with all completion stuff
> } installed.
> } Doing ``~/src/she<TAB>'' (AUTO_CD obviously) at the prompt
> 
> I can't duplicate this in the pws-12 that I just built
> ...

Neither could I, hm.

> However, I can get this minor odd behavior:
> 
>     zsh% ~/zc<TAB>
>     zsh% ~//zc
> 
> There is no possible match for "zc", though there are three directories
> with names starting with "z".  The slash gets doubled only when there's
> no possible match.

Yup, forgot to test the other path-prefix parameter.

Bye
 Sven

diff -u oc/Core/_path_files Completion/Core/_path_files
--- oc/Core/_path_files	Mon Mar 15 10:52:18 1999
+++ Completion/Core/_path_files	Mon Mar 15 11:18:28 1999
@@ -405,6 +405,7 @@
     # No match, insert the expanded path and add the original tail.
 
     [[ "$testpath[-1]" = / ]] && testpath="$testpath[1,-2]"
+    [[ -z "$testpath" && "$linepath[-1]" = / ]] && linepath="$linepath[1,-2]"
     [[ -n "$ostr" && -n "$linepath$testpath" ]] && ostr="/$ostr"
 
     # But only if something changed.

--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


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

* Re: BUG: 3.1.5-pws-11 completion coredumps
  1999-03-14  6:14   ` Bart Schaefer
@ 1999-03-14  7:15     ` Geoff Wing
  0 siblings, 0 replies; 4+ messages in thread
From: Geoff Wing @ 1999-03-14  7:15 UTC (permalink / raw)
  To: zsh-workers

Bart Schaefer <schaefer@brasslantern.com> typed:
:On Mar 14,  5:04am, Geoff Wing wrote:
:} Subject: BUG: 3.1.5-pws-11 completion coredumps
:} may be fixed in pws-12 but nothing in pws's list seemed to indicate so.
:} Couple of core dumps with completion. pws-11 with all completion stuff
:} installed.
:} Doing ``~/src/she<TAB>'' (AUTO_CD obviously) at the prompt
:I can't duplicate this in the pws-12 that I just built, at least with
:only
:	Src/zsh -f
:	fpath=($PWD/Completion/*(/))
:	source Completion/Core/compinit
:	setopt autocd
:You haven't said how many possible completions of ~/src/she* there are,
:or whether there are any symlinks involved, so I can't be sure I'm
:trying the right things ...

~/src/she* has 1 match - a directory ``~/src/shells''.  Also, ~/src is
the only thing starting with s in ~ if that's relevant.

I just got a dump at the same line - during startup - when it's going 
through the init files /etc/z* + ~/.z* - but it's not occuring every time
which makes it somewhat more troublesome.  It may be a memory allocation
problem from elsewhere manifesting there, but I don't know anything about
that code so ....
-- 
Geoff Wing   <gcw@pobox.com>            Mobile : (Australia) 0412 162 441
Work URL: http://www.primenet.com.au/   Ego URL: http://pobox.com/~gcw/


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

* Re: BUG: 3.1.5-pws-11 completion coredumps
  1999-03-14  5:04 ` BUG: 3.1.5-pws-11 completion coredumps Geoff Wing
@ 1999-03-14  6:14   ` Bart Schaefer
  1999-03-14  7:15     ` Geoff Wing
  0 siblings, 1 reply; 4+ messages in thread
From: Bart Schaefer @ 1999-03-14  6:14 UTC (permalink / raw)
  To: mason, zsh-workers

On Mar 14,  5:04am, Geoff Wing wrote:
} Subject: BUG: 3.1.5-pws-11 completion coredumps
}
} may be fixed in pws-12 but nothing in pws's list seemed to indicate so.
} 
} Couple of core dumps with completion. pws-11 with all completion stuff
} installed.
} Doing ``~/src/she<TAB>'' (AUTO_CD obviously) at the prompt

I can't duplicate this in the pws-12 that I just built, at least with
only
	Src/zsh -f
	fpath=($PWD/Completion/*(/))
	source Completion/Core/compinit
	setopt autocd

You haven't said how many possible completions of ~/src/she* there are,
or whether there are any symlinks involved, so I can't be sure I'm
trying the right things ...

However, I can get this minor odd behavior:

    zsh% ~/zc<TAB>
    zsh% ~//zc

There is no possible match for "zc", though there are three directories
with names starting with "z".  The slash gets doubled only when there's
no possible match.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com


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

* BUG: 3.1.5-pws-11 completion coredumps
  1999-03-13 15:00 pws-12 Peter Stephenson
@ 1999-03-14  5:04 ` Geoff Wing
  1999-03-14  6:14   ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Geoff Wing @ 1999-03-14  5:04 UTC (permalink / raw)
  To: zsh-workers

Heyla,
may be fixed in pws-12 but nothing in pws's list seemed to indicate so.

Couple of core dumps with completion. pws-11 with all completion stuff
installed.
Doing ``~/src/she<TAB>'' (AUTO_CD obviously) at the prompt gave me:

~/src/she       BUG: attempt to free storage at invalid address
BUG: size wrong in freenode()
BUG: attempt to free storage at invalid address

and I think I just overwrote it with another coredump (doing the same
sort of thing) so this trace might not match the above note - but I've
kept this dump in case further information is required.

This is totally unmeaningful to me but someone who knows the structures
might be able to ask for the appropriate information.


#0  simplifyright (l=0x87320) at utils.c:2363
2362        c = l->left->left->left;
2363        if (c->type != SIMPLE || nonempty(c->args) || nonempty(c->redir)
(gdb) bt
#0  simplifyright (l=0x87320) at utils.c:2363
#1  0x354ff in gettext2 (n=0x87320) at text.c:173
#2  0x358f2 in gettext2 (n=0x871a0) at text.c:321
#3  0x35864 in gettext2 (n=0x87180) at text.c:293
#4  0x353af in getjobtext (n=0x87180) at text.c:135
#5  0xaf75 in execpline2 (pline=0x87170, how=2, input=0, output=0, last1=0)
    at exec.c:924
#6  0xaa7f in execpline (l=0x8715c, how=2, last1=0) at exec.c:771
#7  0xa758 in execlist (list=0x8714c, dont_change_job=1, exiting=0)
    at exec.c:650
#8  0x211ce in execwhile (cmd=0x6d4b8) at loop.c:301
..............
(gdb) p *(l->left)
$6 = {ntype = 1073746177, type = 0, flags = 0, left = 0x87344, right = 0x0}
(gdb) p *(l->left->left)
$7 = {ntype = 1073746178, type = 0, left = 0x0, right = 0x0}

-- 
Geoff Wing   <gcw@pobox.com>            Mobile : (Australia) 0412 162 441
Work URL: http://www.primenet.com.au/   Ego URL: http://pobox.com/~gcw/


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

end of thread, other threads:[~1999-03-15 10:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-15 10:21 BUG: 3.1.5-pws-11 completion coredumps Sven Wischnowsky
  -- strict thread matches above, loose matches on Subject: below --
1999-03-13 15:00 pws-12 Peter Stephenson
1999-03-14  5:04 ` BUG: 3.1.5-pws-11 completion coredumps Geoff Wing
1999-03-14  6:14   ` Bart Schaefer
1999-03-14  7:15     ` Geoff Wing

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