From nobody Wed Nov 20 21:14:37 2024 X-Original-To: ports@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 4XtvJJ1HN9z5dmD0; Wed, 20 Nov 2024 21:14:40 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XtvJJ0nCbz4r05; Wed, 20 Nov 2024 21:14:40 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732137280; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZuRTErLrKZ4NNm/yv4LZBwiNNKq7BYvcdQ8pZTAM9ig=; b=tfzosAD8tbLJFXvU5kKvYffRiwIjKFiDCz90+ImRCjb3XGh0p/GK+9F+7Dmtu/MukSIvO1 Cef/59UigqGWjjetZ1N/82fRo/ZMMzanyk+eXwGDmbsEJT66n6nInQ8d5QHZqWKiDakWtQ pSaQyc+tvUE/HFNzkneIn5JFOwUxQrxdBO/r1Bm+6QpcsNE9XuemRCALDOff/ATSfRxwDH UbACCqN9ksV+FViP9jBrJOm6pRviK1Pt7z4PfajKiSy0hxnKqSEnul/F5wDBIjk49LVVGo 05Qe4Gjcos1TH7Z4vJh0JndbY5Ku18JnfL7Cir4Q2kLhKg+AOrVYDSw+ncwotA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732137280; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=ZuRTErLrKZ4NNm/yv4LZBwiNNKq7BYvcdQ8pZTAM9ig=; b=poMc9MRBjOu3nYcgGVp4D+rvW28/YeYvLKzb2XiOybU/s2J/IVdCiN/7xLMtQTKcOxJNIA P/OnpSuK4PD7gG5dNIS8mQp/bY4AuomJa8eY2qWL094r1Ag7lUP1U1ntr0O3CoSYbK+mad S//mmGuSImOLYSse6OdTLkcTOc7LCKL8jvhJXu+XADxqgX6E38B6GbapMBguoF+owiTZ/A LDFIL7fEUhwlpPnHmep3tkxK4xsZs3JquaXF3fsWJ1oMfbuo3vG6/FfCZc/pIHFPwlOKAT hpRMdK5GBlXoQrhXpQNpvk0OFD/vhjmUjJVlSQ4UVhuOFRSPwylRJObxcEBySw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732137280; a=rsa-sha256; cv=none; b=JNKsrUkPPYtf+t3lxmSkQWKW24gmg9lmmx6+mEYHFUnz9Gw9vNsK85BDe9GdBe3QN3DEmt iVKdv+8HecJ2N9wSFz038c5NOmXWE4iO+sek75tZk0FewXIsS/IIGbUHWH7dlgj1RL8H2d quUbPqLWvIhnUFTPqgH9TzWiUtuidmN5M33oDRvzNvUzYPHamjYoIqO5XIzxFu45eH05f6 mAAzOQPtvNfX8hRMLwpIaEiGPIniioUk4X79oYNwdLhkFgP+maXc5bII9FLxF0uTxoBKmE SPJbeWOF3xo/ThUcIEQLeCIaqJ3kWXIQdvWtVJXTEliIdRuXhXiqOUgPQcsdGA== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (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 (2048 bits) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "R10" (verified OK)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XtvJH6gQQz1Dkw; Wed, 20 Nov 2024 21:14:39 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (longrow.home.andric.com [192.168.0.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 1B5AB2DC2B; Wed, 20 Nov 2024 22:14:38 +0100 (CET) Content-Type: text/plain; charset=us-ascii List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ports@freebsd.org Sender: owner-freebsd-ports@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6.1.9\)) Subject: Re: port binary dumping core on recent head in poudriere From: Dimitry Andric In-Reply-To: Date: Wed, 20 Nov 2024 22:14:37 +0100 Cc: ports@freebsd.org, FreeBSD Current Content-Transfer-Encoding: quoted-printable Message-Id: <46E3A370-A3E0-4BAF-B707-87F94F98E248@FreeBSD.org> References: To: Guido Falsi X-Mailer: Apple Mail (2.3731.700.6.1.9) On 20 Nov 2024, at 18:32, Guido Falsi 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](__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/7037f03fabeb2b18b5efa84403f5a6d7a990f= 460/src/units.hpp#L11 >=20 > I could change the way it derives PI, but I'm not sure this is the = correct fix. 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? That said, it's rather crazy to calculate pi this way, when math.h has a = perfectly good M_PI define for this. You could replace this initialization with that, or try using constexpr = instead of const, but it is papering over the real problem, which seems = to be some unmapped library? -Dimitry