From nobody Mon Jun 05 10:49:39 2023 X-Original-To: dev-commits-ports-main@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 4QZVjr1KZnz4ZZ54; Mon, 5 Jun 2023 10:49:52 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QZVjr0tqtz4XC9; Mon, 5 Jun 2023 10:49:52 +0000 (UTC) (envelope-from eduardo@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685962192; 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: in-reply-to:in-reply-to:references:references; bh=k7zuACKVajwITKEMj1oc5Xk+DbqOM+vMtIj6AWsrnLI=; b=P2NpThh1tM//2CaJIh0f3TgBDb4g0K5V5vgoRal+2rkJF4YjdFGrdYowbQvmsnmtZk0sab r4x3SfqyAELeMznW9EHYtPHJcmplH19ViWbKL5TPOOjzKyuwTrlS/xNjo84GYSLadHcGrH EIfJQENnS8hriH2fYFWeQyAYdfy4kQZv7LvZNQzbPfP2qbJcPAWgOPjPGS8kE/EKgtR/yq cEffG1xRUh3hQ9Hn46+T5kOJE+02q9FimnWrIrz6zdjApyses1X9SpHe6Uw/hjG+1lpOSb 6Hd/Ni+gDytzmi6FD6yuURZsWlPPttKtmnLARSYhR+Xlc5Mr9BbQeBRDWYcWlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685962192; 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: in-reply-to:in-reply-to:references:references; bh=k7zuACKVajwITKEMj1oc5Xk+DbqOM+vMtIj6AWsrnLI=; b=m4FDIMJTYnM4UmMCKGJ/KJEGmftia5kGb7RqdXR1BxxV17ws0adwCFIBLNdL4fTOISj/Ks 4/Ch+I4eTKzZFHySxkatqXIUHkCHFHtWo2+IkLsm9MgCs1ocbpmnVxRCzO0bYFP57Sy6Js CjhQVfekT6Jl+OVrzqXxtGz/gIjmcaAcg67aHFMlV9yvxdXMzXeH3BZofQDvgXo7aLyf2v M7P/FytS8QslwDwgHTZavgD5ACi0mFWoGpZasTDora2WNQI+3lyLMRXokDEAU1SgepSSEB iRB9JrWOhltp/oTgKl0h7gm1Zgjm8HwkfJKId0X5t8wZ4brWIUbFsQzdVbfDDA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685962192; a=rsa-sha256; cv=none; b=IbfL6h4wctE6/zTqtJ7ubnlyw2fw+xYmB7+3Lnl1Z5Q7yb2KG5Mu6Muvx4gR/aHG9q7LAz SPCOrtjMEaKXJ5ePrFtAmvPWn1TV1qKjTB8RZoKOis4zHNdVd/ewX2clotCtoiN9zohItQ Ao1gUZsnauLKUmIM2vuTDuePSzFRUvpiUYG11+rA5+xaI97eS7AanF+07qtsyqKtS0czDA oASuMWkevpxP9dv2eEBUkith4mvtET4b4CV49aQSfBXu5jiLhdalnjheztafhuQ7mDvOVN l8eOVfkVpiLQNCYRQCG7vQigKAsx7//KGQYP5f9Jg+IWcyL9fW9Kzu51uBcp2w== Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: eduardo) by smtp.freebsd.org (Postfix) with ESMTPSA id 4QZVjq6xQ6zFWX; Mon, 5 Jun 2023 10:49:51 +0000 (UTC) (envelope-from eduardo@freebsd.org) Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-65540715b4bso711039b3a.0; Mon, 05 Jun 2023 03:49:51 -0700 (PDT) X-Gm-Message-State: AC+VfDzPqqIhFJLuGvCA097XW+ElGiSroNCwr4AS6KduiL8AxMLnOr71 68rJ8SZ29GMDk+NpDOHniI6ULRZkiRTVN95jNdU= X-Google-Smtp-Source: ACHHUZ6gJwQd5PrrEN877+5KPP2yY+v6fppQ+yNxcpQ5dbT3tiovCA509xcSR7+m07+58gbHcIoJVQ9UIIMwdIOuiL0= X-Received: by 2002:a05:6a20:959b:b0:10d:76b8:f442 with SMTP id iu27-20020a056a20959b00b0010d76b8f442mr1528647pzb.37.1685962190913; Mon, 05 Jun 2023 03:49:50 -0700 (PDT) List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 References: <202306051020.355AKv8s099426@gitrepo.freebsd.org> In-Reply-To: <202306051020.355AKv8s099426@gitrepo.freebsd.org> From: Nuno Teixeira Date: Mon, 5 Jun 2023 11:49:39 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: git: f05f6dcedb5d - main - comms/gqrx: Turn off ASLR To: Ganael LAPLANCHE Cc: ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org Content-Type: multipart/alternative; boundary="0000000000007e88f605fd5fa903" X-ThisMailContainsUnwantedMimeParts: N --0000000000007e88f605fd5fa903 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Ganael, I didn't know that were a way to disabling aslr in a port! This is really nice. I'm having a lot of segfaults and tab crashing on firefox @aarch64 and mikael@ sugested turning it off to see if it fixes. I will test first with sysctl aslr off and if it works I will test port option. So syntax is: USES+=3D elfctl ELF_FEATURES=3D +noasr:? Thanks, Ganael LAPLANCHE escreveu no dia segunda, 5/06/2023 =C3=A0(s) 11:20: > The branch main has been updated by martymac: > > URL: > https://cgit.FreeBSD.org/ports/commit/?id=3Df05f6dcedb5dad5b7b515ebede9bf= 6a58de1d46c > > commit f05f6dcedb5dad5b7b515ebede9bf6a58de1d46c > Author: Ganael LAPLANCHE > AuthorDate: 2023-06-05 10:18:04 +0000 > Commit: Ganael LAPLANCHE > CommitDate: 2023-06-05 10:18:04 +0000 > > comms/gqrx: Turn off ASLR > > Disable ASLR to work around the following crash: > > Program terminated with signal SIGSEGV, Segmentation fault. > Address not mapped to object. > --Type for more, q to quit, c to continue without paging-- > 0 0x000000082e9feecf in volk_32f_x2_dot_prod_32f_a_avx2_fma > (result=3D0x85185d7e0, input=3D0x906a9ab80, taps=3D0x8927eaa00, num_point= s=3D289) > at > /usr/ports/devel/volk/work/volk-2.5.1/kernels/volk/volk_32f_x2_dot_prod_3= 2f.h:833 > 833 dotProduct +=3D ((*aPtr++) * (*bPtr++)); > [Current thread is 1 (LWP 126875)] > (gdb) bt > 0 0x000000082e9feecf in volk_32f_x2_dot_prod_32f_a_avx2_fma > (result=3D0x85185d7e0, input=3D0x906a9ab80, taps=3D0x8927eaa00, num_point= s=3D289) > at > /usr/ports/devel/volk/work/volk-2.5.1/kernels/volk/volk_32f_x2_dot_prod_3= 2f.h:833 > 1 0x000000082e776b17 in __volk_32f_x2_dot_prod_32f_a > (result=3D0x85185d7e0, input=3D0x906a9ab80, taps=3D0x8927eaa00, num_point= s=3D289) > at /usr/ports/devel/volk/work/.build/lib/volk.c:5336 > 2 0x0000000825fe0b83 in gr::filter::kernel::fir_filter float>::filterN(float*, float const*, unsigned long) () from > /usr/local/lib/libgnuradio-filter.so.3.8.4 > --- > comms/gqrx/Makefile | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/comms/gqrx/Makefile b/comms/gqrx/Makefile > index 927e049b2774..2974b7542287 100644 > --- a/comms/gqrx/Makefile > +++ b/comms/gqrx/Makefile > @@ -1,6 +1,7 @@ > PORTNAME=3D gqrx > PORTVERSION=3D 2.16 > DISTVERSIONPREFIX=3D v > +PORTREVISION=3D 1 > PORTEPOCH=3D 1 > CATEGORIES=3D comms hamradio > > @@ -31,7 +32,9 @@ LIB_DEPENDS=3D libgnuradio-runtime.so:comms/gnuradio \ > libjack.so:audio/jack \ > libportaudio.so:audio/portaudio > > -USES=3D cmake compiler:c++11-lang gl pkgconfig qt:5 > +USES=3D cmake compiler:c++11-lang elfctl gl pkgconfig qt:5 > + > +ELF_FEATURES=3D +noaslr:src/gqrx > > USE_GITHUB=3D yes > GH_ACCOUNT=3D gqrx-sdr > --=20 Nuno Teixeira FreeBSD Committer (ports) --0000000000007e88f605fd5fa903 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello Ganael,

I didn't k= now that were a way to disabling aslr in a port! This is really nice.
=

I'm having a lot of segfaults and tab crashing on f= irefox @aarch64 and= mikael@ sugested turning it off to see if it fixes.
I will test = first with sysctl aslr off and if it works I will test port option.

So syntax is:

USES+=3D elfctl


Ganael LAPLANCHE <martymac@freebsd.org> escreveu no dia s= egunda, 5/06/2023 =C3=A0(s) 11:20:
The branch main has been updated by martymac:

URL: https://cgi= t.FreeBSD.org/ports/commit/?id=3Df05f6dcedb5dad5b7b515ebede9bf6a58de1d46c

commit f05f6dcedb5dad5b7b515ebede9bf6a58de1d46c
Author:=C2=A0 =C2=A0 =C2=A0Ganael LAPLANCHE <martymac@FreeBSD.org> AuthorDate: 2023-06-05 10:18:04 +0000
Commit:=C2=A0 =C2=A0 =C2=A0Ganael LAPLANCHE <martymac@FreeBSD.org> CommitDate: 2023-06-05 10:18:04 +0000

=C2=A0 =C2=A0 comms/gqrx: Turn off ASLR

=C2=A0 =C2=A0 Disable ASLR to work around the following crash:

=C2=A0 =C2=A0 Program terminated with signal SIGSEGV, Segmentation fault. =C2=A0 =C2=A0 Address not mapped to object.
=C2=A0 =C2=A0 --Type <RET> for more, q to quit, c to continue without= paging--
=C2=A0 =C2=A0 0=C2=A0 0x000000082e9feecf in volk_32f_x2_dot_prod_32f_a_avx2= _fma (result=3D0x85185d7e0, input=3D0x906a9ab80, taps=3D0x8927eaa00, num_po= ints=3D289) at /usr/ports/devel/volk/work/volk-2.5.1/kernels/volk/volk_32f_= x2_dot_prod_32f.h:833
=C2=A0 =C2=A0 833=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0dotProduct= +=3D ((*aPtr++) * (*bPtr++));
=C2=A0 =C2=A0 [Current thread is 1 (LWP 126875)]
=C2=A0 =C2=A0 (gdb) bt
=C2=A0 =C2=A0 0=C2=A0 0x000000082e9feecf in volk_32f_x2_dot_prod_32f_a_avx2= _fma (result=3D0x85185d7e0, input=3D0x906a9ab80, taps=3D0x8927eaa00, num_po= ints=3D289) at /usr/ports/devel/volk/work/volk-2.5.1/kernels/volk/volk_32f_= x2_dot_prod_32f.h:833
=C2=A0 =C2=A0 1=C2=A0 0x000000082e776b17 in __volk_32f_x2_dot_prod_32f_a (r= esult=3D0x85185d7e0, input=3D0x906a9ab80, taps=3D0x8927eaa00, num_points=3D= 289) at /usr/ports/devel/volk/work/.build/lib/volk.c:5336
=C2=A0 =C2=A0 2=C2=A0 0x0000000825fe0b83 in gr::filter::kernel::fir_filter&= lt;float, float, float>::filterN(float*, float const*, unsigned long) ()= from /usr/local/lib/libgnuradio-filter.so.3.8.4
---
=C2=A0comms/gqrx/Makefile | 5 ++++-
=C2=A01 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/comms/gqrx/Makefile b/comms/gqrx/Makefile
index 927e049b2774..2974b7542287 100644
--- a/comms/gqrx/Makefile
+++ b/comms/gqrx/Makefile
@@ -1,6 +1,7 @@
=C2=A0PORTNAME=3D=C2=A0 =C2=A0 =C2=A0 gqrx
=C2=A0PORTVERSION=3D=C2=A0 =C2=A02.16
=C2=A0DISTVERSIONPREFIX=3D=C2=A0 =C2=A0 =C2=A0v
+PORTREVISION=3D=C2=A0 1
=C2=A0PORTEPOCH=3D=C2=A0 =C2=A0 =C2=A01
=C2=A0CATEGORIES=3D=C2=A0 =C2=A0 comms hamradio

@@ -31,7 +32,9 @@ LIB_DEPENDS=3D=C2=A0 libgnuradio-runtime.so:comms/gnuradi= o \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 libjack.so:audio/ja= ck \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 libportaudio.so:aud= io/portaudio

-USES=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 cmake compiler:c++11-lang gl pkg= config qt:5
+USES=3D=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 cmake compiler:c++11-lang elfctl= gl pkgconfig qt:5
+
+ELF_FEATURES=3D=C2=A0 +noaslr:src/gqrx

=C2=A0USE_GITHUB=3D=C2=A0 =C2=A0 yes
=C2=A0GH_ACCOUNT=3D=C2=A0 =C2=A0 gqrx-sdr


--
Nuno Teixeira
FreeBSD Committ= er (ports)
--0000000000007e88f605fd5fa903--