SIGSEGV in dynamic_cast (NDK R5C)

152 views
Skip to first unread message

Riadh Elloumi

unread,
Jul 12, 2011, 4:57:20 AM7/12/11
to android-ndk
Hi all,

I used the android NDK R5C with gnu libstdc++, rtti and exceptions
support to compile an application that uses rtti. I used the platform
Android-9. The software compiled is Gnu radio (gnuradio.org). I have
SIGSEGV in dynamic_cast.

The exact gdb output is:

0x0036ab4a in __cxxabiv1::__dynamic_cast (src_ptr=0x3e0b80,
src_type=<value optimized out>, dst_type=0x3c9af0, src2dst=<value
optimized out>) at /tmp/ndk-digit/src/build/../gcc/gcc-4.4.3/libstdc
++-v3/libsupc++/dyncast.cc:47
47 /tmp/ndk-digit/src/build/../gcc/gcc-4.4.3/libstdc++-v3/libsupc
++/dyncast.cc: No such file or directory.
in /tmp/ndk-digit/src/build/../gcc/gcc-4.4.3/libstdc
++-v3/libsupc
++/dyncast.cc

This SIGSEGV happens hen casting big classes. I tried with small
classes
and the dynamic_cast is successful.

Is rtti fully supported by Android? Do you have experimented it in big
applications? Do you have some hints to overcome this problem?

Best regards,

Riadh.

David Turner

unread,
Jul 12, 2011, 9:28:04 AM7/12/11
to andro...@googlegroups.com
How are you generating your code? How many libraries?

RTTI is supported when you use the static GNU libstdc++ that comes with the NDK (either through ndk-build + APP_STL, or through the standalone toolchain).


--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.


Riadh Elloumi

unread,
Jul 12, 2011, 12:09:32 PM7/12/11
to android-ndk
Hi,

I used GNU libstdc++. Actually the bug is mine. I wrongly configured
the gnu radio blocks.

Best reagards

On Jul 12, 3:28 pm, David Turner <di...@android.com> wrote:
> How are you generating your code? How many libraries?
>
> RTTI is supported when you use the static GNU libstdc++ that comes with the
> NDK (either through ndk-build + APP_STL, or through the standalone
> toolchain).
>
Reply all
Reply to author
Forward
0 new messages