How do I enable Malloc stack logging of Network Extention?

Hello. I am currently creating a VPN app using Network Extension and am encountering an issue that seems like a memory leak.

The name of the NetworkExtention that makes the VPN connection is NEPacketTunnelVPNDemo, and this Extension works by being called by an application named udpVPN.

To enable Malloc Stack logging, the scheme needs to be edited, so I changed the scheme of "NEPacketTunnelVPNDemo" like this.

The program terminated due to lack of memory and when I displayed the memory graph, it looked like this.

When I try to select one of them and check the backtrace, it shows like the image, and I cannot check the backtrace. How can I make it possible to check the backtrace?

Best,

Answered by DTS Engineer in 742880022

How do I enable Malloc stack logging of Network Extension?

See this post.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Accepted Answer

How do I enable Malloc stack logging of Network Extension?

See this post.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

How do I enable Malloc stack logging of Network Extention?
 
 
Q