From: Peter Stephenson <pws@csr.com>
To: "Jörg Sommer" <joerg@alea.gnuu.de>, zsh-workers@sunsite.dk
Subject: Re: Segmentation fault while searching backward
Date: Thu, 20 Dec 2007 10:04:17 +0000 [thread overview]
Message-ID: <200712201004.lBKA4HQl025805@news01.csr.com> (raw)
In-Reply-To: <slrnfmj6v9.23b.joerg@alea.gnuu.de>
=?UTF-8?Q?J=C3=B6rg?= Sommer wrote:
> (gdb) print ollen
> $3 = 6
>
> (gdb) x/16cb ol
> 0x101c31a0: 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0 '\0' 0 '\0' 108 '
> l'
> 0x101c31a8: 0 '\0' 0 '\0' 0 '\0' 101 'e' 0 '\0' 0 '\0' 0 '\0' 110 '
> n'
Thanks for the extra info... I think there is an extra line here (to
make six characters of four bytes each) but I'm already a bit worried
because the first character appears to be a NULL which should make the
length zero.
> > and what it's trying to put on screen (the contents of the array nl and
> > its length nllen).
>
> (gdb) print nl
> $6 = (REFRESH_STRING) 0x101c2784
> (gdb) print *nl
> $7 = 62
> (gdb) print nllen
> $8 = 16
>
> (gdb) x/24cb nl
> 0x101c2784: 0 '\0' 0 '\0' 0 '\0' 62 '>' 0 '\0' 0 '\0' 0 '\0' 46 '.
> '
> 0x101c278c: 0 '\0' 0 '\0' 0 '\0' 46 '.' 0 '\0' 0 '\0' 0 '\0' 46 '.
> '
> 0x101c2794: 0 '\0' 0 '\0' 0 '\0' 46 '.' 0 '\0' 0 '\0' 0 '\0' 32 '
> '
... and also an extra five lines here (making 64 bytes)
> > Note the arrays will be wide character strings. If it's reproducible
> > with these two lines we have a chance of fixing it.
>
> I can send you the core file (the executables and debugging symbols are
> from Debian) and the broken history file. It's reproducible.
With a bit of luck the history file will tell me enough: it will needed
to be synced with the internal history; if you use incappendhistory or
sharehistory it automatically will be. If it's OK it would good to get
that (you can send it to me directly). What are you typing after ^R to
get this to happen?
It would be preferable to sort this out before making a release, if
possible, and I'm on holiday for two weeks from tomorrow, so it might be
best if I make another dev release (incorporating the Solaris fixes)
today.
pws
next prev parent reply other threads:[~2007-12-20 10:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-19 0:59 Jörg Sommer
2007-12-19 9:55 ` Peter Stephenson
2007-12-19 22:32 ` Jörg Sommer
2007-12-20 10:04 ` Peter Stephenson [this message]
2008-01-08 15:02 ` 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=200712201004.lBKA4HQl025805@news01.csr.com \
--to=pws@csr.com \
--cc=joerg@alea.gnuu.de \
--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).