From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: segfault on menu-select
Date: Thu, 12 Aug 2010 16:07:01 -0700 [thread overview]
Message-ID: <100812160702.ZM20648@torch.brasslantern.com> (raw)
In-Reply-To: <20100812173356.GC24998@ph>
On Aug 12, 7:33pm, Philipp Hartwig wrote:
}
} #1 0x00007f5cb63b76eb in instmatch (m=0x1776660, scs=0x7fff5707cf2c) at compresult.c:634
} #2 0x00007f5cb63b87bb in do_single (m=0x1776660) at compresult.c:989
} #3 0x00007f5cb63a3616 in do_completion (dummy=0x7f5cb6810f68, dat=0x7fff5707d060) at compcore.c:413
} #4 0x00000000004632a9 in runhookdef (h=0x7f5cb6810f68, d=0x7fff5707d060) at module.c:996
Interesting. I can't even reproduce that stack trace. If I put a
breakpoint in instmatch I get this trace:
#0 instmatch (m=0x8211d18, scs=0xbfebb2c4)
at ../../../zsh-4.0/Src/Zle/compresult.c:580
#1 0x081032b3 in do_single (m=0x8211d18)
at ../../../zsh-4.0/Src/Zle/compresult.c:989
#2 0x081041c6 in do_ambig_menu ()
at ../../../zsh-4.0/Src/Zle/compresult.c:1404
#3 0x08102b1f in do_ambiguous () at ../../../zsh-4.0/Src/Zle/compresult.c:767
#4 0x080f31b3 in do_completion (dummy=0x815f8b4, dat=0xbfebb3d0)
at ../../../zsh-4.0/Src/Zle/compcore.c:401
#5 0x080914da in runhookdef (h=0x815f8b4, d=0xbfebb3d0)
at ../../zsh-4.0/Src/module.c:996
So that means you've hit this branch in compcore.c:
} else if (nmatches == 1 || (nmatches > 1 && !diffmatches)) {
So I can force my shell through that same branch by hitting ^o in a
directory containing exactly one file, but I still don't get a crash.
What does "ls" show just before you begin completing?
--
next prev parent reply other threads:[~2010-08-12 23:07 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-12 14:46 Philipp Hartwig
2010-08-12 14:53 ` Frank Terbeck
2010-08-12 15:20 ` Philipp Hartwig
2010-08-12 15:49 ` Frank Terbeck
2010-08-12 16:53 ` Philipp Hartwig
2010-08-12 17:07 ` Frank Terbeck
2010-08-12 17:33 ` Philipp Hartwig
2010-08-12 18:04 ` Frank Terbeck
2010-08-12 23:07 ` Bart Schaefer [this message]
2010-08-13 8:08 ` Philipp Hartwig
2010-08-13 15:57 ` Bart Schaefer
2010-08-13 20:43 ` Peter Stephenson
2010-08-15 20:43 ` Bart Schaefer
2010-08-15 22:34 ` Bart Schaefer
2010-08-31 14:33 ` Philipp Hartwig
2010-09-06 4:11 ` Bart Schaefer
2011-01-09 18:56 ` Philipp Hartwig
2011-01-09 19:54 ` Bart Schaefer
2011-01-09 20:57 ` Philipp Hartwig
2010-08-12 16:04 ` Bart Schaefer
2010-08-12 17:03 ` Philipp Hartwig
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=100812160702.ZM20648@torch.brasslantern.com \
--to=schaefer@brasslantern.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).