From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5886 invoked by alias); 1 Sep 2015 05:53:10 -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: 36355 Received: (qmail 11038 invoked from network); 1 Sep 2015 05:53:09 -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=-1.9 required=5.0 tests=BAYES_00 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=1EmIKWlY9GsGTaTAw8jwckKF5Kwxgw4TlWMagczd7bk=; b=O8jDRjVVYCx10jfSRfo9f2R5CK/r7VRgV8HTmVhGDQmTCZk6Y2fq+DE301xfi8GV/p OT+CB71B9OvNGLriolqPxSlI0XGeA02Dn4/5nYrxy1ua+NcDHof2wFKTuqFQajwtqkLs TXFnkpfzBMDDc4hZVB7SPevIHa0QUrldkdeSt8CSChMuKhsVqEaJsDQ/DneAbuCyI0Gg Mw6YnWUwyIVhePOaP2YCUPV98m8VWPV9gZmFintJ1/FQVq6EN9xN4ZfL4TvPNjkGu9e+ GVxdjrH8Q9lMgm+26kSGNFqBE1NGxEfsnBp+Bld2vAAgQFtS/KehqqGjHX/UqQcdYJHa 3l2w== X-Gm-Message-State: ALoCoQmOiBsQx2qTPtym5wqXmWZ7dJdTOQJtFL/I9qhQppUXeI8r5t7NcrNbf8ry2Lb3K8opXE48 X-Received: by 10.182.87.36 with SMTP id u4mr15450058obz.50.1441086788073; Mon, 31 Aug 2015 22:53:08 -0700 (PDT) From: Bart Schaefer Message-Id: <150831225304.ZM599@torch.brasslantern.com> Date: Mon, 31 Aug 2015 22:53:04 -0700 In-Reply-To: Comments: In reply to Brian Millar "Possible Bug" (Aug 31, 9:30pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Brian Millar , "zsh-workers@zsh.org " Subject: Re: Possible Bug MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Aug 31, 9:30pm, Brian Millar wrote: } } This resulted in the file wanted by the set_prompt actually being a } directory. } } ZSH would crash on start, if I ran it on top of another shell I could } see the error was "set_prompt:100: fatal error: out of memory". } } I traced it and found that the open() syscall ran on the directory, } the result was passed to lseek() with argument SEEK_END which I don't } think makes any sense for a directory. Confirmed this. Autoloading calls access(..., R_OK) but does not stat() for plain-file-ness before attempting to open() and load into memory. On what operating system is this occurring? lseek() on a directory in my straces always returns zero.