Hi, im making a daemon swift app for macos that uses the content filter network extension. When i run the app i see the following leak in Instruments.
I have no idea how to debug this. As you can see on the log it says "libnetworkextension" so i thought i might have something to do with the network extension but the leak ocurrs even when the NE is not running.
I tried looking at the memory graph but when i go to click on the memory address that has the leak all i see is an icon of "OS_dispatch_group".
I know this might be not enough information to help me debug this so if you need anything else just let me know.
Code Block 2021-03-08 15:58:54.943753-0300 mhunt[23320:342851] [] nw_parameters_copy_default_protocol_stack called with null parameters 2021-03-08 15:58:54.950468-0300 mhunt[23320:342851] [] nw_parameters_copy_default_protocol_stack called with null parameters, dumping backtrace: [x86_64] libnetcore-2288.80.2 0 libnetwork.dylib 0x00007fff247c82f8 __nw_create_backtrace_string + 120 1 libnetwork.dylib 0x00007fff242bb69b nw_parameters_copy_default_protocol_stack + 251 2 libnetwork.dylib 0x00007fff242dea0e nw_socket_connect + 1550 3 libnetworkextension.dylib 0x00007fff300c6102 ne_filter_protocol_connect + 396 4 libnetworkextension.dylib 0x00007fff300c73dc ne_filter_process_verdict + 1616 5 libnetworkextension.dylib 0x00007fff300cb5f7 __ne_filter_data_protocol_send_new_flow_block_invoke.65 + 148 6 libdispatch.dylib 0x000000010b5e8e78 _dispatch_call_block_and_release + 12 7 libdispatch.dylib 0x000000010b5ea0b0 _dispatch_client_callout + 8 8 libdispatch.dylib 0x000000010b5f406a _dispatch_workloop_invoke + 3277 9 libdispatch.dylib 0x000000010b600217 _dispatch_workloop_worker_thread + 1675 10 libsystem_pthread.dylib 0x000000010b693b15 _pthread_wqthread + 314 11 libsystem_pthread.dylib 0x000000010b692ae3 start_wqthread + 15
I have no idea how to debug this. As you can see on the log it says "libnetworkextension" so i thought i might have something to do with the network extension but the leak ocurrs even when the NE is not running.
I tried looking at the memory graph but when i go to click on the memory address that has the leak all i see is an icon of "OS_dispatch_group".
I know this might be not enough information to help me debug this so if you need anything else just let me know.