From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3396 invoked by alias); 20 Jan 2015 12:35:35 -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: 34326 Received: (qmail 1947 invoked from network); 20 Jan 2015 12:35:21 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 From: Kamil Dudka To: zsh-workers@zsh.org Subject: 'cd' built-in crashed zsh on a broken file system Date: Tue, 20 Jan 2015 13:35:14 +0100 Message-ID: <1874234.7FAblKt7ne@kdudka.brq.redhat.com> User-Agent: KMail/4.14.3 (Linux/3.17.8-300.fc21.x86_64; KDE/4.14.3; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 The following bug report describes a crash of the 'cd' built-in of zsh: https://bugzilla.redhat.com/1183238 The root cause was probably an inconsistent state of the sshfs file system after resume from suspend-to-ram. However, the segmentation fault suggests there might be some insufficient error handling in zsh code. unmeta() was called with NULL as pwd at the following line: http://sourceforge.net/p/zsh/code/ci/638bfa93/tree/Src/builtin.c#l807 It is not clear to me why pwd was NULL after the return from cd_new_pwd() and I was not able to trigger the bug myself to debug it further. The full backtrace is available here: https://bugzilla.redhat.com/attachment.cgi?id=981010 Kamil