From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Aug 5 11:40:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 23585315 for ; Mon, 5 Aug 2013 11:40:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0070328B8 for ; Mon, 5 Aug 2013 11:40:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r75Be0kg045109 for ; Mon, 5 Aug 2013 11:40:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r75Be0uT045069; Mon, 5 Aug 2013 11:40:00 GMT (envelope-from gnats) Resent-Date: Mon, 5 Aug 2013 11:40:00 GMT Resent-Message-Id: <201308051140.r75Be0uT045069@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Dominik Ernst Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id CB33F29B for ; Mon, 5 Aug 2013 11:32:18 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B92942881 for ; Mon, 5 Aug 2013 11:32:18 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r75BWIjh070405 for ; Mon, 5 Aug 2013 11:32:18 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r75BWIGx070404; Mon, 5 Aug 2013 11:32:18 GMT (envelope-from nobody) Message-Id: <201308051132.r75BWIGx070404@oldred.freebsd.org> Date: Mon, 5 Aug 2013 11:32:18 GMT From: Dominik Ernst To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/181049: lang/ghc: possible regression X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Aug 2013 11:40:01 -0000 >Number: 181049 >Category: ports >Synopsis: lang/ghc: possible regression >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Aug 05 11:40:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Dominik Ernst >Release: 9.1-RELEASE >Organization: >Environment: FreeBSD traal.dernst.org 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec 4 09:23:10 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 >Description: xmonad's spawn function seems to launch applications only in about 50% of cases. Usually this seems to affect X applications. This bug seems to occur with ghc 7.6.3 but not with ghc 7.4.2_1. For both ghc versions I tested it with xmonad 0.11 install from ports or hackage and the error occurs only with ghc 7.6.3. There are a few workarounds, for example using the definition of spawn from xmonad 0.8 seems to solve this issue. dezzy from IRC suggested using spawn' s = spawn $ "exe=`" ++ s ++ "` && eval \"exec $exe\"" Another observation I made with the command spawn "date >> $HOME/bla; urxvt" is that the output for date is written to `bla' every time, while the terminal (urxvt) does not always start properly. Also ghc 7.6.3 and xmonad 0.11 on debian linux (sorry I have to use that at work) does not have similar issues. This caused us to believe there might be a bug in FreeBSD's ghc. I would suspect one could identify the problematic function by comparing the definition of spawn from xmonad 0.8 and xmonad 0.11. >How-To-Repeat: Install ghc 7.6.3 from ports and xmonad 0.11 from ports or hackage. Then try opening a number of terminal windows (Mod-Shift-Enter) and see that a terminal is not always started after using that key combination. >Fix: >Release-Note: >Audit-Trail: >Unformatted: