Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 31 Jul 2022 21:24:13 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 265542] devel/pkgconf: endless loop processing grpc+ configuration
Message-ID:  <bug-265542-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D265542

            Bug ID: 265542
           Summary: devel/pkgconf: endless loop processing grpc+
                    configuration
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: bapt@FreeBSD.org
          Reporter: fuz@fuz.su
                CC: sunpoet@FreeBSD.org
          Assignee: bapt@FreeBSD.org
             Flags: maintainer-feedback?(bapt@FreeBSD.org)

During a test build of devel/bear on armv7 FreeBSD 13.1 I noticed that
pkg-config 1.8.0 got stuck in an endless loop in this command (processing
configuration for devel/grpc 1.47.1,2):

    pkgconf --static --cflags-only-I protobuf grpc++

The process seems to be allocating memory every once in a while.  Here is a
backtrace; unfortunately I do not have debug symbols.

0x400ce0d0 in pkgconf_fragment_copy () from /usr/local/lib/libpkgconf.so.3=
=20=20=20=20=20=20
(gdb) backtrace=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
#0  0x400ce0d0 in pkgconf_fragment_copy () from /usr/local/lib/libpkgconf.s=
o.3=20=20
#1  0x400cd380 in ?? () from /usr/local/lib/libpkgconf.so.3=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
#2  0x400cca90 in pkgconf_pkg_traverse () from /usr/local/lib/libpkgconf.so=
.3=20=20=20
#3  0x400cd054 in ?? () from /usr/local/lib/libpkgconf.so.3
#4  0x400ccc2c in pkgconf_pkg_traverse () from /usr/local/lib/libpkgconf.so=
.3=20=20=20
#5  0x400cd054 in ?? () from /usr/local/lib/libpkgconf.so.3=20
#6  0x400ccc2c in pkgconf_pkg_traverse () from /usr/local/lib/libpkgconf.so=
.3=20=20=20
#7  0x400cd054 in ?? () from /usr/local/lib/libpkgconf.so.3
#8  0x400ccc2c in pkgconf_pkg_traverse () from /usr/local/lib/libpkgconf.so=
.3=20=20=20
#9  0x400cd054 in ?? () from /usr/local/lib/libpkgconf.so.3
#10 0x400ccc2c in pkgconf_pkg_traverse () from /usr/local/lib/libpkgconf.so=
.3=20=20=20
#11 0x400cd054 in ?? () from /usr/local/lib/libpkgconf.so.3
#12 0x400ccc2c in pkgconf_pkg_traverse () from /usr/local/lib/libpkgconf.so=
.3=20=20=20
#13 0x400cd054 in ?? () from /usr/local/lib/libpkgconf.so.3=20=20=20=20=20=
=20=20=20=20=20=20=20=20
#14 0x400ccc2c in pkgconf_pkg_traverse () from /usr/local/lib/libpkgconf.so=
.3=20=20=20
#15 0x400cd054 in ?? () from /usr/local/lib/libpkgconf.so.3=20=20=20=20=20=
=20=20=20=20=20=20=20=20
#16 0x400ccc2c in pkgconf_pkg_traverse () from /usr/local/lib/libpkgconf.so=
.3=20=20=20
#17 0x400cd054 in ?? () from /usr/local/lib/libpkgconf.so.3
#18 0x400ccc2c in pkgconf_pkg_traverse () from /usr/local/lib/libpkgconf.so=
.3=20=20=20
#19 0x400cd054 in ?? () from /usr/local/lib/libpkgconf.so.3
#20 0x400ccc2c in pkgconf_pkg_traverse () from /usr/local/lib/libpkgconf.so=
.3=20=20=20
#21 0x400cd2c8 in pkgconf_pkg_cflags () from /usr/local/lib/libpkgconf.so.3=
=20=20=20=20=20
#22 0x0002588c in ?? ()
#23 0x400d0330 in pkgconf_queue_apply () from /usr/local/lib/libpkgconf.so.=
3=20=20=20=20
#24 0x00024ab4 in ?? ()=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20
#25 0x00023888 in ?? ()=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=
=20=20=20=20=20=20=20

The same issue can be reproduced on arm64 and amd64.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-265542-7788>