public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* Failing DT_RELR tests and --enable-hardcoded-path-in-tests?
@ 2022-10-28 21:37 Carlos O'Donell
  2022-10-28 22:17 ` H.J. Lu
  0 siblings, 1 reply; 2+ messages in thread
From: Carlos O'Donell @ 2022-10-28 21:37 UTC (permalink / raw)
  To: libc-alpha, H.J. Lu, Fangrui Song

HJ,

In my testing on the recently about to be released Fedora 37 I noted the
following two failures:

tests.sum:FAIL: elf/tst-relr3
tests.sum:FAIL: elf/tst-relr4

cat elf/tst-relr3.test-result 
FAIL: elf/tst-relr3
original exit status 127

env GCONV_PATH=/home/carlos/build/glibc-review/iconvdata LOCPATH=/home/carlos/build/glibc-review/localedata LC_ALL=C  /home/carlos/build/glibc-review/elf/tst-relr3  > /home/carlos/build/glibc-review/elf/tst-relr3.out; \
../scripts/evaluate-test.sh elf/tst-relr3 $? false false > /home/carlos/build/glibc-review/elf/tst-relr3.test-result
...
/home/carlos/build/glibc-review/elf/tst-relr3: error while loading shared libraries: tst-relr-mod3b.so: cannot open shared object file: No such file or directory

In the hardcoded path mode we do not add any additional paths to search
for tst-relr-mod3b.so that is depended upon by tst-relr-mod3a.so.

Under Fedora we have DT_RUNPATH only:
 0x000000000000001d (RUNPATH)            Library runpath: [/home/carlos/build/glibc-review:/home/carlos/build/glibc-review/math:/home/carlos/build/glibc-review/elf:/home/carlos/build/glibc-review/dlfcn:/home/carlos/build/glibc-review/nss:/home/carlos/build/glibc-review/nis:/home/carlos/build/glibc-review/rt:/home/carlos/build/glibc-review/resolv:/home/carlos/build/glibc-review/mathvec:/home/carlos/build/glibc-review/support:/home/carlos/build/glibc-review/crypt:/home/carlos/build/glibc-review/nptl]

Do we need to add some rpath usage here when building the module?

Suggestions?

-- 
Cheers,
Carlos.


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

* Re: Failing DT_RELR tests and --enable-hardcoded-path-in-tests?
  2022-10-28 21:37 Failing DT_RELR tests and --enable-hardcoded-path-in-tests? Carlos O'Donell
@ 2022-10-28 22:17 ` H.J. Lu
  0 siblings, 0 replies; 2+ messages in thread
From: H.J. Lu @ 2022-10-28 22:17 UTC (permalink / raw)
  To: Carlos O'Donell; +Cc: libc-alpha, Fangrui Song

On Fri, Oct 28, 2022 at 2:37 PM Carlos O'Donell <carlos@redhat.com> wrote:
>
> HJ,
>
> In my testing on the recently about to be released Fedora 37 I noted the
> following two failures:
>
> tests.sum:FAIL: elf/tst-relr3
> tests.sum:FAIL: elf/tst-relr4
>
> cat elf/tst-relr3.test-result
> FAIL: elf/tst-relr3
> original exit status 127
>
> env GCONV_PATH=/home/carlos/build/glibc-review/iconvdata LOCPATH=/home/carlos/build/glibc-review/localedata LC_ALL=C  /home/carlos/build/glibc-review/elf/tst-relr3  > /home/carlos/build/glibc-review/elf/tst-relr3.out; \
> ../scripts/evaluate-test.sh elf/tst-relr3 $? false false > /home/carlos/build/glibc-review/elf/tst-relr3.test-result
> ...
> /home/carlos/build/glibc-review/elf/tst-relr3: error while loading shared libraries: tst-relr-mod3b.so: cannot open shared object file: No such file or directory
>
> In the hardcoded path mode we do not add any additional paths to search
> for tst-relr-mod3b.so that is depended upon by tst-relr-mod3a.so.
>
> Under Fedora we have DT_RUNPATH only:
>  0x000000000000001d (RUNPATH)            Library runpath: [/home/carlos/build/glibc-review:/home/carlos/build/glibc-review/math:/home/carlos/build/glibc-review/elf:/home/carlos/build/glibc-review/dlfcn:/home/carlos/build/glibc-review/nss:/home/carlos/build/glibc-review/nis:/home/carlos/build/glibc-review/rt:/home/carlos/build/glibc-review/resolv:/home/carlos/build/glibc-review/mathvec:/home/carlos/build/glibc-review/support:/home/carlos/build/glibc-review/crypt:/home/carlos/build/glibc-review/nptl]
>
> Do we need to add some rpath usage here when building the module?

Yes.

> Suggestions?

Here is a patch:

https://patchwork.sourceware.org/project/glibc/list/?series=13666

-- 
H.J.

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

end of thread, other threads:[~2022-10-28 22:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-28 21:37 Failing DT_RELR tests and --enable-hardcoded-path-in-tests? Carlos O'Donell
2022-10-28 22:17 ` H.J. Lu

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