From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.1 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 28370 invoked from network); 12 Jan 2024 23:10:48 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 12 Jan 2024 23:10:48 -0000 Received: (qmail 3265 invoked by uid 550); 12 Jan 2024 23:09:07 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 3229 invoked from network); 12 Jan 2024 23:09:06 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705101034; x=1705705834; darn=lists.openwall.com; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=8rykd1D1S+ad3GBgq/TIzk1KZaeeOOsYRs8MjRCYt/g=; b=EjV6bufnMDd9MNmq22Nw4tTtHGHvUYmF+TGljsR7sQpRWGhNtfo9Hfn4T/wXjT4qog ZvthbSfEaXkmnzo3IjBzc49XX/s/16qZYqsCdY2Pv3viFHyUZoRDjYb5Qeg8HkG0ymOJ kiG6CPJA1Zc0rp1xPW/I5ktBPwcubWoBQSYi246UnxSqURgNe/VJFX4fGMl9A8Cf3Ihj Wspr5fynqz2gNn1r70x703vo7zp+CXf2oDQDmRxafXp09+4ZyoylMhvLxvqMV2RJV9DR azaLow6xWNc0EBjPUtwa2KjvJpSjqB+hW5+ohGskcgAsWTT93UEJlJyQTupFY9vEkiNQ 2eVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705101034; x=1705705834; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8rykd1D1S+ad3GBgq/TIzk1KZaeeOOsYRs8MjRCYt/g=; b=PAChyTH3RGzXa7eJpjydStdwfCuLYPPleK6Ey0DTZo/LnqbaX/Y/bp3JgylV0d6brF R+BkKmI9w0ic1h9iSu/8b+zAnQ8tGnS2TWr9xTeI2kyjiDiUlY8FIMbhJ2QcRnmQ9fam KfgdKuuM9k7L+cFlqwUmCNh3hXlHR1CgxqXAgkoo55M/pNbaxy4brWfAQ7gXWUCIkn33 BobnHKp3YfQ4LwWhDGVuU+svjGUhK7fDngf4TgcP3fWDSOyWnN8iWOCuuP+b1+jbUtk6 zKLLDJbi6FzOx8y45eQkm109BQjejdltp7qbnhxx3ItcP29DQKnPzmtS68d4sVZkRbQg aalw== X-Gm-Message-State: AOJu0Yxy1XaVnJUqG01amppxK3ymGHFSiBMwc7rPmI1uNsH1OOhFrINa YItQiYqsPZIx8GVjQjULzLTenA1fVGZ6dRyr4NQ= X-Google-Smtp-Source: AGHT+IEH9cp5ymFPAp6Rpqlcmg8gbaxyfKdK6JG5UJZjekHOy/jRpar1XgudJVhMfz2NX9bnTmX6GdHEK7a/sSqzE9s= X-Received: by 2002:a25:694f:0:b0:db7:dad0:76a9 with SMTP id e76-20020a25694f000000b00db7dad076a9mr1702281ybc.69.1705101034179; Fri, 12 Jan 2024 15:10:34 -0800 (PST) MIME-Version: 1.0 References: <20231221222513.799557a1@ncopa-desktop.lan> <20240104144811.GO1427497@port70.net> <20240111170323.GP1427497@port70.net> <20240112185713.GQ1427497@port70.net> In-Reply-To: <20240112185713.GQ1427497@port70.net> From: Cody Wetzel Date: Fri, 12 Jan 2024 17:10:24 -0600 Message-ID: To: Cody Wetzel , Natanael Copa , musl@lists.openwall.com, Markus Wichmann Content-Type: multipart/alternative; boundary="00000000000072d4a6060ec7c53e" Subject: Re: [musl] Segmentation fault musl 1.2.4 --00000000000072d4a6060ec7c53e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I did actually find that stackoverflow post and tried spinning up a new container but the results don't provide any useful information... / # /tmp/ld-musl-armhf.so.1 /usr/bin/gdb --args ls -l /tmp > GNU gdb (GDB) 12.1 > Copyright (C) 2022 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later < > http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. > Type "show copying" and "show warranty" for details. > This GDB was configured as "armv7-alpine-linux-musleabihf". > Type "show configuration" for configuration details. > For bug reporting instructions, please see: > . > Find the GDB manual and other documentation resources online at: > . > > For help, type "help". > Type "apropos word" to search for commands related to "word"... > Reading symbols from ls... > (No debugging symbols found in ls) > (gdb) run > Starting program: /bin/ls -l /tmp > During startup program terminated with signal SIGSEGV, Segmentation fault= . > On Fri, Jan 12, 2024 at 12:57=E2=80=AFPM Szabolcs Nagy wro= te: > * Cody Wetzel [2024-01-11 12:19:16 -0600]: > > Sorry, I'm definitely not that well versed in linux. I received the > > following... > > > > / # /tmp/ld-musl-armhf.so.1 /usr/bin/gdb --args ls -l /tmp > > > GNU gdb (GDB) 12.1 > > > Copyright (C) 2022 Free Software Foundation, Inc. > > > License GPLv3+: GNU GPL version 3 or later < > > > http://gnu.org/licenses/gpl.html> > > > This is free software: you are free to change and redistribute it. > > > There is NO WARRANTY, to the extent permitted by law. > > > Type "show copying" and "show warranty" for details. > > > This GDB was configured as "armv7-alpine-linux-musleabihf". > > > Type "show configuration" for configuration details. > > > For bug reporting instructions, please see: > > > . > > > Find the GDB manual and other documentation resources online at: > > > . > > > > > > For help, type "help". > > > Type "apropos word" to search for commands related to "word"... > > > Reading symbols from ls... > > > (No debugging symbols found in ls) > > > (gdb) run > > > Starting program: /bin/ls -l /tmp > > > warning: Error disabling address space randomization: Operation not > > > permitted > > > warning: Could not trace the inferior process. > > > warning: ptrace: Operation not permitted > > > warning: Error restoring address space randomization: Operation not > > > permitted > > > During startup program exited with code 127. > > use a container that's not restricted e.g. > > docker run --cap-add=3DSYS_PTRACE --security-opt seccomp=3Dunconfined > > (i found this with 2min web search) > --=20 Cody Wetzel codyawetzel@gmail.com (402)490-9242 --00000000000072d4a6060ec7c53e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I did actually find that stackoverflow=C2=A0post and tried= spinning up a new container but the results don't provide any useful i= nformation...

/ # /tmp/ld-musl-armhf.so.1 /usr/bin/gdb --args ls -l /tmp
GNU gdb (G= DB) 12.1
Copyright (C) 2022 Free Software Foundation, Inc.
License GP= Lv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: y= ou are free to change and redistribute it.
There is NO WARRANTY, to the = extent permitted by law.
Type "show copying" and "show wa= rranty" for details.
This GDB was configured as "armv7-alpine-= linux-musleabihf".
Type "show configuration" for configur= ation details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/g= db/bugs/>.
Find the GDB manual and other documentation resources = online at:
=C2=A0 =C2=A0 <http://www.gnu.org/software/gdb/documentation/>.
=
For help, type "help".
Type "apropos word" to se= arch for commands related to "word"...
Reading symbols from ls= ...
(No debugging symbols found in ls)
(gdb) run
Starting program:= /bin/ls -l /tmp
During startup program terminated with signal SIGSEGV, = Segmentation fault.

On Fri, Jan 12, 2024 at 12:57=E2=80=AFP= M Szabolcs Nagy <nsz@port70.net>= ; wrote:
* Cody = Wetzel <codya= wetzel@gmail.com> [2024-01-11 12:19:16 -0600]:
> Sorry, I'm definitely not that well versed in linux.=C2=A0 I recei= ved the
> following...
>
> / # /tmp/ld-musl-armhf.so.1 /usr/bin/gdb --args ls -l /tmp
> > GNU gdb (GDB) 12.1
> > Copyright (C) 2022 Free Software Foundation, Inc.
> > License GPLv3+: GNU GPL version 3 or later <
> > http://gnu.org/licenses/gpl.html>
> > This is free software: you are free to change and redistribute it= .
> > There is NO WARRANTY, to the extent permitted by law.
> > Type "show copying" and "show warranty" for d= etails.
> > This GDB was configured as "armv7-alpine-linux-musleabihf&qu= ot;.
> > Type "show configuration" for configuration details. > > For bug reporting instructions, please see:
> > <https://www.gnu.org/software/gdb/bugs/>.<= br> > > Find the GDB manual and other documentation resources online at:<= br> > >=C2=A0 =C2=A0 =C2=A0<http://www.gnu.org/so= ftware/gdb/documentation/>.
> >
> > For help, type "help".
> > Type "apropos word" to search for commands related to &= quot;word"...
> > Reading symbols from ls...
> > (No debugging symbols found in ls)
> > (gdb) run
> > Starting program: /bin/ls -l /tmp
> > warning: Error disabling address space randomization: Operation n= ot
> > permitted
> > warning: Could not trace the inferior process.
> > warning: ptrace: Operation not permitted
> > warning: Error restoring address space randomization: Operation n= ot
> > permitted
> > During startup program exited with code 127.

use a container that's not restricted e.g.

docker run --cap-add=3DSYS_PTRACE --security-opt seccomp=3Dunconfined

(i found this with 2min web search)


--
Co= dy Wetzel
cod= yawetzel@gmail.com
(402)490-9242
--00000000000072d4a6060ec7c53e--