Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Nov 2024 09:39:03 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        Dimitry Andric <dim@FreeBSD.org>, Current FreeBSD <freebsd-current@freebsd.org>, FreeBSD Mailing List <freebsd-ports@freebsd.org>
Cc:        Guido Falsi <mad@madpilot.net>
Subject:   Re: port binary dumping core on recent head in poudriere
Message-ID:  <5B4B362E-EF6A-4847-8B7D-FEFD97A65F52@yahoo.com>
References:  <5B4B362E-EF6A-4847-8B7D-FEFD97A65F52.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Dimitry Andric <dim_at_FreeBSD.org> wrote on
Date: Thu, 21 Nov 2024 17:27:36 UTC :

> On 21 Nov 2024, at 18:17, Guido Falsi <mad@madpilot.net> wrote:
> >=20
> > On 20/11/24 23:50, Guido Falsi wrote:
> >> On 20/11/24 22:14, Dimitry Andric wrote:
> >>> On 20 Nov 2024, at 18:32, Guido Falsi <mad@madpilot.net> wrote:
> >>>> I've noticed that recently some ports are dumping core during =
builds of dependencies in head in poudriere.
> >>>>=20
> >>>> I'm seeing this for example with sassc crashing while trying to =
build x11-themes/greybird-theme.
> >>>>=20
> >>>> My first suspect was the llvm upgrade in head, but forcing sassc =
and libsass to build with older clang via USES=3Dllvm:max=3D18 is not =
helping.
> >>>>=20
> >>>> I did recompile the offending programs with debug and tried a =
backtrace and got this:
> >>>>=20
> >>>> ```
> >>>> (lldb) bt
> >>>> * thread #1, name =3D 'sassc', stop reason =3D signal SIGSEGV: =
invalid permissions for mapped object (fault address: 0x82374a000)
> >>>> * frame #0: 0x000000082374a000 libsass.so.1
> >>>> frame #1: 0x0000000823865a86 libsass.so.1`_GLOBAL__sub_I_ast.cpp =
[inlined] double std::__1::__math::acos[abi:se190102]<int, 0>(__x=3D-1) =
at inverse_trigonometric_functions.h:40:10
> >>>> frame #2: 0x0000000823865a81 libsass.so.1`_GLOBAL__sub_I_ast.cpp =
[inlined] __cxx_global_var_init at units.hpp:11:21
> >>>> frame #3: 0x0000000823865a81 libsass.so.1`_GLOBAL__sub_I_ast.cpp =
at ast.cpp:0
> >>>> frame #4: 0x00001eac6e3f078d ld-elf.so.1
> >>>> frame #5: 0x00001eac6e3ef349 ld-elf.so.1
> >>>> frame #6: 0x00001eac6e3ec099 ld-elf.so.1`___lldb_unnamed_symbol27 =
+ 25
> >>>> ```
> >>>>=20
> >>>> which points me to this upstream line of code: =
https://github.com/ =
sass/libsass/blob/7037f03fabeb2b18b5efa84403f5a6d7a990f460/src/ =
units.hpp#L11
> >>>>=20
> >>>> I could change the way it derives PI, but I'm not sure this is =
the correct fix.
> >>>=20
> >>> At first sight this looks like some sort of initialization order =
fiasco, but without a full backtrace and some indications on what it is =
exactly segfaulting on it is hard to say. Is it reproducible?
> >> It is fully reproducible here by just compiling the sassc port and =
trying to run it. It segfaults on startup.
> >=20
> > I'm following up to myself to note that I'm observing the same issue =
in textproc/opensp if trying to run anything linked with the library, =
for example its own binary "osx".
> >=20
> > I noticed it because it is required by libosp and then by gnucash =
which I use and maintain. libosp fails during configure due to a test =
binary compiled by configure script dumping core.
> >=20
> > I suspect there are more around the ports tree.
>=20
> I cannot reproduce this at all. For me the sassc binary runs fine, and =
also the x11-themes/greybird-theme port builds fine. Then again, my base =
system is probably older than yours? Which revision are you running?

Per my detailed report of gdb session information, I reproduced
this via my poudriere-devel build of textproc/sassc in/for the
amd64 context:

System:

# uname -apKU
you have mail
FreeBSD 7950X3D-ZFS 15.0-CURRENT FreeBSD 15.0-CURRENT #151 =
main-n273696-43e045c1733d-dirty: Mon Nov 18 14:46:15 PST 2024     =
root@7950X3D-ZFS:/usr/obj/BUILDs/main-amd64-nodbg-clang/usr/main-src/amd64=
.amd64/sys/GENERIC-NODBG amd64 amd64 1500027 1500027

 # ~/fbsd-based-on-what-commit.sh -C /usr/main-src/
43e045c1733d (HEAD -> main, freebsd/main, freebsd/HEAD) atf: Guard =
libexec/atf with WITH_TESTS_SUPPORT
Author:     Franco Fichtner <franco@opnsense.org>
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-11-18 18:36:46 +0000
branch: main
merge-base: 43e045c1733d50fad79f3a53e05140b8dc0d7fa6
merge-base: CommitDate: 2024-11-18 18:36:46 +0000
n273696 (--first-parent --count for merge-base)

Ports:

# ~/fbsd-based-on-what-commit.sh -C /usr/ports/
ae2ef5f4fb6d (HEAD -> main, freebsd/main, freebsd/HEAD) www/opengist: =
Mark as broken on i386
Author:     Santhosh Raju <fox@FreeBSD.org>
Commit:     Santhosh Raju <fox@FreeBSD.org>
CommitDate: 2024-11-19 07:07:08 +0000
branch: main
merge-base: ae2ef5f4fb6d367a3002c1339d523bc7f8e07e34
merge-base: CommitDate: 2024-11-19 07:07:08 +0000
n686395 (--first-parent --count for merge-base)




=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5B4B362E-EF6A-4847-8B7D-FEFD97A65F52>