zsh-users
 help / color / mirror / code / Atom feed
* freezing bug in 5.0.6?
@ 2014-10-03  7:44 Vadim A. Misbakh-Soloviov
  2014-10-03  9:05 ` Peter Stephenson
  2014-10-03 15:14 ` Bart Schaefer
  0 siblings, 2 replies; 4+ messages in thread
From: Vadim A. Misbakh-Soloviov @ 2014-10-03  7:44 UTC (permalink / raw)
  To: Zsh-Users List

[-- Attachment #1: Type: text/plain, Size: 1100 bytes --]

Hi there!
I'm using SHARE_HISTORY option.

After recent upgrade to 5.0.6 (means, all was okay before it) few days ago, 
I've got a strange bug: sometimes new sessions freezes on zsh start.

When I start debugging and run
> strace -eopen,stat,access -ff zsh

I found that it freezes on 
> open("/home/mva/.zhistory", O_RDWR|O_NOCTTY|O_LARGEFILE) = 3

(which is prety plain file on the local fs, not a symlink and so on).
Further debugging revealed that fact, that it is same behaviour on all of my 
mchines (>40), which makes me think it is 100% zsh's issue.

Also, I debugged that if I press ^C and ^Z (send sigint and sigstp 
respectivey) many times (~36-40) — then zsh throw:
>  zsh: locking failed for /home/mva/.zhistory: interrupt
and loads just fine.

Removing .zhistory before running zsh helps just once (until zsh I run created 
it again).


So, I just wondered if it is fixed in 5.0.7 trial and if it is a way to 
disable zhistory locking (since it anyway interfers with access rights in 
another condition, unrelated to this issue)

-- 
Best regards,
mva

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: freezing bug in 5.0.6?
  2014-10-03  7:44 freezing bug in 5.0.6? Vadim A. Misbakh-Soloviov
@ 2014-10-03  9:05 ` Peter Stephenson
  2014-10-03 15:01   ` Vadim A. Misbakh-Soloviov
  2014-10-03 15:14 ` Bart Schaefer
  1 sibling, 1 reply; 4+ messages in thread
From: Peter Stephenson @ 2014-10-03  9:05 UTC (permalink / raw)
  To: Vadim A. Misbakh-Soloviov, Zsh-Users List

On Fri, 03 Oct 2014 14:44:30 +0700
"Vadim A. Misbakh-Soloviov" <mva@mva.name> wrote:
> Hi there!
> I'm using SHARE_HISTORY option.
> 
> After recent upgrade to 5.0.6 (means, all was okay before it) few days ago, 
> I've got a strange bug: sometimes new sessions freezes on zsh start.

There have beens some subsequent history locking fixes, in particular

commit 4414e54ea7ffe50acca851c11c2ef49dc867c55d
Author: Barton E. Schaefer <schaefer@zsh.org>
Date:   Sat Sep 6 22:10:30 2014 -0700

    33116: followup to 32580 to prevent double-locking with shared or incremental history

so this might be fixed.  (Bart will comment later, he's eight hours
behind but gets up and checks his mail much earlier than me.)

It's probably worth asking whether you've got HISTFCNTLLOCK set, as the
option that most obviously affects locking.  It's fairly new and off by
default.

pws


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: freezing bug in 5.0.6?
  2014-10-03  9:05 ` Peter Stephenson
@ 2014-10-03 15:01   ` Vadim A. Misbakh-Soloviov
  0 siblings, 0 replies; 4+ messages in thread
From: Vadim A. Misbakh-Soloviov @ 2014-10-03 15:01 UTC (permalink / raw)
  To: Zsh-Users List

[-- Attachment #1: Type: text/plain, Size: 428 bytes --]

В письме от Пт, 3 октября 2014 10:05:24 Вы написали:

> HISTFCNTLLOCK
Yeah, I have. Shouldn't I?

It's also:

HISTEXPIREDUPSFIRST
HISTFCNTLLOCK
HISTFINDNODUPS
HISTIGNOREALLDUPS
HISTIGNOREDUPS
HISTIGNORESPACE
HISTREDUCEBLANKS
HISTSAVENODUPS
HISTSUBSTPATTERN
HISTVERIFY

# if any


# P.S.: Sorry for direct mail, client doesn't recognized your letter as a mail 
from mailing list

-- 
Best regards,
mva

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: freezing bug in 5.0.6?
  2014-10-03  7:44 freezing bug in 5.0.6? Vadim A. Misbakh-Soloviov
  2014-10-03  9:05 ` Peter Stephenson
@ 2014-10-03 15:14 ` Bart Schaefer
  1 sibling, 0 replies; 4+ messages in thread
From: Bart Schaefer @ 2014-10-03 15:14 UTC (permalink / raw)
  To: Vadim A. Misbakh-Soloviov, Zsh-Users List

On Oct 3,  2:44pm, Vadim A. Misbakh-Soloviov wrote:
}
} After recent upgrade to 5.0.6 (means, all was okay before it) few days ago, 
} I've got a strange bug: sometimes new sessions freezes on zsh start.
} 
} So, I just wondered if it is fixed in 5.0.7 trial and if it is a way to 
} disable zhistory locking (since it anyway interfers with access rights in 
} another condition, unrelated to this issue)

Yes, this should be fixed in 5.0.7.  There is currently an unrelated
crash bug in the trial, though, so I would not update yet.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-03 15:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-03  7:44 freezing bug in 5.0.6? Vadim A. Misbakh-Soloviov
2014-10-03  9:05 ` Peter Stephenson
2014-10-03 15:01   ` Vadim A. Misbakh-Soloviov
2014-10-03 15:14 ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).