Skip to content

Memory leak in ProcessManagement #7082

@duke8253

Description

@duke8253

Running ASAN and saw this happening. This is present in both ats9 and master, didn't check with ats7.

Indirect leak of 1101152 byte(s) in 1 object(s) allocated from:
    #0 0x625cd0 in operator new(unsigned long) (/opt/oath/trafficserver/9.0/bin/traffic_server+0x625cd0)
    #1 0x6fe760 in TSThreadInit ../../../../../_vcs/trafficserver9/src/traffic_server/InkIOCoreAPI.cc:190
    #2 0xb7e1f5 in std::function<void ()>::operator()() const /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/std_function.h:687
    #3 0xb7e1f5 in ProcessManager::processManagerThread(void*) ../../../../../_vcs/trafficserver9/mgmt/ProcessManager.cc:156
    #4 0x2abc19b03ea4 in start_thread (/lib64/libpthread.so.0+0x7ea4)

Indirect leak of 80 byte(s) in 1 object(s) allocated from:
    #0 0x624ec0 in posix_memalign (/opt/oath/trafficserver/9.0/bin/traffic_server+0x624ec0)
    #1 0x2abc181345ef in ats_memalign ../../../../../../_vcs/trafficserver9/src/tscore/ink_memory.cc:102
    #2 0x2abc1813665e in ink_freelist_new ../../../../../../_vcs/trafficserver9/src/tscore/ink_queue.cc:187
    #3 0xfdf88c in ClassAllocator<ProxyMutex>::alloc() /home/feid/git/build/_build/build_release_posix-x86_64_gcc_8/trafficserver9/build/../../../../_vcs/trafficserver9/include/tscore/Allocator.h:131
    #4 0xfdf88c in new_ProxyMutex() ../../../../../../_vcs/trafficserver9/iocore/eventsystem/I_Lock.h:621
    #5 0xfdf88c in Thread::Thread() ../../../../../../_vcs/trafficserver9/iocore/eventsystem/Thread.cc:52
    #6 0xfe5bd9 in EThread::EThread(ThreadType, int) ../../../../../../_vcs/trafficserver9/iocore/eventsystem/UnixEThread.cc:59
    #7 0x6fe775 in INKThreadInternal::INKThreadInternal() ../../../../../_vcs/trafficserver9/src/traffic_server/InkIOCoreAPI.cc:99
    #8 0x6fe775 in TSThreadInit ../../../../../_vcs/trafficserver9/src/traffic_server/InkIOCoreAPI.cc:190
    #9 0xb7e1f5 in std::function<void ()>::operator()() const /opt/rh/devtoolset-8/root/usr/include/c++/8/bits/std_function.h:687
    #10 0xb7e1f5 in ProcessManager::processManagerThread(void*) ../../../../../_vcs/trafficserver9/mgmt/ProcessManager.cc:156
    #11 0x2abc19b03ea4 in start_thread (/lib64/libpthread.so.0+0x7ea4)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions