FS#38260 - [slim] Inconsistency detected by ld.so

Attached to Project: Arch Linux
Opened by Viliam Pucik (viliampucik) - Tuesday, 24 December 2013, 12:14 GMT
Last edited by Jan de Groot (JGC) - Monday, 21 April 2014, 11:31 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

Details

The latest slim 1.3.6-3 cannot be started because of shared library issue. To reproduce it install the package, restart slim daemon and observe its startup log:

---
# systemctl status slim
slim.service - SLiM Simple Login Manager
Loaded: loaded (/usr/lib/systemd/system/slim.service; enabled)
Active: failed (Result: exit-code) since Tue 2013-12-24 12:56:19 CET; 3min 55s ago
Process: 753 ExecStart=/usr/bin/slim -nodaemon (code=exited, status=127)
Main PID: 753 (code=exited, status=127)

Dec 24 12:56:19 box systemd[1]: Started SLiM Simple Login Manager.
Dec 24 12:56:19 box slim[753]: Inconsistency detected by ld.so: dl-version.c: 224: _dl_check_map_versions: Assertion `needd != ((void *)0)' failed!
Dec 24 12:56:19 box systemd[1]: slim.service: main process exited, code=exited, status=127/n/a
Dec 24 12:56:19 box systemd[1]: Unit slim.service entered failed state.
---

Recompiling the package solves the issue.
This task depends upon

Closed by  Jan de Groot (JGC)
Monday, 21 April 2014, 11:31 GMT
Reason for closing:  Fixed
Additional comments about closing:  slim 1.3.6-4 is in testing now. Rebuild done, so closing.
Comment by Eric Belanger (Snowman) - Saturday, 01 February 2014, 16:23 GMT
I don't have this error, it works fine here:

$ systemctl status slim
slim.service - SLiM Simple Login Manager
Loaded: loaded (/usr/lib/systemd/system/slim.service; enabled)
Active: active (running) since Fri 2014-01-31 15:51:15 EST; 19h ago
Main PID: 611 (slim)
CGroup: /system.slice/slim.service
└─615 /usr/bin/X -nolisten tcp vt07 -auth /var/run/slim.auth
‣ 611 /usr/bin/slim -nodaemon

Jan 31 15:51:16 ovide slim[611]: Loading extension XINERAMA
Jan 31 15:51:16 ovide slim[611]: The XKEYBOARD keymap compiler (xkbcomp) reports:
Jan 31 15:51:16 ovide slim[611]: > Warning: Compat map for group 2 redefined
Jan 31 15:51:16 ovide slim[611]: > Using new definition
Jan 31 15:51:16 ovide slim[611]: > Warning: Compat map for group 3 redefined
Jan 31 15:51:16 ovide slim[611]: > Using new definition
Jan 31 15:51:16 ovide slim[611]: > Warning: Compat map for group 4 redefined
Jan 31 15:51:16 ovide slim[611]: > Using new definition
Jan 31 15:51:16 ovide slim[611]: Errors from xkbcomp are not fatal to the X server
Jan 31 15:51:26 ovide slim[611]: pam_unix(slim:session): session opened for user eric by (uid=0)
Comment by Alfredo Amatriain (amatriain) - Wednesday, 12 February 2014, 21:37 GMT
I'm having the exact same error. Any ideas on how to investigate further?
Comment by Eric Belanger (Snowman) - Wednesday, 12 February 2014, 23:57 GMT
to fix this, slim needs to explicitly link against -lpthread
ref (other apps but same issue): https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=728529
Comment by stevenfrog (stevenfrog) - Monday, 24 February 2014, 11:28 GMT
"Recompiling the package solves the issue.", really?

But why I can not compile it, I download all files, and run makepkg:
==> Making package: slim 1.3.6-3 (Mon Feb 24 19:26:26 CST 2014)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Downloading slim-1.3.6.tar.gz...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 330 100 330 0 0 237 0 0:00:01 0:00:01 --:--:-- 237
0 409 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0
100 227k 100 227k 0 0 3013 0 0:01:17 0:01:17 --:--:-- 5303
-> Found slim-1.3.6-fix-libslim-libraries.patch
-> Found slim-1.3.6-add-sessiondir.patch
-> Found slim.pam
-> Found slim.logrotate
==> Validating source files with sha256sums...
slim-1.3.6.tar.gz ... Passed
slim-1.3.6-fix-libslim-libraries.patch ... Passed
slim-1.3.6-add-sessiondir.patch ... Passed
slim.pam ... Passed
slim.logrotate ... Passed
==> Extracting sources...
-> Extracting slim-1.3.6.tar.gz with bsdtar
==> Starting prepare()...
...
...
[ 30%] Building CXX object CMakeFiles/libslim.dir/panel.cpp.o
/usr/bin/c++ -DHAVE_SHADOW -DPACKAGE=\"slim\" -DPKGDATADIR=\"/usr/share/slim\" -DSYSCONFDIR=\"/etc\" -DUSE_PAM -DVERSION=\"1.3.6\" -Dlibslim_EXPORTS -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wall -g -O2 -O3 -DNDEBUG -fPIC -I/home/stevenfrog/temp/slim1.3.6/src/slim-1.3.6 -I/usr/include/freetype2/freetype -o CMakeFiles/libslim.dir/panel.cpp.o -c /home/stevenfrog/temp/slim1.3.6/src/slim-1.3.6/panel.cpp
In file included from /usr/include/X11/Xft/Xft.h:39:0,
from /home/stevenfrog/temp/slim1.3.6/src/slim-1.3.6/panel.h:18,
from /home/stevenfrog/temp/slim1.3.6/src/slim-1.3.6/panel.cpp:15:
/usr/include/ft2build.h:56:38: fatal error: freetype/config/ftheader.h: No such file or directory
#include <freetype/config/ftheader.h>
^
compilation terminated.
CMakeFiles/libslim.dir/build.make:129: recipe for target 'CMakeFiles/libslim.dir/panel.cpp.o' failed
make[2]: *** [CMakeFiles/libslim.dir/panel.cpp.o] Error 1
make[2]: Leaving directory '/home/stevenfrog/temp/slim1.3.6/src/slim-1.3.6'
CMakeFiles/Makefile2:66: recipe for target 'CMakeFiles/libslim.dir/all' failed
make[1]: *** [CMakeFiles/libslim.dir/all] Error 2
make[1]: Leaving directory '/home/stevenfrog/temp/slim1.3.6/src/slim-1.3.6'
Makefile:119: recipe for target 'all' failed
make: *** [all] Error 2
==> ERROR: A failure occurred in build().
Aborting...

You can see I can not compile it correctly.
Admin, can you provide updated pkg?

Loading...