From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 10647 invoked from network); 4 Jun 2022 20:07:24 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 4 Jun 2022 20:07:24 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1654373244; b=r7TTmf1/R7HOnIRa1jmsNFnFFZ8ho8quaZ6JqlyZqSxPU9x9OndjmSuv2DcvFtV9WIGTsffrHp DtB2eylo+rlAFCW9fO1jc1dh6+YFNMCz5PRa+LKE4wGVoOcouYsfzCFJaiHj3zrjho4l9PMA0I +GquEslDB1yz8cx1ioIGMrwMAKjtMAoCPN0vv42H5dNTw1hK1ISp0EHAXgPjzwqnyZ4chrYFmK d1vvHbZPY9HYkO77pKojp07BfVVYoFXrZiwC16V9POpe3KvlMxxHXXRPRZOGb5UuSmtx0yJ3Xs QtH6jF5eR/KujlvEY06cmr1JCvmkixWUG7LaN3KlFAWM6Q==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f53.google.com) smtp.remote-ip=209.85.208.53; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1654373244; bh=joTOkq9yD8CCl+aRnabEN4k5z9NoeehrblzvqISX+kA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=WO7vSs2Pg1EoJSnOPABHbuMfjFNbTsLjGFHHHAxOTQBL8WnJtMCMwAabl81EtsgUcWRbz2ldEU iUg6zHo8WMC/VO+VWnD0aO/SaDfBFaNdsHZapg5q9c38/reVyTTVYXCM0czdGN1EWxMjQJIumL pNZ/QwtEMT4rubOfaoXD6wRir1poOjcf4osVLN9O0jIY5L4qU6IZ5hcJ3rubt/x6FUYEflb0RP myOLaNxZVU8o5uFXR89mbLwr2DvcdV2WqXGpMjAIMCXz4ETRyRvgqZEmUAofMiziAidNW+VoLN mBp3vx/12aqWMKvAYBy3hDlgkZ8msPBiwfV30GTKUmLWbQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=JhTVGksTji0a4SX/bQJeB2lPQo7ny2eF34h3o9Gzg+A=; b=m36Ha3kJVsdAW6fVoWryapp9lv fecrHlgadPfEYKI9CAPJ7lco1vN8h/K5q5SLHO+0O+lagWG1S6EsvUfoB+9qd3U+0JLtttICaagS8 uaTsBCr5GX/qd6TCkIFrJ+HFj4TlIXaLewrb9GtTnewYDnprZDJA9NlpCUeGpyTPzoEVZaRZlHM9K zEG+334jYtl5hTHzexc6AWgcAtng06k/PiBAarXsGAKt8tFTLf+RoW4Y3IH9oPvE9MqNFSCSRS/61 WLDzDVhW0EcQg0k9F0AW09hAaJw/pS39QyieonTuI9fay2/Tm6Hyy7ketqO0znfPaV9Cae8a5aUfF fj61UCsA==; Received: from authenticated user by zero.zsh.org with local id 1nxa3P-0001hp-Ff; Sat, 04 Jun 2022 20:07:23 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f53.google.com) smtp.remote-ip=209.85.208.53; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ed1-f53.google.com ([209.85.208.53]:44743) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1nxa2t-0001Mb-GN; Sat, 04 Jun 2022 20:06:52 +0000 Received: by mail-ed1-f53.google.com with SMTP id b8so14016390edf.11 for ; Sat, 04 Jun 2022 13:06:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=JhTVGksTji0a4SX/bQJeB2lPQo7ny2eF34h3o9Gzg+A=; b=oFtlOvg5RTgLqCoyrFJuBgYEKC0whE4ObXUkG/buI+37ax5eMgte939sVHO/HyCTf8 4hxAvEFLdBvO7CcHsJGSv6StZF/h8J599waKIQn/4Ci+CoVn1ZeKFI3bxJCMzU2UGrlp niod03Pbm72E7sacSAfruI+NCENwmbpeyESIc6+OQ3Sa9LsHpB0s7J+QjQSYjB1M5XZp bidHN4uleMdgdN1kfG8wfO8e82DpImTqmbr52acZ+g7++2GgYGHfXV01wNLyY6qtAI0f +YwtjiTEnjxkQSbVUGWnhGyvhUhzqACO+yvidX5DR31gUlhoKgWluIPD1g7K/HpuNvRN DXdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=JhTVGksTji0a4SX/bQJeB2lPQo7ny2eF34h3o9Gzg+A=; b=wSEWy1lpdPCbsUP1n5m2kaYGrByZEZ3dmJu+a8IThlmk83HQiqnNmRZuclO3IyLaK5 YaW12LdT6AWnQ0x6pOgOVh5gPcvYFoPNbt/MXUmy8RlnKlnKI5rNF1QUWLhf6FD4vEIT Dtqkp4sgc3AzavuxzFCs8PvnS9BkZk8swchwV2NE7/CSrqlEiTNxkrCeiImTYiR2Ncjn ZwBFjldZ9ewbFTOQDcj/QtTMIfxroG/K+lySqzi4cNRvjoC8UT+SuLvCE9LoJ09IwV65 bN7or2JPtLfFTmatkW7e5G+nGqVAEk8MVSg0QOtLGGNl5L6rE+qhIYf1BEbFOyIbc2aW 0lBw== X-Gm-Message-State: AOAM533f26JHsqzSwE7nDKzNtqZB5Cjxgwj64nc56ZLkXOqlyDs13fa6 Op+yIOOJPXRFAsXbWtfR3QmdvFeQ/c3cW84tPoAKtGgi1CCsyQ== X-Google-Smtp-Source: ABdhPJxxOWs7roRuen4SF7P4x4cMI5RTgbiXDb/5QbM3Nk21pe8Opu/yBYxAhACaP7l88biRsxf0YqNWazt1smrKYaw= X-Received: by 2002:a05:6402:249c:b0:431:3883:967a with SMTP id q28-20020a056402249c00b004313883967amr2651602eda.264.1654373210839; Sat, 04 Jun 2022 13:06:50 -0700 (PDT) MIME-Version: 1.0 References: <8b083180-0b4a-2f52-6bce-a48f7d6127eb@stromnet.se> <0de54d92-cda4-8297-d688-b9dd6ac7ab12@stromnet.se> <3CAEF71A-E8AD-47A8-A295-BFA58F453E79@kba.biglobe.ne.jp> <804b3f24-843f-739c-4dcd-fead87cdb9cf@stromnet.se> <54c2c561-a3dc-5710-d6b6-6e235a6396b8@stromnet.se> In-Reply-To: <54c2c561-a3dc-5710-d6b6-6e235a6396b8@stromnet.se> From: Bart Schaefer Date: Sat, 4 Jun 2022 13:06:39 -0700 Message-ID: Subject: Re: 5.9 core dumps under zleentry->zleread->zlecore To: =?UTF-8?B?Sm9oYW4gU3Ryw7Zt?= Cc: Jun T , Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 50333 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Sat, Jun 4, 2022 at 12:39 AM Johan Str=C3=B6m wrote: > > Hm, I had cases where terminals have been on the same virtual desktop, > with no re-arranging going on at the moment, or since last being used > (basically only resuming work in existing windows). > Not sure if SIGWINCH would be sent by just switching virtual desktop (swa= y). One reason I'm speculating about this is because of this from your previous stack trace: #9 0x000055ff7ab040f8 zalloc (zsh + 0x730f8) #10 0x00007fb08a549417 calclist (complete.so + 0x1b417) #11 0x00007fb08a54b040 ilistmatches (complete.so + 0x1d040= ) There's only one zalloc() in calclist: ws =3D g->widths =3D (int *) zalloc(zterm_columns * sizeof(int)= ); If zterm_columns has somehow become messed up, this might run you out of me= mory. Then in the other trace you have: #10 0x000055d4aa005493 zhandler (zsh + 0xa8493) #11 0x00007f2f935388e0 n/a (libc.so.6 + 0x3e8e0) #12 0x00007f2f935fbef2 read (libc.so.6 + 0x101ef2) That definitely means a signal was received, and SIGWINCH is explicitly unblocked around that read() call, but it goes straight on to: #9 0x000055d4a9fc3874 zleentry (zsh + 0x66874) The only way to get to that from a signal handler is when a user-defined trap is run: /* * If zle was running while the trap was executed, see if we * need to restore the display. */ if (zleactive && resetneeded) zleentry(ZLE_CMD_REFRESH); However (I suspect) the compiler has optimized out a couple of intervening function calls, which is why I hope you can get this to reoccur with a debug build. > In /etc/zsh, only zprofile: > https://github.com/archlinux/svntogit-packages/blob/packages/zsh/trunk/zp= rofile > Which references this: > https://github.com/archlinux/svntogit-packages/blob/packages/filesystem/t= runk/profile Yes, which does emulate sh -c 'source /etc/profile' though it seems unlikely that anything too weird is coming in that way.