public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug dynamic-link/28868] New: Dynamic loader DFS algorithm segfaults on missing libraries
@ 2022-02-07 14:44 glebfm at altlinux dot org
  2022-02-07 14:45 ` [Bug dynamic-link/28868] " glebfm at altlinux dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: glebfm at altlinux dot org @ 2022-02-07 14:44 UTC (permalink / raw)
  To: glibc-bugs

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

            Bug ID: 28868
           Summary: Dynamic loader DFS algorithm segfaults on missing
                    libraries
           Product: glibc
           Version: 2.35
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: dynamic-link
          Assignee: unassigned at sourceware dot org
          Reporter: glebfm at altlinux dot org
  Target Milestone: ---

$ mkdir missing
$ gcc -shared -o missing/libmissing1.so -Wl,-soname,libmissing1.so
$ gcc -shared -o missing/libmissing2.so -Wl,-soname,libmissing2.so
$ gcc -Wl,--no-as-needed -shared missing/libmissing1.so missing/libmissing2.so
-o libexists.so.0 -Wl,-soname,libexists.so.0
$ gcc -Wl,--no-as-needed -shared libexists.so.0 -o libtest.so
-Wl,-soname,libtest.so
$ GLIBC_TUNABLES=glibc.rtld.dynamic_sort=1 LD_LIBRARY_PATH="$PWD"
LD_TRACE_LOADED_OBJECTS=1 /lib64/ld-linux-x86-64.so.2 ./libtest.so
        linux-vdso.so.1 (0x00007fffc244d000)
        libexists.so.0 => /usr/src/libexists.so.0 (0x00007f9a59459000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f9a59248000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f9a59465000)
        libmissing1.so => not found
        libmissing2.so => not found
$ GLIBC_TUNABLES=glibc.rtld.dynamic_sort=2 LD_LIBRARY_PATH="$PWD"
LD_TRACE_LOADED_OBJECTS=1 /lib64/ld-linux-x86-64.so.2 ./libtest.so
Segmentation fault

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-04-27 16:43 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-07 14:44 [Bug dynamic-link/28868] New: Dynamic loader DFS algorithm segfaults on missing libraries glebfm at altlinux dot org
2022-02-07 14:45 ` [Bug dynamic-link/28868] " glebfm at altlinux dot org
2022-02-07 16:29 ` fweimer at redhat dot com
2022-02-07 18:51 ` adhemerval.zanella at linaro dot org
2022-02-07 19:05 ` fweimer at redhat dot com
2022-02-07 19:31 ` adhemerval.zanella at linaro dot org
2022-02-07 19:40 ` fweimer at redhat dot com
2022-02-07 19:53 ` adhemerval.zanella at linaro dot org
2022-02-23 17:31 ` adhemerval.zanella at linaro dot org
2022-02-23 19:53 ` freswa at archlinux dot org
2022-04-27 16:43 ` adhemerval.zanella at linaro dot org

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).