zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: zsh/pcre module causes core dump w/cvs co as of 2007-04-02
Date: Mon, 02 Apr 2007 23:00:29 -0700	[thread overview]
Message-ID: <070402230029.ZM7255@torch.brasslantern.com> (raw)

As it happens, I inadvertently compiled with --enable-pcre on a system
that had the libraries but not the header files for PCRE.  Obviously
this is pilot error, but it shouldn't lead to a crash.

schaefer<500> [[ ab -pcre-match xy ]]
zsh: unrecognized condition: `ab'
schaefer<501> zmodload zsh/pcre
schaefer<502> [[ ab -pcre-match xy ]]

Program received signal SIGSEGV, Segmentation fault.
0x080ac50b in pattryrefs (prog=0x8552c40, string=0x1 "", stringlen=-1, 
    unmetalen=-1, patoffset=0, nump=0x0, begp=0x0, endp=0x0)
    at ../../zsh-4.0/Src/pattern.c:1781
1781        if (*string == Nularg) {
(gdb) where
#0  0x080ac50b in pattryrefs (prog=0x8552c40, string=0x1 "", stringlen=-1, 
    unmetalen=-1, patoffset=0, nump=0x0, begp=0x0, endp=0x0)
    at ../../zsh-4.0/Src/pattern.c:1781
#1  0x080ac4a9 in pattry (prog=0x8552c40, string=0x1 "")
    at ../../zsh-4.0/Src/pattern.c:1725
#2  0x080742b3 in matchpat (a=0x1 "", b=0xb7d612d8 "ab")
    at ../../zsh-4.0/Src/glob.c:1992
#3  0x0806569c in cond_match (args=0xb7d612c8, num=0, str=0x1 "")
    at ../../zsh-4.0/Src/cond.c:479
#4  0x0806448a in evalcond (state=0xbfe9cc90, fromtest=0x0)
    at ../../zsh-4.0/Src/cond.c:122
#5  0x0806dcae in execcond (state=0xbfe9cc90, do_exec=0)
    at ../../zsh-4.0/Src/exec.c:3499
#6  0x08066fdb in execsimple (state=0xbfe9cc90) at ../../zsh-4.0/Src/exec.c:827
#7  0x080671c2 in execlist (state=0xbfe9cc90, dont_change_job=0, exiting=0)
    at ../../zsh-4.0/Src/exec.c:915
#8  0x08066eb5 in execode (p=0xb7d61268, dont_change_job=0, exiting=0)
    at ../../zsh-4.0/Src/exec.c:793
#9  0x0807e86e in loop (toplevel=1, justonce=0) at ../../zsh-4.0/Src/init.c:180
#10 0x0808116c in zsh_main (argc=1, argv=0xbfe9cdd4)
    at ../../zsh-4.0/Src/init.c:1347
#11 0x08052e76 in main (argc=1, argv=0xbfe9cdd4) at ../../zsh-4.0/Src/main.c:93


             reply	other threads:[~2007-04-03  6:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-03  6:00 Bart Schaefer [this message]
2007-04-04 11:45 ` Clint Adams
2007-04-04 15:13   ` Bart Schaefer
2007-04-05 16:16     ` Clint Adams
2007-04-12 10:22       ` 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=070402230029.ZM7255@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --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).