zsh-workers
 help / color / mirror / code / Atom feed
From: Felix Rosencrantz <f_rosencrantz@yahoo.com>
To: Oliver Kiddle <okiddle@yahoo.co.uk>
Cc: zsh-workers@sunsite.dk
Subject: Re: zsh 4.2.0 dumping core on completion attempt
Date: Tue, 1 Jun 2004 00:16:34 -0700 (PDT)	[thread overview]
Message-ID: <20040601071634.55178.qmail@web51107.mail.yahoo.com> (raw)
In-Reply-To: <3888.1085737050@trentino.logica.co.uk>


--- Oliver Kiddle <okiddle@yahoo.co.uk> wrote:

> It probably just needs:
> 	 (!o->word || !strncmp(o->word, n->word, o->wlen))) ||
> changing to:
>          (!o->word || !n->word || !strncmp(o->word, n->word, o->wlen))) ||

I tried this change, and it prevents the core dump.

> 
> We've got o->word == "xmmap", n->word == NULL and o->wlen == n->wlen.
> So it might be a bug elsewhere that allows n->word == NULL or it might
> be an omission that it isn't checked. Presumably n->wlen == 0 but is
> that a length or an initial value?
> 
> Could you perhaps have a more detailed look from the debugger. At least
> see what n->wlen is and ideally trace back to where o->word, n->word and
> n->wlen are set (or not set).  Does that change result in it completing
> the right thing?
> 
> Unfortunately, I can't reproduce the problem on any system I have access
> to. If we can't find a bug higher in the chain, this would at least
> avoid it crashing but I'd obviously prefer to understand what's going on.

I'm having problems with shared libs and gdb on my home system, so I'll have to
try elsewhere to see if I can get you more info.  I'd be happier if we can find
the cause of the bug.  I did run valgrind, and the only thing it reported was
strncmp getting the NULL. 

-FR.


	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 


  parent reply	other threads:[~2004-06-01  7:17 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <3m5afmj8tzpu$.dlg@thorstenkampe.de>
     [not found] ` <20040525063239.19784.qmail@web51107.mail.yahoo.com>
2004-05-25 22:53   ` Thorsten Kampe
2004-05-25 23:46     ` Danek Duvall
2004-05-26 10:55       ` Peter Stephenson
2004-05-26 14:17         ` Danek Duvall
2004-05-28  5:40     ` Felix Rosencrantz
2004-05-28  9:37       ` Oliver Kiddle
2004-05-28  9:43         ` Oliver Kiddle
2004-05-28 10:01           ` Peter Stephenson
2004-06-01  7:16         ` Felix Rosencrantz [this message]
2004-06-02  7:58           ` Felix Rosencrantz
2004-06-02  9:29             ` 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=20040601071634.55178.qmail@web51107.mail.yahoo.com \
    --to=f_rosencrantz@yahoo.com \
    --cc=okiddle@yahoo.co.uk \
    --cc=zsh-workers@sunsite.dk \
    /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).