Re: [RFC]: Test Were failing on Fedora Linux.
- From
Christian Couder <christian.couder@gmail.com>
- Date
- Nov 9, 2024, 14:01 UTC
- Message-ID
- <CAP8UFD2=imvtamewLN+VvKDK83aL7NhGAb=MjvHQ2OwaK-n5UQ@mail.gmail.com>
- In-Reply-To
- <CAPSxiM9UGLVrOh6XR5fn38ginCVKMOc7yQMcm+qsaF3bi+anSw@mail.gmail.com>
Hi Usman,
On Sat, Nov 9, 2024 at 10:33 AM Usman Akinyemi <usmanakinyemi202@gmail.com> wrote:
> > On Sat, Nov 9, 2024 at 3:12 AM Christian Couder > <christian.couder@gmail.com> wrote:
Show 10 quoted lines
> > You can run each failing test with some options like -i and -v to get > > more information, like for example: > > > > $ ./t0000-basic.sh -i -v > > I was using make before. I tried to run the single test as above, the error was > ERROR: ld.so: object 'libc_malloc_debug.so.0' from LD_PRELOAD cannot > be preloaded (cannot open shared object file): ignored > I tried to check this online, but, all the solutions I found were not > resolving it.
First, as a workaround, maybe you can try:
$ TEST_NO_MALLOC_CHECK=1 ./t0000-basic.sh -i -v
to see if things work when disabling malloc checks.
Anyway the issue might be related to how your shared libraries are installed, so using ldconfig might help:
$ sudo ldconfig
Alternatively you can try replacing the following line in t/test-lib.sh:
LD_PRELOAD="libc_malloc_debug.so.0"
with:
LD_PRELOAD="/usr/lib/libc_malloc_debug.so.0"
This is a hack but it might help understand what's going on if it works.
Show 5 quoted lines
> I look for libc_malloc_debug.so.0 and it is located in /usr/lib > uniqueusman@fedora:~/git/t$ sudo find / -name "libc_malloc_debug.so.0" > find: ‘/run/user/1000/gvfs’: Permission denied > find: ‘/run/user/1000/doc’: Permission denied > /usr/lib/libc_malloc_debug.so.0
Yeah, not sure why it doesn't work while you have it.
Best, Christian.