From nobody Sun May 22 20:43:08 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 909331AE9BE7 for ; Sun, 22 May 2022 20:43:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4L5sqJ2f8cz3pjt for ; Sun, 22 May 2022 20:43:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 3AC08220FF for ; Sun, 22 May 2022 20:43:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 24MKh8FF003590 for ; Sun, 22 May 2022 20:43:08 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 24MKh8i1003589 for ports-bugs@FreeBSD.org; Sun, 22 May 2022 20:43:08 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 264158] devel/pkconf: loop forever in Haskell package Date: Sun, 22 May 2022 20:43:08 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: alexis.praga@free.fr X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1653252188; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HYZWaQNYpqTbraOSgjJA41R8kfURJBZsEgwiyfiwTDM=; b=wAgbLUjAwtRKOOKT9Ih7e2Vdp2enNDr+T/UrGuqDIy0i6iu3mf7QsRomDIWCt+FEKmVJQB qDr6L35brZM0jAHiocYp0nyzYgmtbQ6MOtrfZ2S1d2nGd1eaizu7xSzKIl6TNScHA6MFes YMds7dPZ5jWk1sik3O5xyIHWdOcGK9Q6wZ/7iyiV40ds/wNAvWl6sjEAAki2GzmlyV0H5C QtmlmC/ji2NxiB7H6d9D+cShZIoN0dbEWdNnwg/sldhu5+ecc1X26hwsuJX+CVJdffQrD0 /zzkHpIIxouybO+JkiFf25wtKIWESwZSeb/gNJFJ4CYnjkmDoczgHvPNTJqSOA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1653252188; a=rsa-sha256; cv=none; b=vrmrskzOQcTzA4F1mCX4aKoChGi79rIloQfHqJkiNYE+Ad0gD18Du7MRljYYPqUf+BVO/l HrMdamk3r9VMNnUAG8Tt7HCIcgPQRHy1i88MDZHq96vOXqufr/jT+7FtgXNw/mAmJugk3I ZwNQnTFS8HuNU8QHIcoKrmxEOlV/0//W5Z1yn/ECuUeom74ncztRmRhUsXUMDinejuRrtg ur9O4Ptan0IP1nTnvpq/8hLoxHXWww+jpzhxU/bfBWO33ylBT4mO0hDyH0dmyb3AYue2Y2 75NW/kUH2+G8kOc9KDj3Pwf8FfVR9VixveQYAemhd5bCYEAdYEQfwFBzlMZgSQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D264158 Bug ID: 264158 Summary: devel/pkconf: loop forever in Haskell package Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: alexis.praga@free.fr CC: arrowd@FreeBSD.org Hi, I've discovered running `cabal install` for Haskell programmes takes a very long time, for example `xmonad`. With the help of @arrowd, here is a minimal reproducible example. 1. Run `make` in /usr/ports/devel/hs-ormolu 2. pkg-config takes a lot of CPU PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMM= AND 19887 root 1 89 0 13M 3156K CPU0 0 0:09 100.23% pkgc= onf 3. Running the command by hand is fast but inside make, it seems to be stuc= k. 4. Enable debug flags of `pkgconf` and get a backtrace: ---- #0 0x00000008003c1985 in memset () from /lib/libc.so.7 #1 0x0000000800385822 in snprintf () from /lib/libc.so.7 #2 0x0000000800258455 in pkgconf_trace (client=3D0x20d488 , filename=3D0x8002537a9 "libpkgconf/pkg.c", lineno=3D1346,=20 funcname=3D0x800252fed "pkgconf_pkg_t *pkgconf_pkg_verify_dependency(pkgconf_client_t *, pkgconf_dependency_t *, unsigned int *)", format=3D0x8002543ff "trying to verify dependency: %s") at libpkgconf/client.c:379 #3 0x000000080025aa03 in pkgconf_pkg_verify_dependency (client=3D0x20d488 , pkgdep=3D0x800a37f70, eflags=3D0x7ffffffe7174) at libpkgconf/pkg.c:1346 #4 0x000000080025b24b in pkgconf_pkg_walk_list (client=3D0x20d488 , parent=3D0x800a3b580, deplist=3D0x800a3b638, func=3D0x0, data=3D0x0, depth= =3D1986, skip_flags=3D0) at libpkgconf/pkg.c:1455 #5 0x000000080025ae30 in pkgconf_pkg_traverse (client=3D0x20d488 , root=3D0x800a3b580, func=3D0x0, data=3D0x0, maxdepth=3D1986, skip_flags=3D0= ) at libpkgconf/pkg.c:1581 #6 0x000000080025b345 in pkgconf_pkg_walk_list (client=3D0x20d488 , parent=3D0x800a6e180, deplist=3D0x800a6e238, func=3D0x0, data=3D0x0, depth= =3D1987, skip_flags=3D0) at libpkgconf/pkg.c:1481 #7 0x000000080025ae30 in pkgconf_pkg_traverse (client=3D0x20d488 , root=3D0x800a6e180, func=3D0x0, data=3D0x0, maxdepth=3D1987, skip_flags=3D0= ) at libpkgconf/pkg.c:1581 #8 0x000000080025b345 in pkgconf_pkg_walk_list (client=3D0x20d488 , parent=3D0x800a6e000, deplist=3D0x800a6e0b8, func=3D0x0, data=3D0x0, depth= =3D1988, skip_flags=3D0) at libpkgconf/pkg.c:1481 #9 0x000000080025ae30 in pkgconf_pkg_traverse (client=3D0x20d488 , root=3D0x800a6e000, func=3D0x0, data=3D0x0, maxdepth=3D1988, skip_flags=3D0= ) at libpkgconf/pkg.c:1581 #10 0x000000080025b345 in pkgconf_pkg_walk_list (client=3D0x20d488 , parent=3D0x800a70280, deplist=3D0x800a70338, func=3D0x0, data=3D0x0, depth= =3D1989, skip_flags=3D0) at libpkgconf/pkg.c:1481 #11 0x000000080025ae30 in pkgconf_pkg_traverse (client=3D0x20d488 , root=3D0x800a70280, func=3D0x0, data=3D0x0, maxdepth=3D1989, skip_flags=3D0= ) at libpkgconf/pkg.c:1581 #12 0x000000080025b345 in pkgconf_pkg_walk_list (client=3D0x20d488 , parent=3D0x800a6f500, deplist=3D0x800a6f5b8, func=3D0x0, data=3D0x0, depth= =3D1990, skip_flags=3D0) at libpkgconf/pkg.c:1481 #13 0x000000080025ae30 in pkgconf_pkg_traverse (client=3D0x20d488 , root=3D0x800a6f500, func=3D0x0, data=3D0x0, maxdepth=3D1990, skip_flags=3D0= ) at libpkgconf/pkg.c:1581 #14 0x000000080025b345 in pkgconf_pkg_walk_list (client=3D0x20d488 , parent=3D0x800a89f00, deplist=3D0x800a89fb8, func=3D0x0, data=3D0x0, depth= =3D1991, skip_flags=3D0) at libpkgconf/pkg.c:1481 #15 0x000000080025ae30 in pkgconf_pkg_traverse (client=3D0x20d488 , root=3D0x800a89f00, func=3D0x0, data=3D0x0, maxdepth=3D1991, skip_flags=3D0= ) at libpkgconf/pkg.c:1581 #16 0x000000080025b345 in pkgconf_pkg_walk_list (client=3D0x20d488 , parent=3D0x800a89180, deplist=3D0x800a89238, func=3D0x0, data=3D0x0, depth= =3D1992, skip_flags=3D0) at libpkgconf/pkg.c:1481 #17 0x000000080025ae30 in pkgconf_pkg_traverse (client=3D0x20d488 , root=3D0x800a89180, func=3D0x0, data=3D0x0, maxdepth=3D1992, skip_flags=3D0= ) at libpkgconf/pkg.c:1581 #18 0x000000080025b345 in pkgconf_pkg_walk_list (client=3D0x20d488 , parent=3D0x800aa6680, deplist=3D0x800aa6738, func=3D0x0, data=3D0x0, depth= =3D1993, skip_flags=3D0) at libpkgconf/pkg.c:1481 #19 0x000000080025ae30 in pkgconf_pkg_traverse (client=3D0x20d488 , root=3D0x800aa6680, func=3D0x0, data=3D0x0, maxdepth=3D1993, skip_flags=3D0= ) at libpkgconf/pkg.c:1581 #20 0x000000080025b345 in pkgconf_pkg_walk_list (client=3D0x20d488 , parent=3D0x800aa6380, deplist=3D0x800aa6438, func=3D0x0, data=3D0x0, depth= =3D1994, skip_flags=3D0) at libpkgconf/pkg.c:1481 #21 0x000000080025ae30 in pkgconf_pkg_traverse (client=3D0x20d488 , root=3D0x800aa6380, func=3D0x0, data=3D0x0, maxdepth=3D1994, skip_flags=3D0= ) at libpkgconf/pkg.c:1581 #22 0x000000080025b345 in pkgconf_pkg_walk_list (client=3D0x20d488 , parent=3D0x800a70e80, deplist=3D0x800a70f38, func=3D0x0, data=3D0x0, depth= =3D1995, skip_flags=3D0) at libpkgconf/pkg.c:1481 #23 0x000000080025ae30 in pkgconf_pkg_traverse (client=3D0x20d488 , root=3D0x800a70e80, func=3D0x0, data=3D0x0, maxdepth=3D1995, skip_flags=3D0= ) at libpkgconf/pkg.c:1581 #24 0x000000080025b345 in pkgconf_pkg_walk_list (client=3D0x20d488 , parent=3D0x800a70d00, deplist=3D0x800a70db8, func=3D0x0, data=3D0x0, depth= =3D1996, skip_flags=3D0) at libpkgconf/pkg.c:1481 #25 0x000000080025ae30 in pkgconf_pkg_traverse (client=3D0x20d488 , root=3D0x800a70d00, func=3D0x0, data=3D0x0, maxdepth=3D1996, skip_flags=3D0= ) at libpkgconf/pkg.c:1581 #26 0x000000080025b345 in pkgconf_pkg_walk_list (client=3D0x20d488 , parent=3D0x800ac9800, deplist=3D0x800ac98b8, func=3D0x0, data=3D0x0, depth= =3D1997, skip_flags=3D0) at libpkgconf/pkg.c:1481 #27 0x000000080025ae30 in pkgconf_pkg_traverse (client=3D0x20d488 , root=3D0x800ac9800, func=3D0x0, data=3D0x0, maxdepth=3D1997, skip_flags=3D0= ) at libpkgconf/pkg.c:1581 #28 0x000000080025b345 in pkgconf_pkg_walk_list (client=3D0x20d488 , parent=3D0x800aca400, deplist=3D0x800aca4b8, func=3D0x0, data=3D0x0, depth= =3D1998, skip_flags=3D0) at libpkgconf/pkg.c:1481 #29 0x000000080025ae30 in pkgconf_pkg_traverse (client=3D0x20d488 , root=3D0x800aca400, func=3D0x0, data=3D0x0, maxdepth=3D1998, skip_flags=3D0= ) at libpkgconf/pkg.c:1581 #30 0x000000080025b345 in pkgconf_pkg_walk_list (client=3D0x20d488 , parent=3D0x800ac9380, deplist=3D0x800ac9438, func=3D0x0, data=3D0x0, depth= =3D1999, skip_flags=3D0) at libpkgconf/pkg.c:1481 #31 0x000000080025ae30 in pkgconf_pkg_traverse (client=3D0x20d488 , root=3D0x800ac9380, func=3D0x0, data=3D0x0, maxdepth=3D1999, skip_flags=3D0= ) at libpkgconf/pkg.c:1581 #32 0x000000080025b345 in pkgconf_pkg_walk_list (client=3D0x20d488 , parent=3D0x7ffffffe7dd8, deplist=3D0x7ffffffe7e90, func=3D0x0, data=3D0x0, = depth=3D2000, skip_flags=3D0) at libpkgconf/pkg.c:1481 #33 0x000000080025ae30 in pkgconf_pkg_traverse (client=3D0x20d488 , root=3D0x7ffffffe7dd8, func=3D0x0, data=3D0x0, maxdepth=3D2000, skip_flags= =3D0) at libpkgconf/pkg.c:1581 #34 0x000000080025ac9e in pkgconf_pkg_verify_graph (client=3D0x20d488 , root=3D0x7ffffffe7dd8, depth=3D2000) at libpkgconf/pkg.c:1399 #35 0x0000000800260b1c in pkgconf_queue_verify (client=3D0x20d488 , world=3D0x7ffffffe7dd8, list=3D0x7ffffffe8090, maxdepth=3D2000) at libpkgconf/queue.c:116 #36 0x0000000800260bd6 in pkgconf_queue_validate (client=3D0x20d488 , list=3D0x7ffffffe8090, maxdepth=3D2000) at libpkgconf/queue.c:189 #37 0x0000000000206ea2 in main (argc=3D1147, argv=3D0x7fffffff8880) at cli/main.c:1308 --- 5. Continuing the execution and get a backtrace again result in the same th= ing. My configuration: - FreeBSD 13.0-RELEASE-p11 - ghc 8.10.7 and cabal-install 3.6.0.0 (from the ports tree) Thanks ! --=20 You are receiving this mail because: You are the assignee for the bug.=