binutils "ld terminated with signal 11 [Segmentation fault]"

Put problems with the Android NDK in this forum.

binutils "ld terminated with signal 11 [Segmentation fault]"

Postby www.rzr.online.fr » Thu Aug 04, 2011 11:34 am

hi,

I joining this forum again,

I am facing a compiler crash, and I wanted to share that here, can you suggest some tricks before I try to submit bug report ...

now I am at this point :

Note that one of the later ${STATIC_LIBS} is compiled using armcc

Here is the command line that crash

strace \
/opt/android-ndk-r6/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../libexec/gcc/arm-linux-androideabi/4.4.3/collect2 \
--sysroot=/opt/android-ndk-r6/platforms/android-8/arch-arm/ \
--eh-frame-hdr -export-dynamic \
-dynamic-linker /system/bin/linker \
-X -m armelf_linux_eabi \
-o ${MAIN} \
/opt/android-ndk-r6/platforms/android-8/arch-arm//usr/lib/crtbegin_dynamic.o \
-L/opt/android-ndk-r6/sources/cxx-stl/gnu-libstdc++/libs/armeabi-v7a\
-L/opt/android-ndk-r6/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/armv7-a/thumb \
-L/opt/android-ndk-r6/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/lib/armv7-a/thumb \
-L/opt/android-ndk-r6/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3 \
-L/opt/android-ndk-r6/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc \
-L/opt/android-ndk-r6/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/lib \
-L/opt/android-ndk-r6/platforms/android-8/arch-arm//usr/lib \
--no-undefined --fix-cortex-a8 -lstdc++ -lsupc++ \
${OBJECTS} ${STATIC_LIBS} \
-lstdc++ -lm -lgcc -lc -ldl -lgcc \
/opt/android-ndk-r6/platforms/android-8/arch-arm//usr/lib/crtend_android.o


Output :

stat64("/opt/android-ndk-r6/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc", {st_mode=S_IFREG|0755, st_size=233684, ...}) = 0
access("/opt/android-ndk-r6/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc", X_OK) = 0
access("/tmp", R_OK|W_OK|X_OK) = 0
gettimeofday({1312453926, 220978}, NULL) = 0
getpid() = 10438
open("/tmp/ccCeVuxo.c", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = 3
close(3) = 0
gettimeofday({1312453926, 222157}, NULL) = 0
open("/tmp/cc0ytGrD.o", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = 3
close(3) = 0
gettimeofday({1312453926, 222894}, NULL) = 0
open("/tmp/ccUrPKfS.ld", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = 3
close(3) = 0
gettimeofday({1312453926, 223652}, NULL) = 0
open("/tmp/ccSixJ26.le", O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 0600) = 3
close(3) = 0
open("/tmp/ccUrPKfS.ld", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 3
open("/tmp/ccSixJ26.le", O_WRONLY|O_CREAT|O_TRUNC|O_LARGEFILE, 0666) = 4
vfork() = 10439
close(3) = 0
close(4) = 0
waitpid(10439, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV}], 0) = 10439
--- SIGCHLD (Child exited) @ 0 (0) ---
write(2, "collect2: ", 10collect2: ) = 10
write(2, "ld terminated with signal 11 [Se"..., 49ld terminated with signal 11 [Segmentation fault]) = 49
write(2, "\n", 1
) = 1
User avatar
www.rzr.online.fr
Junior Developer
Junior Developer
 
Posts: 20
Joined: Tue Feb 03, 2009 11:39 am
Location: fr/35/rennes

Top

Return to NDK Problems

Who is online

Users browsing this forum: No registered users and 3 guests