public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jpalus at fastmail dot com" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/28990] ld.so --verify segfaults on cc1 binary on arm 32bit
Date: Tue, 22 Mar 2022 15:53:07 +0000	[thread overview]
Message-ID: <bug-28990-131-WMfTDDjy9K@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-28990-131@http.sourceware.org/bugzilla/>

https://sourceware.org/bugzilla/show_bug.cgi?id=28990

--- Comment #1 from Jan Palus <jpalus at fastmail dot com> ---
Looks like it might be related to linux kernel 5.17. It appears to work fine
with 5.15 and 5.16.

likely not very useful but strace between versions:
5.15:
execve("/lib/ld-linux-armhf.so.3", ["/lib/ld-linux-armhf.so.3", "--verify",
"/usr/lib/gcc/armv6hl-pld-linux-g"...], 0x7e8365ac /* 52 vars */) = 0
brk(NULL)                               = 0xd93000
openat(AT_FDCWD, "/usr/lib/gcc/armv6hl-pld-linux-gnueabi/11.2.0/cc1",
O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\2\0(\0\1\0\0\0P(\32\0004\0\0\0"...,
512) = 512
mmap2(0x10000, 20832256, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x10000
mmap2(0x13fe000, 98304, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x13de000) = 0x13fe000
mmap2(0x1416000, 945808, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x1416000
close(3)                                = 0
exit_group(0)                           = ?
+++ exited with 0 +++

5.17:
execve("/lib/ld-linux-armhf.so.3", ["/lib/ld-linux-armhf.so.3", "--verify",
"/usr/lib/gcc/armv6hl-pld-linux-g"...], 0x7ec004ec /* 57 vars */) = 0
brk(NULL)                               = 0xc89000
openat(AT_FDCWD, "/usr/lib/gcc/armv6hl-pld-linux-gnueabi/11.2.0/cc1",
O_RDONLY|O_LARGEFILE|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\3\0\0\0\0\0\0\0\0\2\0(\0\1\0\0\0P(\32\0004\0\0\0"...,
512) = 512
mmap2(0x10000, 20832256, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0) = 0x10000
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x10} ---

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  reply	other threads:[~2022-03-22 15:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-22 15:27 [Bug libc/28990] New: " jpalus at fastmail dot com
2022-03-22 15:53 ` jpalus at fastmail dot com [this message]
2022-03-23 19:10 ` [Bug libc/28990] " jpalus at fastmail dot com
2022-03-23 23:46 ` jpalus at fastmail dot com
2022-03-24  9:04 ` schwab@linux-m68k.org
2022-03-30 12:50 ` jpalus at fastmail dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-28990-131-WMfTDDjy9K@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=glibc-bugs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).