Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

leakage on sndpacket_setup_mprtp #25

Open
smsajjadi opened this issue Jun 20, 2021 · 1 comment
Open

leakage on sndpacket_setup_mprtp #25

smsajjadi opened this issue Jun 20, 2021 · 1 comment

Comments

@smsajjadi
Copy link

smsajjadi commented Jun 20, 2021

Hi

I have been testing this code for a while. It seems to me that the function sndpacket_setup_mprtp is leaking some memory. Valgrind reports:

 27,656,761 bytes in 38,047 blocks are indirectly lost in loss record 8,439 of 8,442
    at 0x48481E0: malloc (vg_replace_malloc.c:309)
    by 0x4AC9B6F: g_malloc (gmem.c:99)
    by 0x4AE2383: g_slice_alloc (gslice.c:1024)
    by 0x48989AB: _sysmem_new_block (gstallocator.c:413)
    by 0x4898ABB: _sysmem_copy (gstallocator.c:459)
    by 0x5569B2F: ensure_buffers (gstrtpbuffer.c:805)
    by 0x5569B2F: gst_rtp_buffer_set_extension_data (gstrtpbuffer.c:846)
    by 0x556A503: gst_rtp_buffer_add_extension_onebyte_header (gstrtpbuffer.c:1557)
    by 0x54FFFB3: gst_rtp_buffer_set_mprtp_extension (mprtputils.c:37)
    by 0x5509127: sndpacket_setup_mprtp (sndpackets.c:206)
    by 0x54E105F: gst_mprtpscheduler_rtp_sink_chain (gstmprtpscheduler.c:782)
    by 0x48E4517: gst_pad_chain_data_unchecked (gstpad.c:4327)
    by 0x48E6137: gst_pad_push_data (gstpad.c:4583)

AND

 8,299,357 (1,289,947 direct, 7,009,410 indirect) bytes in 2,101 blocks are definitely lost in loss record 8,433 of 8,442
    at 0x48481E0: malloc (vg_replace_malloc.c:309)
    by 0x4AC9B6F: g_malloc (gmem.c:99)
    by 0x4AE2383: g_slice_alloc (gslice.c:1024)
    by 0x48989AB: _sysmem_new_block (gstallocator.c:413)
    by 0x4898ABB: _sysmem_copy (gstallocator.c:459)
    by 0x5569B2F: ensure_buffers (gstrtpbuffer.c:805)
    by 0x5569B2F: gst_rtp_buffer_set_extension_data (gstrtpbuffer.c:846)
    by 0x556A503: gst_rtp_buffer_add_extension_onebyte_header (gstrtpbuffer.c:1557)
    by 0x54FFFB3: gst_rtp_buffer_set_mprtp_extension (mprtputils.c:37)
    by 0x5509127: sndpacket_setup_mprtp (sndpackets.c:206)
    by 0x54E105F: gst_mprtpscheduler_rtp_sink_chain (gstmprtpscheduler.c:782)
    by 0x48E4517: gst_pad_chain_data_unchecked (gstpad.c:4327)
    by 0x48E6137: gst_pad_push_data (gstpad.c:4583)

This type of report with indirectly lost, possibly lost or definitely lost reports, is repeated 8 times in my log, and when running longer, the size of loss gets bigger.

I think there must be some unreffing missing somewhere, but I yet don't get it. Have you noticed such loss?

@balazskreith
Copy link
Owner

Thank you very much for reporting this issue. I have not played with it for a while, hopefully getting some look and reply properly. Thank you again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants