From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20578 invoked by alias); 27 Jun 2015 18:53:19 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35634 Received: (qmail 19836 invoked from network); 27 Jun 2015 18:53:17 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.0 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=m73COCk8oiAqH6PskBVinH3tOVBrEqSTIXsNxTAEdck=; b=cstkz6rUozpj+dgHb5QwweREqCkB7BiNiPTJG9upU1xJ/yPoPS3EZtfT9hevv0SwC7 rXRF09zpDOR2jY/dW+q2pjElT9J/P7637gWpsHkiSganRg7pwE0IFpFCS6rhWylqSwqt ApSIukF5vyXm55clMHkz70gOhJZZbscInN2wMxe7M1Nd29mwAAxPWlXAlj/abn3sFHrJ dDywnLO5H45oMGSGnTIPLvOhgaBG5gw2iVYiVV3/4TEib97iAPsg1b0guv2aYxpAeJn5 +S+YiPgGwNiVj9Lhq82zmn/mHAGRaqLSnLgsbLC0H8EjlR7HmH1koQdykD0WH/oTIEDm bqGQ== X-Gm-Message-State: ALoCoQkjjdTaf6HOrJEhobxUCTIsHQEe3xs9hx7otJKOArj978VKDQ6Bj6siSHVTrEsKJD9aAD0m X-Received: by 10.182.121.134 with SMTP id lk6mr4230983obb.51.1435431195589; Sat, 27 Jun 2015 11:53:15 -0700 (PDT) From: Bart Schaefer Message-Id: <150627115311.ZM3743@torch.brasslantern.com> Date: Sat, 27 Jun 2015 11:53:11 -0700 In-Reply-To: Comments: In reply to German M. Bravo "Zsh 5.0.8 crash" (Jun 27, 1:23pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: Zsh 5.0.8 crash MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jun 27, 1:23pm, German M. Bravo wrote: } } Any idea what this can be? It probably has something to do with this: #4 0x00000000004bbfec in zerr (fmt=0x4d0037 "failed to create named pipe: %s, %e") at utils.c:175 The jail is presumably preventing creation of the temporary file for the named pipe, which is causing the mktemp() library function to return NULL, which namedpipe() is not prepared to handle. FreeBSD documents a whole lot of cases where mktemp() can fail which are not so documented on e.g. Linux. In any case, the module is not going to work properly in the jail even with the patch below. You're going to need to reconfigure the jail to allow file creation in /tmp (or possibly just change $TMPPREFIX in the zsh environment). diff --git a/Src/exec.c b/Src/exec.c index 50a11eb..39d1326 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -4277,6 +4277,10 @@ namedpipe(void) { char *tnam = gettempname(NULL, 1); + if (!tnam) { + zerr("failed to create named pipe: %e", errno); + return NULL; + } # ifdef HAVE_MKFIFO if (mkfifo(tnam, 0600) < 0){ # else