From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14995 invoked by alias); 1 Sep 2015 12:03:02 -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: 36367 Received: (qmail 23448 invoked from network); 1 Sep 2015 12:02:59 -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 From: Brian Millar To: Bart Schaefer , "zsh-workers@zsh.org " Subject: Re: Possible Bug Thread-Topic: Possible Bug Thread-Index: AQHQ5DOVJwIPQjSb+0y4S5sk9GqIOZ4nLIgAgABmPew= Date: Tue, 1 Sep 2015 12:02:54 +0000 Message-ID: References: ,<150831225304.ZM599@torch.brasslantern.com> In-Reply-To: <150831225304.ZM599@torch.brasslantern.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=D00144121@student.dkit.ie; x-originating-ip: [213.233.148.24] x-microsoft-exchange-diagnostics: 1;AM2PR03MB0979;5:SCufsFjxv9cECX3U2zn3iNGof9e8hSgquWRQd3v+DdTZJKP2SSGzkCXJBMtPZgTzBYMEcF5x8YMldo6M86kpC/UEfLaEZuqHWQWnqfcQ31D45l4ASXQ4BPLLN4+Uf0937h+GkKl8aU5bzr8HSRgn5w==;24:kfYL+OSfXbX1yAkcX7BkMctvavdKykDE3T7uIa/2Px7VSC5BvAr0Kkpbv+j4KnbaUr1xTjCtDq57/T976JPFwt9uxYlmmYG5R/62NCXcFD8=;20:IhL5Xq2k4r4bvSUoWuo17Fvx78zYI6gcYL90zNZEeBVoftETvjvVvftO/ZDhdOP+bQ6iGKU4aCjET4z6BG2uiQ== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM2PR03MB0979; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(8121501046)(5005006)(3002001);SRVR:AM2PR03MB0979;BCL:0;PCL:0;RULEID:;SRVR:AM2PR03MB0979; x-forefront-prvs: 06860EDC7B x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(199003)(377454003)(189002)(24454002)(107886002)(2656002)(76176999)(77096005)(106356001)(86362001)(5001860100001)(5001960100002)(189998001)(92566002)(5001830100001)(74316001)(106116001)(221733001)(46102003)(105586002)(40100003)(122556002)(5001770100001)(50986999)(54356999)(62966003)(64706001)(5002640100001)(68736005)(102836002)(2900100001)(2950100001)(19580395003)(74482002)(101416001)(33656002)(77156002)(5007970100001)(97736004)(5001920100001)(81156007)(66066001)(19580405001)(76576001)(4001540100001)(5004730100002)(10400500002)(5003600100002)(87936001)(81782002)(42262002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM2PR03MB0979;H:AM2PR03MB0980.eurprd03.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:0;MX:1;LANG:en; received-spf: None (protection.outlook.com: student.dkit.ie does not designate permitted sender hosts) spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: student.dkit.ie X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Sep 2015 12:02:54.9050 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: abcc9a4b-cf04-4ca3-9d83-3465e3f43f61 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR03MB0979 >On what operating system is this occurring? I'm running Gentoo with linux-4.1.3-gentoo-gnu, that means it has the Gento= o patches and is deblobed/libre. ________________________________________ From: Bart Schaefer 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.