Skip to content

Infinite loop at __tls_get_addr while process exiting #296

@ououmania

Description

@ououmania

Hi all, my process crashed while exiting. I checked the backtrace and found the following infinite loop. Is this caused by missing ABSL_ATTRIBUTE_INITIAL_EXEC on some TLS variables?

#30 _dl_update_slotinfo (req_modid=2, new_gen=6) at ../elf/dl-tls.c:823
#31 0x00007f072b20b1fc in update_get_addr (ti=0x7f072a824bd0, gen=) at ../elf/dl-tls.c:917
#32 0x00007f072b1f6e9c in __tls_get_addr () at ../sysdeps/x86_64/tls_get_addr.S:55
#33 0x00007f072a81a21a in free () from /path/to/libtcmalloc.so
#34 0x00007f072b20b129 in free (ptr=) at ../include/rtld-malloc.h:50
#35 _dl_update_slotinfo (req_modid=2, new_gen=6) at ../elf/dl-tls.c:823
#36 0x00007f072b20b1fc in update_get_addr (ti=0x7f072a824bd0, gen=) at ../elf/dl-tls.c:917
#37 0x00007f072b1f6e9c in __tls_get_addr () at ../sysdeps/x86_64/tls_get_addr.S:55
#38 0x00007f072a81a21a in free () from /path/to/libtcmalloc.so
#39 0x00007f072b20b129 in free (ptr=) at ../include/rtld-malloc.h:50
#40 _dl_update_slotinfo (req_modid=2, new_gen=6) at ../elf/dl-tls.c:823
q#41 0x00007f072b20b1fc in update_get_addr (ti=0x7f072a824bd0, gen=) at ../elf/dl-tls.c:917
#42 0x00007f072b1f6e9c in __tls_get_addr () at ../sysdeps/x86_64/tls_get_addr.S:55
#43 0x00007f072a81a21a in free () from /path/to/libtcmalloc.so
#44 0x00007f072b20b129 in free (ptr=) at ../include/rtld-malloc.h:50
#45 _dl_update_slotinfo (req_modid=2, new_gen=6) at ../elf/dl-tls.c:823
#46 0x00007f072b20b1fc in update_get_addr (ti=0x7f072a824bd0, gen=) at ../elf/dl-tls.c:917
#47 0x00007f072b1f6e9c in __tls_get_addr () at ../sysdeps/x86_64/tls_get_addr.S:55
#48 0x00007f072a81a21a in free () from /path/to/libtcmalloc.so
#49 0x00007f072b20b129 in free (ptr=) at ../include/rtld-malloc.h:50
#50 _dl_update_slotinfo (req_modid=2, new_gen=6) at ../elf/dl-tls.c:823
#51 0x00007f072b20b1fc in update_get_addr (ti=0x7f072a824bd0, gen=) at ../elf/dl-tls.c:917
#52 0x00007f072b1f6e9c in __tls_get_addr () at ../sysdeps/x86_64/tls_get_addr.S:55
#53 0x00007f072a81a21a in free () from /path/to/libtcmalloc.so
#54 0x00007f072b20b129 in free (ptr=) at ../include/rtld-malloc.h:50
#55 _dl_update_slotinfo (req_modid=2, new_gen=6) at ../elf/dl-tls.c:823
#56 0x00007f072b20b1fc in update_get_addr (ti=0x7f072a824bd0, gen=) at ../elf/dl-tls.c:917
#57 0x00007f072b1f6e9c in __tls_get_addr () at ../sysdeps/x86_64/tls_get_addr.S:55
#58 0x00007f072a81a21a in free () from /path/to/libtcmalloc.so
#59 0x00007f072b20b129 in free (ptr=) at ../include/rtld-malloc.h:50
#60 _dl_update_slotinfo (req_modid=2, new_gen=6) at ../elf/dl-tls.c:823

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions