NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

toolchain/52516: nawk leaking



>Number:         52516
>Category:       toolchain
>Synopsis:       nawk leaking
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 31 17:15:00 +0000 2017
>Originator:     guy incognito
>Release:        cvs head
>Organization:
encom
>Environment:
Linux iamreallysorryaboutthisbugreport 4.12.0-1-amd64 #1 SMP Debian 4.12.6-1 (2017-08-12) x86_64 GNU/Linux

>Description:
=================================================================
==10908==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 3 byte(s) in 1 object(s) allocated from:
    #0 0x45e610 in __strdup (/tmp/src/external/historical/nawk/dist/awk+0x45e610)
    #1 0x532a6d in tostring /tmp/src/external/historical/nawk/dist/tran.c:441:6
    #2 0x51571c in yylex /tmp/src/external/historical/nawk/dist/lex.c:204:31
    #3 0x50d0e8 in yyparse /tmp/src/external/historical/nawk/dist/awkgram.c:2800:18
    #4 0x51f5c2 in main /tmp/src/external/historical/nawk/dist/main.c:229:2
    #5 0x7f80822ba2e0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e0)

Direct leak of 1 byte(s) in 1 object(s) allocated from:
    #0 0x45e610 in __strdup (/tmp/src/external/historical/nawk/dist/awk+0x45e610)
    #1 0x532a6d in tostring /tmp/src/external/historical/nawk/dist/tran.c:441:6
    #2 0x5318fd in setsymtab /tmp/src/external/historical/nawk/dist/tran.c:241:30
    #3 0x5320d4 in envinit /tmp/src/external/historical/nawk/dist/tran.c:141:7
    #4 0x51f5bd in main /tmp/src/external/historical/nawk/dist/main.c:228:3
    #5 0x7f80822ba2e0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e0)

Direct leak of 1 byte(s) in 1 object(s) allocated from:
    #0 0x45e610 in __strdup (/tmp/src/external/historical/nawk/dist/awk+0x45e610)
    #1 0x532a6d in tostring /tmp/src/external/historical/nawk/dist/tran.c:441:6
    #2 0x5318fd in setsymtab /tmp/src/external/historical/nawk/dist/tran.c:241:30
    #3 0x531dc1 in arginit /tmp/src/external/historical/nawk/dist/tran.c:123:7
    #4 0x51f58e in main /tmp/src/external/historical/nawk/dist/main.c:226:2
    #5 0x7f80822ba2e0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e0)

Direct leak of 1 byte(s) in 1 object(s) allocated from:
    #0 0x45e610 in __strdup (/tmp/src/external/historical/nawk/dist/awk+0x45e610)
    #1 0x532a6d in tostring /tmp/src/external/historical/nawk/dist/tran.c:441:6
    #2 0x5318fd in setsymtab /tmp/src/external/historical/nawk/dist/tran.c:241:30
    #3 0x5315b2 in syminit /tmp/src/external/historical/nawk/dist/tran.c:112:14
    #4 0x51f528 in main /tmp/src/external/historical/nawk/dist/main.c:222:2
    #5 0x7f80822ba2e0 in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x202e0)

SUMMARY: AddressSanitizer: 6 byte(s) leaked in 4 allocation(s).

>How-To-Repeat:
build nawk on linux (add macros for __UNCONST and __dead to proto.h) with addresssanitizer (-g -O1 -fsanitize=address -fno-omit-frame-pointer) and then run ./awk '{print $40}' < README
>Fix:



Home | Main Index | Thread Index | Old Index