From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16652 invoked from network); 20 Mar 2009 21:12:46 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 20 Mar 2009 21:12:46 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 86996 invoked from network); 20 Mar 2009 21:12:41 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 20 Mar 2009 21:12:41 -0000 Received: (qmail 10365 invoked by alias); 20 Mar 2009 21:12:36 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 26762 Received: (qmail 10351 invoked from network); 20 Mar 2009 21:12:35 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 20 Mar 2009 21:12:35 -0000 Received: from mail-ew0-f172.google.com (mail-ew0-f172.google.com [209.85.219.172]) by bifrost.dotsrc.org (Postfix) with ESMTP id 0F95782CF026 for ; Fri, 20 Mar 2009 22:12:30 +0100 (CET) Received: by ewy20 with SMTP id 20so298023ewy.45 for ; Fri, 20 Mar 2009 14:12:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=+AZt7A9DgZLXwIUOkb4JYBdAqnZ+SYSDf+iVNQs2uv8=; b=drClt+xFBkN+GdSmB1u4AEXw/vgmv50BobFpFAFu9F/aVkym0nPoRDSSF3cYIKsUXq fooEasB0uM3rYfnebj1219/OOr89Ev/SioPCKE0m/hR8BFoWkPTxWB9dSwoimjHHxIND /CiQCJqVNMvBvTzpIClhxdLAOuVZUc4ulTadM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=qP3L1C/6JckfBJW1QSmOW1tiBLPsZaf1mTyVucBcWsZoG6J4BPOcVqgEXLIIPE3Psp Iivx7IfLEXUJL/Hy+h8/IHyEptTny+Dn8JZY4JDu8FtuRcy4XfuJ2jw1CxHPRtYOZqKA JQcNpD2kh7fza99O7nby4Ep9/RxAWsW4GYxvA= MIME-Version: 1.0 Received: by 10.210.89.4 with SMTP id m4mr2495914ebb.82.1237583550411; Fri, 20 Mar 2009 14:12:30 -0700 (PDT) Date: Fri, 20 Mar 2009 22:12:30 +0100 Message-ID: <237967ef0903201412h2a7b99c9ya5101509a3972313@mail.gmail.com> Subject: cd -s symlink hangs (sometimes?) From: Mikael Magnusson To: zsh-workers Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: ClamAV 0.92.1/9145/Fri Mar 20 15:59:16 2009 on bifrost X-Virus-Status: Clean Hi, zsh -f % mkdir a % ln -s a b % cd -s b cd: not a directory: b % cd -s b # kill -9 in another terminal zsh: killed zsh -f strace output of a rerun where it happened the first time ($PWD is /tmp/x) write(10, "\10cd"..., 3) =3D 3 read(10, " "..., 1) =3D 1 write(10, " "..., 1) =3D 1 read(10, "-"..., 1) =3D 1 write(10, "-"..., 1) =3D 1 read(10, "s"..., 1) =3D 1 write(10, "s"..., 1) =3D 1 read(10, " "..., 1) =3D 1 write(10, " "..., 1) =3D 1 read(10, "b"..., 1) =3D 1 write(10, "b"..., 1) =3D 1 read(10, "\n"..., 1) =3D 1 write(10, "\r\n"..., 2) =3D 2 alarm(0) =3D 0 ioctl(10, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = =3D 0 ioctl(10, SNDCTL_TMR_STOP or TCSETSW, {B38400 opost isig icanon echo ...}) = =3D 0 time(NULL) =3D 1237583357 rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) =3D 0 open(".", O_RDONLY|O_NOCTTY|O_LARGEFILE) =3D 3 chdir("/") =3D 0 lstat64("tmp", {st_mode=3DS_IFDIR|S_ISVTX|0777, st_size=3D1040, ...}) =3D 0 chdir("tmp") =3D 0 lstat64(".", {st_mode=3DS_IFDIR|S_ISVTX|0777, st_size=3D1040, ...}) =3D 0 lstat64("x", {st_mode=3DS_IFDIR|0755, st_size=3D80, ...}) =3D 0 chdir("x") =3D 0 lstat64(".", {st_mode=3DS_IFDIR|0755, st_size=3D80, ...}) =3D 0 lstat64("b", {st_mode=3DS_IFLNK|0777, st_size=3D1, ...}) =3D 0 fchdir(3) =3D 0 close(3) =3D 0 stat64(".", {st_mode=3DS_IFDIR|0755, st_size=3D80, ...}) =3D 0 lstat64("b", {st_mode=3DS_IFLNK|0777, st_size=3D1, ...}) =3D 0 chdir("../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../../../../../../../../../../..= /../../../../../../../../../../../../../../../..") =3D 0 ... [chdir repeated infinitely] --=20 Mikael Magnusson