You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by "Bryan Call (JIRA)" <ji...@apache.org> on 2015/11/12 00:34:11 UTC

[jira] [Commented] (TS-3863) Add support for ASAN leak detection

    [ https://issues.apache.org/jira/browse/TS-3863?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15001332#comment-15001332 ] 

Bryan Call commented on TS-3863:
--------------------------------

Issue 1:
{code}
=================================================================
==26578==ERROR: AddressSanitizer: alloc-dealloc-mismatch (operator new vs free) on 0x60700001cd40
    #0 0x7f488121370a in __interceptor_free (/lib64/libasan.so.2+0x9870a)
    #1 0x7f4880f45e50 in ink_freelist_free /home/bcall/dev/apache/trafficserver/lib/ts/ink_queue.cc:270
    #2 0x7f487e17e657 in __run_exit_handlers (/lib64/libc.so.6+0x39657)
    #3 0x7f487e17e6a4 in exit (/lib64/libc.so.6+0x396a4)
    #4 0x583efd in proxy_signal_handler /home/bcall/dev/apache/trafficserver/proxy/Main.cc:394
    #5 0x7f487f31b9ef  (/lib64/libpthread.so.0+0x109ef)
    #6 0x7f487e2481b2 in __GI_epoll_wait (/lib64/libc.so.6+0x1031b2)
    #7 0xc2c148 in NetHandler::mainNetEvent(int, Event*) /home/bcall/dev/apache/trafficserver/iocore/net/UnixNet.cc:427
    #8 0xd1b720 in Continuation::handleEvent(int, void*) /home/bcall/dev/apache/trafficserver/iocore/eventsystem/I_Continuation.h:146
    #9 0xd1b720 in EThread::process_event(Event*, int) /home/bcall/dev/apache/trafficserver/iocore/eventsystem/UnixEThread.cc:128
    #10 0xd1b720 in EThread::execute() /home/bcall/dev/apache/trafficserver/iocore/eventsystem/UnixEThread.cc:252
    #11 0x495044 in main /home/bcall/dev/apache/trafficserver/proxy/Main.cc:1922
    #12 0x7f487e16557f in __libc_start_main (/lib64/libc.so.6+0x2057f)
    #13 0x4a3d58 in _start (/usr/local/bin/traffic_server+0x4a3d58)

0x60700001cd40 is located 0 bytes inside of 72-byte region [0x60700001cd40,0x60700001cd88)
allocated by thread T0 ([ET_NET 0]) here:
    #0 0x7f4881214912 in operator new(unsigned long) (/lib64/libasan.so.2+0x99912)
    #1 0x6d8746 in init_HttpProxyServer(int) /home/bcall/dev/apache/trafficserver/proxy/http/HttpProxyServerMain.cc:266
    #2 0x49484a in main /home/bcall/dev/apache/trafficserver/proxy/Main.cc:1850
    #3 0x7f487e16557f in __libc_start_main (/lib64/libc.so.6+0x2057f)

SUMMARY: AddressSanitizer: alloc-dealloc-mismatch ??:0 __interceptor_free
==26578==HINT: if you don't care about these warnings you may set ASAN_OPTIONS=alloc_dealloc_mismatch=0
==26578==ABORTING
{code}

> Add support for ASAN leak detection
> -----------------------------------
>
>                 Key: TS-3863
>                 URL: https://issues.apache.org/jira/browse/TS-3863
>             Project: Traffic Server
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Bryan Call
>              Labels: yahoo
>             Fix For: 6.1.0
>
>
> We will need to call exit() instead of _exit() and fix all the coredumps that happen when objects are being cleaned up.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)