From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2494 invoked by alias); 29 Sep 2016 09:30:44 -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: 39494 Received: (qmail 9219 invoked from network); 29 Sep 2016 09:30:44 -0000 X-Qmail-Scanner-Diagnostics: from mail-qt0-f182.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.216.182):SA:0(0.0/5.0):. Processed in 0.154482 secs); 29 Sep 2016 09:30:44 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM,SPF_PASS, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.216.182 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=9o8BVVHSTtUa2y4U+D/ZquLMQ1zDmVBhFybY8JDSdY8=; b=jB8rh2vST/l/D/IaxUmAcXQ08XQarcX2S0w4TGMwuWyyuY3mSaFxLI492iHf2eiSlM bkqZqNTngd0BAJ3/9u3C8TCWclSJnJ448Shdg+b5wulMl56/oc5rBUJCsGqUiK8+upN/ jPCJ0Z36IWHvFKDTWyj0GGlnAVoBO3KSO6Xr1qWMifsUQGjqREHfuUnBAXZXBgPjsiXw TpsO0TSCY9sOUgMA3gFA0ZqBNjhWyRJH12QatG2nedZxzsfwzw7VoDye0Xy2M0cKkciJ t8vPSexnRyNsRVXxurzNqCC/1ynpnf1kEyf8M/LaLcbTjgmooS8YdYkvtcxGOH8wbWvD vnqw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=9o8BVVHSTtUa2y4U+D/ZquLMQ1zDmVBhFybY8JDSdY8=; b=ed84WigD4gSs9mUi949vK2ot9FSa9tdoBQYmcPkrI3xgUZAmsS+0sGCUXdqS6XDFCd xuzjUqD+6gTkwdnVxRBY4ItaO4sIfKtaSFLmx2VqedwAmJ4g4QyP+phujtI7MPkJu1DE up6jv75/9zgmKA1d6xXDNLIfyKynL7WyQTkg96SVHMMpMQ1npJ22xiN58QwM6YzjzZnM tDjEJn3NW2H/BNkxN42g5DZvIUU0UOJU9l9sEXFifl89F5M2xRQqJeFu2I3GMFc4/JPu QqgS70uykFH0+npzgKei47txEyk47Qs4l1WMoxo8xbU0PEndL5m6aWzqIBfNsnLd2iE1 tQ+g== X-Gm-Message-State: AA6/9RnvaNmrlHdbt+MZ1fxbsZ5vu691LarkUq89FvK5/X6IdYBzdMKCUxAJVTcyfzrvDty35LAirGWpZzEmNg== X-Received: by 10.237.51.101 with SMTP id u92mr393890qtd.125.1475141440521; Thu, 29 Sep 2016 02:30:40 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <160927090957.ZM12910@torch.brasslantern.com> References: <160924133140.ZM29034@torch.brasslantern.com> <160927090957.ZM12910@torch.brasslantern.com> From: Sebastian Gniazdowski Date: Thu, 29 Sep 2016 11:30:20 +0200 Message-ID: Subject: Re: Where to start debugging zle recursive-edit? / Ctrl-C To: Bart Schaefer Cc: Zsh hackers list Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 27 September 2016 at 18:09, Bart Schaefer wr= ote: > On Sep 27, 12:16am, Sebastian Gniazdowski wrote: > } > } have unoptimized HEAD Zsh, coredumps are set up, added some stressing > > If you're not seeing the problem under these circumstances, then it's > probably a race condition that's eliminated either by taking out the > code optimization or by adding the other processing. It seems so, hours after I switched to CFLAGS=3D-O2 compiled binary, I've got a suspicious effect, after smoothly running no-opt binary for few days =E2=80=93 couldn't recall if I spotted anything suspicious. The effect is message at shell startup: TRAPALRM: scalar parameter abcdef created globally in function TRAPALRM" It appeared just once, not long after switching to -O2. I don't use warn_create_global, and did a test that Mikael suggested to ensure: function setopt() { print -r - "$funcfiletrace[1]: $0 ${(q-)@}" >>! /tmp/setopt_data; builtin $0 "$@" } and only "setopt localoptions warncreateglobal" from z-sy-h was reported. Zshrc has at the end: TRAPALRM() { abcdef=3D$(( abcdef + 1 )); } TMOUT=3D1 PERIODIC_HOOK() { efghij=3D$(( efghij + 1 )); } PERIOD=3D1 add-zsh-hook periodic PERIODIC_HOOK repeat 50; do sleep 1000000 &; done coproc cat My aim is .recursive-edit and Ctrl-C, but just want to hook at something first, have any backtrace, I suspect it will be easy to connect with problems with .recursive-edit even when not directly related to it. Crash related to Ctrl-C appeared in uncanny situations AFAIR like Ctrl-R, Ctrl-C multiple times, then menu search completion with also Ctrl-C, something like this, hard to reproduce. Best regards, Sebastian Gniazdowski