Skip to content

Instantly share code, notes, and snippets.

@iameli
Last active March 13, 2025 00:06
Show Gist options
  • Save iameli/9190f1b383da3d0649e7d95649d9588b to your computer and use it in GitHub Desktop.
Save iameli/9190f1b383da3d0649e7d95649d9588b to your computer and use it in GitHub Desktop.
gstreamer allocations
[17:06:03] Top 10 stacks with outstanding allocations:
8388608 bytes in 2 allocations from stack
0x000056370b994190 x_cgo_mmap+0x10 [streamplace]
0x000056370a64703f runtime.mmap.func1+0x3f [streamplace]
0x000056370a646f7a runtime.mmap+0x5a [streamplace]
0x000056370a657ad3 runtime.sysMapOS+0x33 [streamplace]
0x000056370a657554 runtime.sysMap+0x34 [streamplace]
0x000056370a66ad96 runtime.(*mheap).grow+0x236 [streamplace]
0x000056370a66a410 runtime.(*mheap).allocSpan+0x1b0 [streamplace]
0x000056370a669ebc runtime.(*mheap).alloc.func1+0x5c [streamplace]
0x000056370a6bc987 runtime.systemstack.abi0+0x47 [streamplace]
0x000056370a669e1b runtime.(*mheap).alloc+0x5b [streamplace]
0x000056370a656687 runtime.(*mcache).allocLarge+0x87 [streamplace]
0x000056370a6b0570 runtime.mallocgc+0x5d0 [streamplace]
0x000056370a6b88a9 runtime.growslice+0x5c9 [streamplace]
0x000056370a70a893 bytes.growSlice+0x93 [streamplace]
0x000056370a70a2bd bytes.(*Buffer).grow+0x13d [streamplace]
0x000056370a70a499 bytes.(*Buffer).Write+0x59 [streamplace]
0x000056370a70aa3b bytes.(*Buffer).WriteTo+0x7b [streamplace]
0x000056370a702f3d io.copyBuffer+0x9d [streamplace]
0x000056370a702d8f io.Copy+0x2f [streamplace]
0x000056370b89ba31 stream.place/streamplace/pkg/media.(*MediaManager).SegmentAndSignElem.func2.WriterNewSample.2+0x51 [streamplace]
0x000056370aaa722b github.com/go-gst/go-gst/gst/app.goSinkNewSampleCb.func1+0x2b [streamplace]
0x000056370a986ae2 github.com/go-gst/go-glib/glib.(*Object).WithTransferOriginal+0x82 [streamplace]
0x000056370aaa71a5 github.com/go-gst/go-gst/gst/app.goSinkNewSampleCb+0x85 [streamplace]
0x000056370aaaae05 _cgoexp_ab4ef12f62b0_goSinkNewSampleCb+0x25 [streamplace]
0x000056370a6479ab runtime.cgocallbackg1+0x28b [streamplace]
0x000056370a64769a runtime.cgocallbackg+0x11a [streamplace]
0x000056370a6c100b runtime.cgocallbackg.abi0+0x2b [streamplace]
0x000056370a6be70d runtime.cgocallback.abi0+0xcd [streamplace]
0x000056370a6d8e61 crosscall2+0x41 [streamplace]
0x000078d2f4007cf0 [unknown]
0x000056370bafc064 goSinkNewSampleCb+0x54 [streamplace]
8388608 bytes in 2 allocations from stack
0x000056370b994190 x_cgo_mmap+0x10 [streamplace]
0x000056370a64703f runtime.mmap.func1+0x3f [streamplace]
0x000056370a646f7a runtime.mmap+0x5a [streamplace]
0x000056370a657ad3 runtime.sysMapOS+0x33 [streamplace]
0x000056370a657554 runtime.sysMap+0x34 [streamplace]
0x000056370a66ad96 runtime.(*mheap).grow+0x236 [streamplace]
0x000056370a66a410 runtime.(*mheap).allocSpan+0x1b0 [streamplace]
0x000056370a669ebc runtime.(*mheap).alloc.func1+0x5c [streamplace]
0x000056370a6bc987 runtime.systemstack.abi0+0x47 [streamplace]
0x000056370a669e1b runtime.(*mheap).alloc+0x5b [streamplace]
0x000056370a656687 runtime.(*mcache).allocLarge+0x87 [streamplace]
0x000056370a6b0570 runtime.mallocgc+0x5d0 [streamplace]
0x000056370a6b88a9 runtime.growslice+0x5c9 [streamplace]
0x000056370a7039f2 io.ReadAll+0xd2 [streamplace]
0x000056370b8a29f9 stream.place/streamplace/pkg/media.(*MediaManager).ValidateMP4+0x59 [streamplace]
0x000056370b89b918 stream.place/streamplace/pkg/media.(*MediaManager).SegmentAndSignElem.func2.1+0x2d8 [streamplace]
0x000056370aaa6fde github.com/go-gst/go-gst/gst/app.goSinkEOSCb.func1+0x1e [streamplace]
0x000056370a986ae2 github.com/go-gst/go-glib/glib.(*Object).WithTransferOriginal+0x82 [streamplace]
0x000056370aaa6f8e github.com/go-gst/go-gst/gst/app.goSinkEOSCb+0x6e [streamplace]
0x000056370aaaad5d _cgoexp_ab4ef12f62b0_goSinkEOSCb+0x1d [streamplace]
0x000056370a6479ab runtime.cgocallbackg1+0x28b [streamplace]
0x000056370a64769a runtime.cgocallbackg+0x11a [streamplace]
0x000056370a6c100b runtime.cgocallbackg.abi0+0x2b [streamplace]
0x000056370a6be70d runtime.cgocallback.abi0+0xcd [streamplace]
0x000056370a6d8e61 crosscall2+0x41 [streamplace]
0x000078d39401d660 [unknown]
0x000056370bafbf6a goSinkEOSCb+0x4a [streamplace]
50356224 bytes in 6 allocations from stack
0x000078d453e9d537 __pthread_create_2_1+0x977 [libc.so.6]
0x000056370d242c38 g_system_thread_new+0x1b5 [streamplace]
0x000056370d2091b3 g_thread_new_internal+0x83 [streamplace]
0x000056370d20912e g_thread_try_new+0x44 [streamplace]
0x000056370d2096aa g_thread_pool_spawn_thread+0xb3 [streamplace]
0x000056370d208fda g_thread_proxy+0xb1 [streamplace]
0x000078d453e9caa4 start_thread+0x384 [libc.so.6]
0x000078d453f29c3c __GI___clone3+0x2c [libc.so.6]
67108864 bytes in 1 allocations from stack
0x000078d453eaa034 alloc_new_heap+0x84 [libc.so.6]
0x000078d453eaa599 arena_get2.part.0+0x299 [libc.so.6]
0x000078d453eaceb9 tcache_init.part.0+0xa9 [libc.so.6]
0x000078d453ead776 malloc+0x126 [libc.so.6]
0x00007fffffffe000 [unknown] [[uprobes]]
75534336 bytes in 9 allocations from stack
0x000078d453e9d537 __pthread_create_2_1+0x977 [libc.so.6]
0x000056370a63f851 _cgo_try_pthread_create+0x41 [streamplace]
0x0000000000800000 [unknown]
134217728 bytes in 1 allocations from stack
0x000078d453eaa0dc alloc_new_heap+0x12c [libc.so.6]
0x000078d453eaa599 arena_get2.part.0+0x299 [libc.so.6]
0x000078d453eaceb9 tcache_init.part.0+0xa9 [libc.so.6]
0x000078d453ead776 malloc+0x126 [libc.so.6]
0x00007fffffffe000 [unknown] [[uprobes]]
201326592 bytes in 3 allocations from stack
0x000078d453eaa034 alloc_new_heap+0x84 [libc.so.6]
0x000078d453eaa599 arena_get2.part.0+0x299 [libc.so.6]
0x000078d453eaceb9 tcache_init.part.0+0xa9 [libc.so.6]
0x000078d453eade32 __libc_free+0x102 [libc.so.6]
0x000056370b994016 threadentry+0x16 [streamplace]
0x0000000000800000 [unknown]
1409286144 bytes in 21 allocations from stack
0x000078d453eaa034 alloc_new_heap+0x84 [libc.so.6]
0x000078d453eaa599 arena_get2.part.0+0x299 [libc.so.6]
0x000078d453eadc1d _mid_memalign.isra.0+0x2ad [libc.so.6]
0x000078d453eaf47c __posix_memalign+0x4c [libc.so.6]
0x00007fffffffe000 [unknown] [[uprobes]]
0x000056370ce41e4a av_mallocz+0x1c [streamplace]
0x000056370cce5cd6 alloc_rbsp_buffer+0x131 [streamplace]
0x000056370cce5edd ff_h2645_packet_split+0x15a [streamplace]
0x000056370cb8b111 decode_nal_units+0x28f [streamplace]
0x000056370cb8c8d0 h264_decode_frame+0x202 [streamplace]
0x000056370cc49d95 frame_worker_thread+0x1b5 [streamplace]
0x000078d453e9caa4 start_thread+0x384 [libc.so.6]
0x000078d453f29c3c __GI___clone3+0x2c [libc.so.6]
1744830464 bytes in 26 allocations from stack
0x000078d453eaa034 alloc_new_heap+0x84 [libc.so.6]
0x000078d453eaa599 arena_get2.part.0+0x299 [libc.so.6]
0x000078d453eaceb9 tcache_init.part.0+0xa9 [libc.so.6]
0x000078d453eade32 __libc_free+0x102 [libc.so.6]
0x000056370d1de8da g_free+0x1c [streamplace]
0x000056370d208fba g_thread_proxy+0x91 [streamplace]
0x000078d453e9caa4 start_thread+0x384 [libc.so.6]
0x000078d453f29c3c __GI___clone3+0x2c [libc.so.6]
3221225472 bytes in 24 allocations from stack
0x000078d453eaa0dc alloc_new_heap+0x12c [libc.so.6]
0x000078d453eaa599 arena_get2.part.0+0x299 [libc.so.6]
0x000078d453eaceb9 tcache_init.part.0+0xa9 [libc.so.6]
0x000078d453eade32 __libc_free+0x102 [libc.so.6]
0x000056370d1de8da g_free+0x1c [streamplace]
0x000056370d208fba g_thread_proxy+0x91 [streamplace]
0x000078d453e9caa4 start_thread+0x384 [libc.so.6]
0x000078d453f29c3c __GI___clone3+0x2c [libc.so.6]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment