From owner-freebsd-x11@freebsd.org Thu Oct 10 21:34:13 2019 Return-Path: Delivered-To: freebsd-x11@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 09D6913270E for ; Thu, 10 Oct 2019 21:34:13 +0000 (UTC) (envelope-from warlock@phouka1.phouka.net) Received: from phouka1.phouka.net (phouka1.phouka.net [107.170.196.116]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "phouka.net", Issuer "Go Daddy Secure Certificate Authority - G2" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 46q48z52Bdz4c2y; Thu, 10 Oct 2019 21:34:11 +0000 (UTC) (envelope-from warlock@phouka1.phouka.net) Received: from phouka1.phouka.net (localhost [127.0.0.1]) by phouka1.phouka.net (8.15.2/8.15.2) with ESMTPS id x9ALWs9G014376 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 10 Oct 2019 14:32:54 -0700 (PDT) (envelope-from warlock@phouka1.phouka.net) Received: (from warlock@localhost) by phouka1.phouka.net (8.15.2/8.15.2/Submit) id x9ALWr3c014375; Thu, 10 Oct 2019 14:32:53 -0700 (PDT) (envelope-from warlock) Date: Thu, 10 Oct 2019 14:32:53 -0700 From: John Kennedy To: Jan Beich Cc: freebsd-x11@freebsd.org Subject: Re: sway-1.2_1 crashes Message-ID: <20191010213253.GD46984@phouka1.phouka.net> References: <20191007165337.GA85696@phouka1.phouka.net> <20191007232340.GB85696@phouka1.phouka.net> <20191008172007.GA89365@phouka1.phouka.net> <20191010182705.GC46984@phouka1.phouka.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20191010182705.GC46984@phouka1.phouka.net> User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 46q48z52Bdz4c2y X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of warlock@phouka1.phouka.net has no SPF policy when checking 107.170.196.116) smtp.mailfrom=warlock@phouka1.phouka.net X-Spamd-Result: default: False [2.73 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[phouka.net]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.61)[0.605,0]; IP_SCORE(0.36)[ipnet: 107.170.192.0/18(0.15), asn: 14061(1.71), country: US(-0.05)]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.56)[0.561,0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[warlock@phouka.net,warlock@phouka1.phouka.net]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:14061, ipnet:107.170.192.0/18, country:US]; FROM_NEQ_ENVFROM(0.00)[warlock@phouka.net,warlock@phouka1.phouka.net]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Oct 2019 21:34:13 -0000 On Thu, Oct 10, 2019 at 11:27:05AM -0700, John Kennedy wrote: > I've had a good couple of days without starting firefox. I know GTK3 has some > wayland compile options, but firefox seems to depend on both GTK2 (which doesn't) > and GTK3 as far as pkg is concerned. So, I think I've found at least one reliable (repeatable) way to crash sway. Starting up sway, I pop one floating window (xterm). Run this little script: #!/bin/sh for y in 0 1 # 2 3 4 5 6 7 8 9 do for x in 0 1 2 3 4 5 6 7 8 9 do urxvt & echo $y $x sleep 1 done done It makes it to ~17 or (tiled) urxvt windows so before sway "crashes". IE, bails out to virtual terminal (where I can log in remotely and run vidcontrol to get my original console). I've done that about 8 times in a row. [from `sway -d'] ... 2019-10-10 14:06:10 - [xwayland/xwm.c:941] XCB_MAP_NOTIFY (41943047) 2019-10-10 14:06:10 - [xwayland/xwm.c:1206] XCB_CLIENT_MESSAGE (41943047) 2019-10-10 14:06:10 - [types/wlr_surface.c:609] New wlr_surface 0x80483b700 (res 0x803ab4480) 2019-10-10 14:06:10 - [xwayland/xwm.c:1375] New xwayland surface: 0x80483b700 2019-10-10 14:06:10 - [xwayland/xwm.c:391] XCB_ATOM_WM_CLASS: urxvt URxvt 2019-10-10 14:06:10 - [xwayland/xwm.c:441] XCB_ATOM_WM_NAME: urxvt 2019-10-10 14:06:10 - [xwayland/xwm.c:525] WM_PROTOCOLS (2) 2019-10-10 14:06:10 - [xwayland/xwm.c:555] WM_HINTS (9) 2019-10-10 14:06:10 - [xwayland/xwm.c:607] WM_NORMAL_HINTS (18) 2019-10-10 14:06:10 - [xwayland/xwm.c:441] XCB_ATOM_WM_NAME: urxvt 2019-10-10 14:06:10 - [xwayland/xwm.c:479] NET_WM_PID 7257 (EE) Fatal server error: (EE) failed to read Wayland events: Broken pipe (EE) xterm: fatal IO error 35 (Resource temporarily unavailable) or KillClient on X server ":0" Segmentation fault It died about 17 debugging lines into a ~226-line series for opening a urxvt window. If you run it without the sleep, it'll complain that the X display isn't available but not crash, at least in my simple test of ~20 runs. [pkg info | grep -e sway- -e wlroot -e wayland] sway-1.2_3 i3-compatible Wayland compositor wayland-1.16.0_1 Wayland composite "server" wayland-protocols-1.17 Wayland protocols wlroots-0.8.1 Modular Wayland compositor library xwayland-1.19.1_11,1 X Clients under Wayland