Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Developer
MarkS3
Posts: 8
Registered: ‎01-22-2013
My Device: Playbook
Accepted Solution

btl_gather() segmentation fault on memory analysis

When trying to run Memory Analysis to find a memory leak using 2.1.0 NDK, I get a seg fault in btl_gather() when backtrace capture is on.  Without backtrace capture on I get the memory leak info, but am having difficulty tracking down the leak without any backtrace info.

 

This is with the 2.1.0 NDK, and a playbook on OS 2.1.0.1088 (also tried with OS 2.1.0.1314 with the same result)

 

Attached is a screenshot trying the same task with the VideoWindow sample code:

 

 

 

Also warnings appear on the console output, but don't appear to have any impact on running or debugging apps.

 

warning: Could not load shared library symbols for libusc.so.
Do you need "set solib-search-path" or "set sysroot"?

Cannot access memory at address 0xd4

 

Regards,

Mark

New Developer
MarkS3
Posts: 8
Registered: ‎01-22-2013
My Device: Playbook

Re: btl_gather() segmentation fault on memory analysis

Got the memory tracing working by running in Profile mode rather than Debug mode.