Skip to content

failed to read .symtab: section not present #718

@rockdaboot

Description

@rockdaboot

On Debian testing I see

ERRO[0003] Failed to load /usr/bin/containerd (0xff6b03d6c761c2c1): failed to extract TLS offset: failed to read .symtab: section not present 
ERRO[0024] Failed to load /usr/local/bin/cri-dockerd (0x4d45c80ce1385175): failed to extract TLS offset: failed to read .symtab: section not present 
$ file /usr/bin/containerd|more
/usr/bin/containerd: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=
931f93fbf5ec43f17989fa7f89bfb42eacd91e60, for GNU/Linux 3.2.0, stripped
$ readelf -a /usr/bin/containerd|more
ELF Header:
  Magic:   7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 
  Class:                             ELF64
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              DYN (Position-Independent Executable file)
  Machine:                           Advanced Micro Devices X86-64
  Version:                           0x1
  Entry point address:               0xd8a430
  Start of program headers:          64 (bytes into file)
  Start of section headers:          57368704 (bytes into file)
  Flags:                             0x0
  Size of this header:               64 (bytes)
  Size of program headers:           56 (bytes)
  Number of program headers:         15
  Size of section headers:           64 (bytes)
  Number of section headers:         33
  Section header string table index: 32

Section Headers:
  [Nr] Name              Type             Address           Offset
       Size              EntSize          Flags  Link  Info  Align
  [ 0]                   NULL             0000000000000000  00000000
       0000000000000000  0000000000000000           0     0     0
  [ 1] .note.gnu.pr[...] NOTE             0000000000000388  00000388
       0000000000000020  0000000000000000   A       0     0     8
  [ 2] .note.gnu.bu[...] NOTE             00000000000003a8  000003a8
       0000000000000024  0000000000000000   A       0     0     4
  [ 3] .note.go.buildid  NOTE             00000000000003cc  000003cc
       0000000000000064  0000000000000000   A       0     0     4
  [ 4] .interp           PROGBITS         0000000000000430  00000430
       000000000000001c  0000000000000000   A       0     0     1
  [ 5] .gnu.hash         GNU_HASH         0000000000000450  00000450
       00000000000c7c4c  0000000000000000   A       6     0     8
  [ 6] .dynsym           DYNSYM           00000000000c80a0  000c80a0
       000000000032ef68  0000000000000018   A       7     1     8
  [ 7] .dynstr           STRTAB           00000000003f7008  003f7008
       0000000000509f4c  0000000000000000   A       0     0     1
  [ 8] .gnu.version      VERSYM           0000000000900f54  00900f54
       0000000000043e9e  0000000000000002   A       6     0     2
  [ 9] .gnu.version_r    VERNEED          0000000000944df8  00944df8
       0000000000000060  0000000000000000   A       7     1     8
  [10] .rela.dyn         RELA             0000000000944e58  00944e58
       00000000004440d8  0000000000000018   A       6     0     8
  [11] .rela.plt         RELA             0000000000d88f30  00d88f30
       00000000000005b8  0000000000000018  AI       6    26     8
  [12] .init             PROGBITS         0000000000d8a000  00d8a000
       0000000000000017  0000000000000000  AX       0     0     4
  [13] .plt              PROGBITS         0000000000d8a020  00d8a020
       00000000000003e0  0000000000000010  AX       0     0     16
  [14] .plt.got          PROGBITS         0000000000d8a400  00d8a400
       0000000000000008  0000000000000008  AX       0     0     8
  [15] .text             PROGBITS         0000000000d8a420  00d8a420
       000000000135a53c  0000000000000000  AX       0     0     32
  [16] .fini             PROGBITS         00000000020e495c  020e495c
       0000000000000009  0000000000000000  AX       0     0     4
  [17] .rodata           PROGBITS         00000000020e5000  020e5000
       00000000002d2d40  0000000000000000   A       0     0     32
  [18] .eh_frame_hdr     PROGBITS         00000000023b7d40  023b7d40
       0000000000000654  0000000000000000   A       0     0     4
  [19] .eh_frame         PROGBITS         00000000023b8398  023b8398
       0000000000002164  0000000000000000   A       0     0     8
  [20] .note.ABI-tag     NOTE             00000000023ba4fc  023ba4fc
       0000000000000020  0000000000000000   A       0     0     4
  [21] .tbss             NOBITS           00000000023bbcf0  023bacf0
       0000000000000008  0000000000000000 WAT       0     0     8
  [22] .init_array       INIT_ARRAY       00000000023bbcf0  023bacf0
       0000000000000008  0000000000000008  WA       0     0     8
  [23] .fini_array       FINI_ARRAY       00000000023bbcf8  023bacf8
       0000000000000008  0000000000000008  WA       0     0     8
  [24] .data.rel.ro      PROGBITS         00000000023bbd00  023bad00
       0000000001246ed8  0000000000000000  WA       0     0     32
  [25] .dynamic          DYNAMIC          0000000003602bd8  03601bd8
       00000000000001f0  0000000000000010  WA       7     0     8
  [26] .got              PROGBITS         0000000003602dc8  03601dc8
       0000000000000238  0000000000000008  WA       0     0     8
  [27] .data             PROGBITS         0000000003603000  03602000
       0000000000040128  0000000000000000  WA       0     0     32
  [28] .go.buildinfo     PROGBITS         0000000003643130  03642130
       0000000000001a70  0000000000000000  WA       0     0     16
  [29] .noptrdata        PROGBITS         0000000003644ba0  03643ba0
       000000000007239a  0000000000000000  WA       0     0     32
  [30] .bss              NOBITS           00000000036b6f40  036b5f3a
       000000000002e720  0000000000000000  WA       0     0     32
  [31] .noptrbss         NOBITS           00000000036e5660  036b5f3a
       00000000000139b0  0000000000000000  WA       0     0     32
  [32] .shstrtab         STRTAB           0000000000000000  036b5f3a
       000000000000013f  0000000000000000           0     0     1
Key to Flags:
  W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
  L (link order), O (extra OS processing required), G (group), T (TLS),
  C (compressed), x (unknown), o (OS specific), E (exclude),
  D (mbind), l (large), p (processor specific)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions