From: Brian Millar <D00144121@student.dkit.ie>
To: Bart Schaefer <schaefer@brasslantern.com>,
"zsh-workers@zsh.org " <zsh-workers@zsh.org>
Subject: Re: Possible Bug
Date: Tue, 1 Sep 2015 12:02:54 +0000 [thread overview]
Message-ID: <AM2PR03MB09809A7956F87172274439CEEA6A0@AM2PR03MB0980.eurprd03.prod.outlook.com> (raw)
In-Reply-To: <150831225304.ZM599@torch.brasslantern.com>
>On what operating system is this occurring?
I'm running Gentoo with linux-4.1.3-gentoo-gnu, that means it has the Gentoo patches and is deblobed/libre.
________________________________________
From: Bart Schaefer <schaefer@brasslantern.com>
Sent: Tuesday, September 1, 2015 6:53 AM
To: Brian Millar; zsh-workers@zsh.org
Subject: Re: Possible Bug
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.
next prev parent reply other threads:[~2015-09-01 12:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-31 21:30 Brian Millar
2015-09-01 5:53 ` Bart Schaefer
2015-09-01 12:02 ` Brian Millar [this message]
2015-09-01 20:51 ` 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=AM2PR03MB09809A7956F87172274439CEEA6A0@AM2PR03MB0980.eurprd03.prod.outlook.com \
--to=d00144121@student.dkit.ie \
--cc=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).