From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8197 invoked by alias); 31 Aug 2015 21:31:04 -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: 36350 Received: (qmail 14330 invoked from network); 31 Aug 2015 21:31:00 -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,HTML_MESSAGE autolearn=ham autolearn_force=no version=3.4.0 From: Brian Millar To: "zsh-workers@zsh.org" Subject: Possible Bug Thread-Topic: Possible Bug Thread-Index: AQHQ5DOVJwIPQjSb+0y4S5sk9GqIOQ== Date: Mon, 31 Aug 2015 21:30:34 +0000 Message-ID: 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; zsh.org; dkim=none (message not signed) header.d=none;zsh.org; dmarc=none action=none header.from=student.dkit.ie; x-originating-ip: [213.233.148.23] x-microsoft-exchange-diagnostics: 1;AM2PR03MB0980;5:vs9oaI/Jqk/iYjRtiyZ9W+MZoGNXjiMLMqj+cIeH9v+8ZNT+vetnKlW52zYfH4UAAZggafMO5XNvwbVI5dW64FLh+qYlxtSZmWPudyjMGVNg7ZeBZQf4SXQSTpfhQ7IMAmVc5rWUMh2g4pVqDt3iSw==;24:jQwRayiPOFj+V2d3Hh/pDQccrFVRj3T9UsyyqlMibYVg8Df3qx0Z70NrGfCVnsHkDRzVSs6Uv0wbaM/u74PtUIvnbyf3RF0FUaaKIHlojsk=;20:P0t2PHeVRDfEs6ZJS1r1cToD1GQhWprQS8v8exdznKWjwaS+Ldw+/LEKPj+u3c7rJnIVH5DXSqTUEDrOc9NIQw== x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM2PR03MB0980;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM2PR03MB0835; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(5005006)(8121501046)(3002001);SRVR:AM2PR03MB0980;BCL:0;PCL:0;RULEID:;SRVR:AM2PR03MB0980; x-forefront-prvs: 0685122203 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(189002)(199003)(107886002)(10400500002)(92566002)(189998001)(2900100001)(19625215002)(5002640100001)(5001860100001)(4001540100001)(102836002)(68736005)(110136002)(5001830100001)(81156007)(97736004)(86362001)(62966003)(77156002)(5001960100002)(77096005)(76576001)(2501003)(2351001)(450100001)(16236675004)(33656002)(5003600100002)(50986999)(54356999)(105586002)(74316001)(5004730100002)(106116001)(19627405001)(106356001)(2656002)(74482002)(5007970100001)(122556002)(40100003)(64706001)(46102003)(66066001)(87936001)(101416001)(221733001)(229853001)(81782002)(42262002);DIR:OUT;SFP:1101;SCL:1;SRVR:AM2PR03MB0980;H:AM2PR03MB0980.eurprd03.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:0;LANG:en; received-spf: None (protection.outlook.com: student.dkit.ie does not designate permitted sender hosts) spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_AM2PR03MB0980E6D5549A6ABD3EB9D43BEA6B0AM2PR03MB0980eurp_" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Aug 2015 21:30:34.6858 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: abcc9a4b-cf04-4ca3-9d83-3465e3f43f61 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR03MB0980 X-Microsoft-Exchange-Diagnostics: 1;AM2PR03MB0835;2:obpDMRZRLmWmjzOp7XINd541EkV7Gi0O3CTapKsaT1qPZ8lcQxPdM8aDTX+67Tn0/V+fs0zGFQoogYdEfqL+hcp0jFyH7xk7jZsb5/eynNVit7vSFjdBpYWMP0/9jvqSmNYXGKApM8z8f2rDfGKWk+dIpSp07bpWB38c/Fmi0qg=;3:XLHXETujJ+cCsfz46DDZirWTlkQ/vnut6XjkJTYJnq3pwc2bTag2oop5CBb4SiZZ1uoGOA+C3RNFawAVruKo+tiIMn7LVgP6XFy9FKMpTe9X1F/ERwXYadGNohFEBsGga8TkCIw0rYp4MPM16xkUvA==;25:TlHh2xixdPYN4PliFiG7RIOmYGPKhMW3dx4n42doZk5oL+7KmYl8BYkJMtkM+gEU2RMZCSff6u0CEyUWoHVFxuYYqoNjEOme2ciy4L/HO45krhXYyxg3iT5JpS9a5sWQS/VDFmaMxGjBMFtM3yt1W83vswBP8UIdUAXdHGv1Z4apPoHjkM+kEHsq0Gfk5ilVytuhexlyIaYFgXZczPyVGcttgHvsRtNq5eEuaVvJII6mNhP/W+PgfJ0sC7DiiLZ/j0Q+8MJFEt1a44Fv+EjtLw==;23:qbh61CcxhQKblfvDQzD3GbgknkqnOrvbxDi37eR/KKNPOBQ9o0bKOmB+nBarwatT8G6pvJLaPx5L6nGbhpsy5o5MO5fb1gYy0xtD63vB8DlRwcpSuw4tDlveKkSmcaEOUS1+aCM6ogAggzS/e25okcmV+STyHHqpbA3Q5rcaAOj0wHZLvVQOXTTUxNwDdrRQ X-OriginatorOrg: student.dkit.ie --_000_AM2PR03MB0980E6D5549A6ABD3EB9D43BEA6B0AM2PR03MB0980eurp_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I think I may have discovered a bug in ZSH. I was trying to install a prompt theme and I mixed things up moved things a= nd named things wrong. This resulted in the file wanted by the set_prompt actually being a directo= ry. ZSH would crash on start, if I ran it on top of another shell I could see t= he error was "set_prompt:100: fatal error: out of memory". I traced it and found that the open() syscall ran on the directory, the res= ult was passed to lseek() with argument SEEK_END which I don't think makes = any sense for a directory. lseek() returned an astronomically huge value which was passed to mmap() as= bytes to allocate. Thats when the crash happens. I talked to some kernel folks who say you should check that the file coming= from open() is not anything other than a normal file. If this is not a ZSH bug I'm sorry for wasting your time. --_000_AM2PR03MB0980E6D5549A6ABD3EB9D43BEA6B0AM2PR03MB0980eurp_--