Smartctl fails with dl check map versions Assertion failed error

From raju

Situation

smartctl fails with

    root@hogwarts:~# smartctl -i /dev/sda
    Inconsistency detected by ld.so: dl-version.c: 224: _dl_check_map_versions: Assertion `needed != ((void *)0)' failed!
    

on a Debian machine running a combination of Jessie (testing) + Sid (unstable) with:

    root@hogwarts:~# dpkg -l binutils smartmontools libselinux1 | grep ^ii
    ii  binutils          2.24.90.20141209-1 amd64        GNU assembler, linker and binary utilities
    ii  libselinux1:amd64 2.3-2              amd64        SELinux runtime shared libraries
    ii  libselinux1:i386  2.3-2              i386         SELinux runtime shared libraries
    ii  smartmontools     6.3+svn4002-2      amd64        control and monitor storage systems using S.M.A.R.T.
    

Solution

Upgrade smartmontools to >= 6.3+svn4002-2+b2 and binutils >= 2.24.90.20141201-1 . For example, it works with

    root@hogwarts:~# dpkg -l binutils smartmontools libselinux1 | grep ^ii
    ii  binutils          2.24.90.20141209-1 amd64        GNU assembler, linker and binary utilities
    ii  libselinux1:amd64 2.3-2              amd64        SELinux runtime shared libraries
    ii  libselinux1:i386  2.3-2              i386         SELinux runtime shared libraries
    ii  smartmontools     6.3+svn4002-2+b2   amd64        control and monitor storage systems using S.M.A.R.T.
    
    root@hogwarts:~# smartctl -i /dev/sda
    smartctl 6.4 2014-10-07 r4002 [x86_64-linux-3.14-2-amd64] (local build)
    Copyright (C) 2002-14, Bruce Allen, Christian Franke, www.smartmontools.org
    
    === START OF INFORMATION SECTION ===
    Model Family:     Seagate Barracuda 7200.14 (AF)
    Device Model:     ST250DM000-1BD141
    Serial Number:    9VYHBYF5
    LU WWN Device Id: 5 000c50 04e01f731
    Firmware Version: KC45
    User Capacity:    250,059,350,016 bytes [250 GB]
    Sector Sizes:     512 bytes logical, 4096 bytes physical
    Rotation Rate:    7200 rpm
    Device is:        In smartctl database [for details use: -P show]
    ATA Version is:   ATA8-ACS T13/1699-D revision 4
    SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
    Local Time is:    Sat Dec 20 19:21:41 2014 EST
    SMART support is: Available - device has SMART capability.
    SMART support is: Enabled
    

References

  • Original bug report - #728529
  • Merged bug report - #728113
  • binNMU request from Giuseppe Luculano - #772798
  • another binNMU request from Kamraju Kusumanchi - #773604

Side effect

In the process of solving this issue, I also reported a bug on the reportbug package #773606