8000 A memory leak detected. · Issue #731 · samtools/htslib · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
A memory leak detected. #731
Closed
Closed
@fCorleone

Description

@fCorleone

Sorry for that I didn't reply in my last issue immediately because I had some other stuffs to handle then. Well ,it seems that you have found the SEGV signal and fixed it. I found another problem here ,it is a memory leak issue.
The program I ran is test_bgzf in test directory, the input file is bgziptest.txt.gz in the same directory.
The command line is :./test_bgzf ./bgziptest.txt
The detail information is displayed as :

=================================================================
==11095==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 16 byte(s) in 1 object(s) allocated from:
    #0 0x7f7e77d58961 in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98961)
    #1 0x425d8e in bgzf_getline /home/mfc_fuzz/htslib/bgzf.c:1800
    #2 0x40b885 in test_bgzf_getline test/test_bgzf.c:691
    #3 0x40c72f in main test/test_bgzf.c:774
    #4 0x7f7e770ad82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)

Direct leak of 16 byte(s) in 1 object(s) allocated from:
    #0 0x7f7e77d58961 in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98961)
    #1 0x425d8e in bgzf_getline /home/mfc_fuzz/htslib/bgzf.c:1800
    #2 0x40b885 in test_bgzf_getline test/test_bgzf.c:691
    #3 0x40c711 in main test/test_bgzf.c:773
    #4 0x7f7e770ad82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)

Direct leak of 16 byte(s) in 1 object(s) allocated from:
    #0 0x7f7e77d58961 in realloc (/usr/lib/x86_64-linux-gnu/libasan.so.2+0x98961)
    #1 0x425d8e in bgzf_getline /home/mfc_fuzz/htslib/bgzf.c:1800
    #2 0x40b885 in test_bgzf_getline test/test_bgzf.c:691
    #3 0x40c74d in main test/test_bgzf.c:775
    #4 0x7f7e770ad82f in __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2082f)

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

      0