public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "danglin at gcc dot gnu.org" <sourceware-bugzilla@sourceware.org>
To: glibc-bugs@sourceware.org
Subject: [Bug libc/28749] New: Inconsistency detected by ld.so: rtld.c: 1632: dl_main: Assertion `GL(dl_rtld_map).l_libname' failed!
Date: Wed, 05 Jan 2022 22:36:31 +0000	[thread overview]
Message-ID: <bug-28749-131@http.sourceware.org/bugzilla/> (raw)

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

            Bug ID: 28749
           Summary: Inconsistency detected by ld.so: rtld.c: 1632:
                    dl_main: Assertion `GL(dl_rtld_map).l_libname' failed!
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: danglin at gcc dot gnu.org
                CC: drepper.fsp at gmail dot com, fweimer at redhat dot com
  Target Milestone: ---
              Host: hppa*-*-linux*
            Target: hppa*-*-linux*
             Build: hppa*-*-linux*

This change cause build issues and test fails on hppa:

commit 4fb4e7e821e36180835bf88e363f9f13b5797e3a (HEAD)
Author: Florian Weimer <fweimer@redhat.com>
Date:   Sun Dec 5 13:50:17 2021 +0100

    csu: Always use __executable_start in gmon-start.c

    Current binutils defines __executable_start as the lowest text
    address, so using the entry point address as a fallback is no
    longer necessary.  As a result, overriding <entry.h> is only
    necessary if the entry point is not called _start.

    The previous approach to define __ASSEMBLY__ to suppress the
    declaration breaks if headers included by <entry.h> are not
    compatible with __ASSEMBLY__.  This happens with rseq integration
    because it is necessary to include kernel headers in more places.

    Reviewed-by: H.J. Lu <hjl.tools@gmail.com>

# Copy these DSOs first so we can overwrite them with our own.
for dso in ` env LD_TRACE_LOADED_OBJECTS=1  \
        /home/dave/gnu/glibc/objdir/elf/ld.so.1 --library-path
/home/dave/gnu/gl
ibc/objdir:/home/dave/gnu/glibc/objdir/math:/home/dave/gnu/glibc/objdir/elf:/hom
e/dave/gnu/glibc/objdir/dlfcn:/home/dave/gnu/glibc/objdir/nss:/home/dave/gnu/gli
bc/objdir/nis:/home/dave/gnu/glibc/objdir/rt:/home/dave/gnu/glibc/objdir/resolv:
/home/dave/gnu/glibc/objdir/mathvec:/home/dave/gnu/glibc/objdir/support:/home/da
ve/gnu/glibc/objdir/crypt:/home/dave/gnu/glibc/objdir/nptl \
        /home/dave/gnu/glibc/objdir/testroot.pristine/bin/sh \
        | sed -n '/\//{s@.*=> /@/@;s/^[^/]*//;s/ .*//p;}'` ;\
  do \
    test -d `dirname /home/dave/gnu/glibc/objdir/testroot.pristine$dso` || \
      mkdir -p `dirname /home/dave/gnu/glibc/objdir/testroot.pristine$dso` ;\
     cp $dso /home/dave/gnu/glibc/objdir/testroot.pristine$dso ;\
  done
Inconsistency detected by ld.so: rtld.c: 1632: dl_main: Assertion
`GL(dl_rtld_map).l_libname' failed!

env GCONV_PATH=/home/dave/gnu/glibc/objdir/iconvdata
LOCPATH=/home/dave/gnu/glib
c/objdir/localedata LC_ALL=C   /home/dave/gnu/glibc/objdir/elf/ld.so.1
--library
-path
/home/dave/gnu/glibc/objdir:/home/dave/gnu/glibc/objdir/math:/home/dave/gn
u/glibc/objdir/elf:/home/dave/gnu/glibc/objdir/dlfcn:/home/dave/gnu/glibc/objdir
/nss:/home/dave/gnu/glibc/objdir/nis:/home/dave/gnu/glibc/objdir/rt:/home/dave/g
nu/glibc/objdir/resolv:/home/dave/gnu/glibc/objdir/mathvec:/home/dave/gnu/glibc/
objdir/support:/home/dave/gnu/glibc/objdir/crypt:/home/dave/gnu/glibc/objdir/npt
l /home/dave/gnu/glibc/objdir/csu/test-as-const-rtld-sizes  >
/home/dave/gnu/gli
bc/objdir/csu/test-as-const-rtld-sizes.out; \
../scripts/evaluate-test.sh csu/test-as-const-rtld-sizes $? false false >
/home/
dave/gnu/glibc/objdir/csu/test-as-const-rtld-sizes.test-result
Inconsistency detected by ld.so: rtld.c: 1632: dl_main: Assertion
`GL(dl_rtld_map).l_libname' failed!
Inconsistency detected by ld.so: rtld.c: 1632: dl_main: Assertion
`GL(dl_rtld_map).l_libname' failed!

FAIL: csu/test-as-const-rtld-sizes
original exit status 127

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

             reply	other threads:[~2022-01-05 22:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-05 22:36 danglin at gcc dot gnu.org [this message]
2022-01-07  8:58 ` [Bug libc/28749] " fweimer at redhat dot com
2022-01-07  9:02 ` fweimer at redhat dot com
2022-01-07 13:48 ` fweimer at redhat 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-28749-131@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).