Xonotic Forums
[NEED HELP] Inconsistency detected by ld.so - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Help & Troubleshooting (https://forums.xonotic.org/forumdisplay.php?fid=4)
+--- Thread: [NEED HELP] Inconsistency detected by ld.so (/showthread.php?tid=9472)



Inconsistency detected by ld.so - BuddyFriendGuy - 07-21-2022

Compiling from latest git completed without error, but I'm getting this error while launching:
Code:
Inconsistency detected by ld.so: dl-close.c: 273: _dl_close_worker: Assertion `imap->l_ns == nsid' failed!

The last lines of the log before it failed:

Code:
[2022-07-21 03:49:23] S_Startup: initializing sound output format: 48000Hz, 16 bit, 2 channels...
[2022-07-21 03:49:23] Wanted audio Specification:
[2022-07-21 03:49:23] Channels  : 2
[2022-07-21 03:49:23] Format    : 0x8010
[2022-07-21 03:49:23] Frequency : 48000
[2022-07-21 03:49:23] Samples   : 2048
[2022-07-21 03:49:23] Obtained audio specification:
[2022-07-21 03:49:23] Channels  : 2
[2022-07-21 03:49:23] Format    : 0x8010
[2022-07-21 03:49:23] Frequency : 48000
[2022-07-21 03:49:23] Samples   : 2048
[2022-07-21 03:49:23] Sound format: 48000Hz, 2 channels, 16 bits per sample
[2022-07-21 03:49:23] CDAudio_Init: No CD in player.
[2022-07-21 03:49:23] Can't get initial CD volume
[2022-07-21 03:49:23] CD Audio Initialized
Inconsistency detected by ld.so: dl-close.c: 273: _dl_close_worker: Assertion `imap->l_ns == nsid' failed!
name
real 1.73
user 0.76
sys 0.08

Xonotic server still alive: False

Parent is shutting down, bye...

Versions:
Code:
$ gcc --version
gcc (GCC) 12.1.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

$ ld --version
GNU ld (GNU Binutils) 2.38
Copyright (C) 2022 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.



Any idea?


RE: Inconsistency detected by ld.so - oblector - 07-21-2022

My non expert suggestions: reinstall the libraries (maybe disk corruption); consider https://sourceware.org/glibc/wiki/Debugging/Development_Debugging#Debugging_the_Loader.

You may want to inspect elf/dl-close.c in: https://sourceware.org/git/?p=glibc.git;a=tree.


RE: Inconsistency detected by ld.so - Freddy - 07-21-2022

This sounds like https://sourceware.org/bugzilla/show_bug.cgi?id=28937 / https://bugs.archlinux.org/task/73967
You can try the LD_PRELOAD or GLIBC_TUNABLES workarounds listed in those discussions. For me, downgrading from SDL 2.0.22 to 2.0.20 also fixed the problem.


RE: Inconsistency detected by ld.so - BuddyFriendGuy - 07-23-2022

Thanks a lot for the pointers, @oblector and @Freddy.

Very strange -- the behavior is inconsistent. Sometimes re-run the game works.

Right now I downgraded SDL, and it's still off and on. I suspected it's something else. I'll keep observing.

(update: upgraded SDL back, still the same)

By the way, do we still need this env?

Code:
#SDL_CONFIG=sdl2-config ./all compile -r -0