send2vinnie / mclinker

Automatically exported from code.google.com/p/mclinker
Other
0 stars 0 forks source link

Fail to run arm exception test #99

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
- Command:
mcld -Bsymbolic  -mtriple="armv7-unknown-linux-gnueabi" 
-L${aosp}/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a/ 
-L${aosp}/platforms/android-9/arch-arm/usr/lib/ 
${aosp}/platforms/android-9/arch-arm/usr/lib/crtbegin_dynamic.o 
test_basic_exceptions.o 
${aosp}/sources/cxx-stl/gnu-libstdc++/4.6/libs/armeabi-v7a/libsupc++.a 
-lgnustl_shared -lc -lm 
${aosp}/platforms/android-9/arch-arm/usr/lib/crtend_android.o -dynamic-linker 
/system/bin/linker

- Result:
Seg fault at runtime

Original issue reported on code.google.com by mysekki on 6 Nov 2012 at 9:54

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

FYI,
The detailed result is:
terminate called after throwing an instance of 'char const*'                    

                             terminate called recursively                       

                                                          [1]   Segmentation 
fault      ...a.out...          

and the source code like this:
 int main()
 {
     char *buf;
     try {
         buf = new char[8];
         throw "Error";
         return 1;
     } catch( char const* str ) {
     }
     return 0;
 }

Thanks.

Original comment by wenhan...@gmail.com on 6 Nov 2012 at 10:36

GoogleCodeExporter commented 9 years ago
The bug has been fixed.
This test can be link and run successfully on current version.

Original comment by mysekki on 7 Nov 2012 at 7:26