From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24382 invoked from network); 3 Apr 2007 06:00:50 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.8 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 3 Apr 2007 06:00:50 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 34822 invoked from network); 3 Apr 2007 06:00:44 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 3 Apr 2007 06:00:44 -0000 Received: (qmail 1670 invoked by alias); 3 Apr 2007 06:00:41 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23259 Received: (qmail 1658 invoked from network); 3 Apr 2007 06:00:40 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 3 Apr 2007 06:00:40 -0000 Received: (qmail 34502 invoked from network); 3 Apr 2007 06:00:40 -0000 Received: from vms040pub.verizon.net (206.46.252.40) by a.mx.sunsite.dk with SMTP; 3 Apr 2007 06:00:33 -0000 Received: from torch.brasslantern.com ([71.116.70.212]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JFW00G2LRCU59EG@vms040.mailsrvcs.net> for zsh-workers@sunsite.dk; Tue, 03 Apr 2007 01:00:31 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id l3360TUG007257 for ; Mon, 02 Apr 2007 23:00:30 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id l3360TnJ007256 for zsh-workers@sunsite.dk; Mon, 02 Apr 2007 23:00:29 -0700 Date: Mon, 02 Apr 2007 23:00:29 -0700 From: Bart Schaefer Subject: zsh/pcre module causes core dump w/cvs co as of 2007-04-02 To: zsh-workers@sunsite.dk Message-id: <070402230029.ZM7255@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii 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