Segmentation Fault

80 views
Skip to first unread message

manitoba

unread,
Sep 24, 2009, 8:21:27 AM9/24/09
to android-ndk
Hi all,

I'm porting a c++ library to android using ndk.
It works well on Simulator, but I get segmentation fault (signal 11)
in library under certain circumstances on Device.


I guess It could be a memory issue, cause I got a system memory
warning at crash time.

Does someone knows what is memory limit for a native library ?

Thanks
Manitoba

Emmanuel

unread,
Sep 24, 2009, 10:36:19 AM9/24/09
to android-ndk
Hi,

Some ideas:
- "adb shell dumpstate" to check free memory
- "adb shell top" to monitor your memory usage
- $ANDROID_NDK_ROOT/tools/ddms system monitor Gui
- gdbserver to figure out where the crash happens:
http://www.aton.com/android-native-development-using-the-android-open-source-project/

Emmanuel
Reply all
Reply to author
Forward
0 new messages