From: Kamil Dudka <kdudka@redhat.com>
To: zsh-workers@zsh.org
Subject: SIGSEGV in patmatch() -- Fedora bug #1245116
Date: Tue, 21 Jul 2015 18:01:05 +0200 [thread overview]
Message-ID: <21142543.ltNyFqy7kU@kdudka.brq.redhat.com> (raw)
A user of Fedora reported a crash of zsh-5.0.8 in patmatch():
https://bugzilla.redhat.com/1245116
The automatically recorded backtrace:
https://bugzilla.redhat.com/attachment.cgi?id=1054236
... shows that 'chrop' and 'chrend' pointed off the allocated memory
at this line:
http://repo.or.cz/w/zsh/mirror.git/blob/a0862f63:/Src/pattern.c#l2541
My guess is that the invalid addresses were loaded from 'exactpos' and
'exactend' but static variables are not captured in the backtrace to
actually confirm it.
Unfortunately, I was not successful in reproducing the crash locally,
neither the original reporter was able to trigger it on demand. Hence,
I am sharing it here in case anybody recognized the actual cause just
from the backtrace.
Kamil
next reply other threads:[~2015-07-21 16:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-21 16:01 Kamil Dudka [this message]
2015-07-21 22:06 ` Bart Schaefer
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=21142543.ltNyFqy7kU@kdudka.brq.redhat.com \
--to=kdudka@redhat.com \
--cc=zsh-workers@zsh.org \
/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).