From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18548 invoked by alias); 11 Jun 2014 05:39:54 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18901 Received: (qmail 16166 invoked from network); 11 Jun 2014 05:39:41 -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=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Date: Wed, 11 Jun 2014 07:39:38 +0200 From: Florian Bruhin To: zsh-users@zsh.org Subject: zsh spinning on .zsh_history.LOCK on start Message-ID: <20140611053938.GP19485@lupin> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=_mehl.schokokeks.org-26101-1402465179-0001-2" Content-Disposition: inline Accept-Language: de, en X-URL: http://www.the-compiler.org/ X-Operating-System: Arch Linux X-Editor: vim 7.4 X-PGP-Key: http://www.the-compiler.org/pubkey.asc OpenPGP: id=FD55A072; url=http://www.the-compiler.org/pubkey.asc; preference=signencrypt User-Agent: Mutt/1.5.22.1 (2013-10-16) --=_mehl.schokokeks.org-26101-1402465179-0001-2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I have a weird problem with zsh since some while: Sometimes when starting (it seems it always happens after a fresh boot), I don't get any prompt from zsh. When I attach strace to the process, it seems to be spinning on these lines: symlink("/pid-1600/host-ginny", "/home/florian/.zsh_history.LOCK") =3D = -1 EEXIST (File exists) lstat("/home/florian/.zsh_history.LOCK", {st_mode=3DS_IFLNK|0777, st_si= ze=3D19, ...}) =3D 0 rt_sigprocmask(SIG_BLOCK, [CHLD], [WINCH], 8) =3D 0 rt_sigaction(SIGCHLD, NULL, {0x474b10, [], SA_RESTORER|SA_INTERRUPT, 0x= 7fd243ce2df0}, 8) =3D 0 rt_sigprocmask(SIG_SETMASK, [WINCH], NULL, 8) =3D 0 nanosleep({1, 0}, 0x7fffa6830380) =3D 0 When I delete the lockfile, it starts up normally. After waiting some while it does as well sometimes. Then the problem goes away, and some weeks later magically appears again. I also tried doing `setopt HIST_FCNTL_LOCK` in ~/.zshrc but that didn't help. I'm using zsh 5.0.5 under Archlinux. Any ideas on what's going wrong there? If there's anything else useful I can provide, please let me know! Florian --=20 http://www.the-compiler.org | me@the-compiler.org (Mail/XMPP) GPG 0xFD55A072 | http://the-compiler.org/pubkey.asc I love long mails! | http://email.is-not-s.ms/ --=_mehl.schokokeks.org-26101-1402465179-0001-2 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJTl+uaAAoJEJFusMj9VaByCyEP+wfP89HD9nslPqyAvBaWFRGf oVIOis2UJjMnbo7G0MBDW/GCFO2wtWydFVkGa819w+8KHXuLH9WdmhxLg4RQYsr2 dLRnInpBnGmfKqF8sjCg36DfBQvNCOaPH057I/skBdOfRzcna+6EK0rFREDXdVRh 5xrisu1SyJ2Nus4L6i8b/eKOJGFhLN6F7msZpkPhaf1rRQIey/H4pAJzfqVCb3+B P+dVxvrKgFSJ0KczyartZcNxr+Rqnr26GLdPazVHaW+TI5CP9hHzlaWfkuKObEjs hfrovyDFIwn1AoXGoMupjCns8ZCknyFSF7JMLOIHyGWBpY19KKeYLBa6rXXHAej+ 5fwkwco4eJef1dZRnwhPdUSx/HVeZY4CGAykTe13KD/P2KE1rVP8bQtnfak/K35Z o1doLtdqydRe7NkpTWLaDF/WcRvl3DuGpvsqmZSsbDWNBhH73klhYuYfoNNQiBnY Xx/EiPNvEailHpL9YqgoxlCzRTU8SUVCDgk82dNVi9bJbRlUqpVzKlbYFvZJwWmy GTA+hzSlL5wl1+iTFjqzqWJ2ROeKJLP8AXcgBBqlW4QlbM94BBBUU4h+sSPt4jDf aMknQBA6dFpl5O3B0hAHpOILmfkkENypUS261HiRWwKjbLkRivhJnS8lWzClQ+zC wiXVCT8Z+MMUc0wN9XVg =P/x/ -----END PGP SIGNATURE----- --=_mehl.schokokeks.org-26101-1402465179-0001-2--