Jason Kim
2011-Aug-06 22:05 UTC
[LLVMdev] llvm-gcc near tip causing crash in /usr/bin/ld due to memory corruption on linux x86_64
Hi everyone, -r136747 of llvm-gcc (and possibly others) is apparently tickling a binutils issue on linux x86-64 Has anyone seen anything like this? Thanks -jason -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110806/e7e717ef/attachment.html> -------------- next part -------------- dreadstar:x86_64-Linux2:~/Work/hg-llvm/BUILD/llvm-gcc-4.2-rw/gcc>strace -f -s 1600000 -e trace=process /home/jasonwkim/Work/hg-llvm/BUILD/llvm-gcc-4.2-rw/./gcc/xgcc -B/home/jasonwkim/Work/hg-llvm/BUILD/llvm-gcc-4.2-rw/./gcc/ -B/pkgs/llvm-gcc-4.2-rw/x86_64-unknown-linux-gnu/bin/ -B/pkgs/llvm-gcc-4.2-rw/x86_64-unknown-linux-gnu/lib/ -isystem /pkgs/llvm-gcc-4.2-rw/x86_64-unknown-linux-gnu/include -isystem /pkgs/llvm-gcc-4.2-rw/x86_64-unknown-linux-gnu/sys-include -O2 -O2 -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc/./libgcc.map -o ./libgcc_s.so.1.tmp libgcc/./_muldi3_s.o libgcc/./_negdi2_s.o libgcc/./_lshrdi3_s.o libgcc/./_ashldi3_s.o libgcc/./_ashrdi3_s.o libgcc/./_cmpdi2_s.o libgcc/./_ucmpdi2_s.o libgcc/./_clear_cache_s.o libgcc/./_enable_execute_stack_s.o libgcc/./_trampoline_s.o libgcc/./__main_s.o libgcc/./_absvsi2_s.o libgcc/./_absvdi2_s.o libgcc/./_addvsi3_s.o libgcc/./_addvdi3_s.o libgcc/./_subvsi3_s.o libgcc/./_subvdi3_s.o libgcc/./_mulvsi3_s.o libgcc/./_mulvdi3_s.o libgcc/./_negvsi2_s.o libgcc/./_negvdi2_s.o libgcc/./_ctors_s.o libgcc/./_ffssi2_s.o libgcc/./_ffsdi2_s.o libgcc/./_clz_s.o libgcc/./_clzsi2_s.o libgcc/./_clzdi2_s.o libgcc/./_ctzsi2_s.o libgcc/./_ctzdi2_s.o libgcc/./_popcount_tab_s.o libgcc/./_popcountsi2_s.o libgcc/./_popcountdi2_s.o libgcc/./_paritysi2_s.o libgcc/./_paritydi2_s.o libgcc/./_powisf2_s.o libgcc/./_powidf2_s.o libgcc/./_powixf2_s.o libgcc/./_powitf2_s.o libgcc/./_mulsc3_s.o libgcc/./_muldc3_s.o libgcc/./_mulxc3_s.o libgcc/./_multc3_s.o libgcc/./_divsc3_s.o libgcc/./_divdc3_s.o libgcc/./_divxc3_s.o libgcc/./_divtc3_s.o libgcc/./_bswapsi2_s.o libgcc/./_bswapdi2_s.o libgcc/./_fixunssfsi_s.o libgcc/./_fixunsdfsi_s.o libgcc/./_fixunsxfsi_s.o libgcc/./_fixsfdi_s.o libgcc/./_fixunssfdi_s.o libgcc/./_floatdisf_s.o libgcc/./_floatundisf_s.o libgcc/./_fixdfdi_s.o libgcc/./_fixunsdfdi_s.o libgcc/./_floatdidf_s.o libgcc/./_floatundidf_s.o libgcc/./_fixxfdi_s.o libgcc/./_fixunsxfdi_s.o libgcc/./_floatdixf_s.o libgcc/./_floatundixf_s.o libgcc/./_fixtfdi_s.o libgcc/./_fixunstfdi_s.o libgcc/./_floatditf_s.o libgcc/./_floatunditf_s.o libgcc/./_divdi3_s.o libgcc/./_moddi3_s.o libgcc/./_udivdi3_s.o libgcc/./_umoddi3_s.o libgcc/./_udiv_w_sdiv_s.o libgcc/./_udivmoddi4_s.o libgcc/./unwind-dw2_s.o libgcc/./unwind-dw2-fde-glibc_s.o libgcc/./unwind-sjlj_s.o libgcc/./gthr-gnat_s.o libgcc/./unwind-c_s.o -lc && rm -f ./libgcc_s.so && if [ -f ./libgcc_s.so.1 ]; then mv -f ./libgcc_s.so.1 ./libgcc_s.so.1.backup; else true; fi && mv ./libgcc_s.so.1.tmp ./libgcc_s.so.1 && ln -s libgcc_s.so.1 ./libgcc_s.so < ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -shared -nodefaultlibs -Wl,--soname=libgcc_s.so.1 -Wl,--version-script=libgcc/./libgcc.map -o ./libgcc_s.so.1.tmp libgcc/./_muldi3_s.o libgcc/./_negdi2_s.o l lambda-code.o langhooks.o libbackend.a libgcc.mk libgcc_s.so.1 lists.o llvm-convert.o llvm-linker-hack.o local-alloc.o loop-invariant.o loop-unswitch.o lambda-mat.o lcm.o libgcc/ libgcc_eh.a libgcc_s.so.1.tmp llvm-abi-default.o llvm-debug.o llvm-main.o loop-doloop.o loop-iv.o lambda-trans.o libada-mk libgcc.a libgcc_s.so@ libgcov.a llvm-backend.o llvm-i386.o llvm-types.o loop-init.o loop-unroll.o <gcc/./_lshrdi3_s.o libgcc/./_ashldi3_s.o libgcc/./_ashrdi3_s.o libgcc/./_cmpdi2_s.o libgcc/./_ucmpdi2_s.o libgcc/./_clear_cache_s.o libgcc/./_enable_execute_stack_s.o libgcc/./_trampoline_s.o libgcc/./__main_s.o libgcc/./_absvsi2_s.o libgcc/./_absvdi2_ _absvdi2_s.o <o libgcc/./_addvsi3_s.o libgcc/./_addvdi3_s.o libgcc/./_subvsi3_s.o libgcc/./_subvdi3_s.o libgcc/./_mulvsi3_s.o libgcc/./_mulvdi3_s.o libgcc/./_negvsi2_s.o libgcc/./_negvdi2_s.o libgcc/./_ctors_s.o libgcc/./_ffssi2_s.o libgcc/./_ffsdi2_s.o libgcc/./_cl _clear_cache.o _clear_cache_s.o _clz.o _clz_s.o _clzdi2.o _clzdi2_s.o _clzsi2.o _clzsi2_s.o <s.o libgcc/./_clzsi2_s.o libgcc/./_clzdi2_s.o libgcc/./_ctzsi2_s.o libgcc/./_ctzdi2_s.o libgcc/./_popcount_tab_s.o libgcc/./_popcountsi2_s.o libgcc/./_popcountdi2_s.o libgcc/./_paritysi2_s.o libgcc/./_paritydi2_s.o libgcc/./_powisf2_s.o libgcc/./_powid _powidf2.o _powidf2_s.o <_s.o libgcc/./_powixf2_s.o libgcc/./_powitf2_s.o libgcc/./_mulsc3_s.o libgcc/./_muldc3_s.o libgcc/./_mulxc3_s.o libgcc/./_multc3_s.o libgcc/./_divsc3_s.o libgcc/./_divdc3_s.o libgcc/./_divxc3_s.o libgcc/./_divtc3_s.o libgcc/./_bswapsi2_s.o libgcc/./_bs _bswapdi2.o _bswapdi2_s.o _bswapsi2.o _bswapsi2_s.o <pdi2_s.o libgcc/./_fixunssfsi_s.o libgcc/./_fixunsdfsi_s.o libgcc/./_fixunsxfsi_s.o libgcc/./_fixsfdi_s.o libgcc/./_fixunssfdi_s.o libgcc/./_floatdisf_s.o libgcc/./_floatundisf_s.o libgcc/./_fixdfdi_s.o libgcc/./_fixunsdfdi_s.o libgcc/./_floatdidf_s.o zsh: do you wish to see all 507 possibilities (57 lines)? n <bgcc/./_floatundidf_s.o libgcc/./_fixxfdi_s.o libgcc/./_fixunsxfdi_s.o libgcc/./_floatdixf_s.o libgcc/./_floatundixf_s.o libgcc/./_fixtfdi_s.o libgcc/./_fixunstfdi_s.o libgcc/./_floatditf_s.o libgcc/./_floatunditf_s.o libgcc/./_divdi3_s.o libgcc/./_mod _moddi3.o _moddi3_s.o <3_s.o libgcc/./_udivdi3_s.o libgcc/./_umoddi3_s.o libgcc/./_udiv_w_sdiv_s.o libgcc/./_udivmoddi4_s.o libgcc/./unwind-dw2_s.o libgcc/./unwind-dw2-fde-glibc_s.o libgcc/./unwind-sjlj_s.o libgcc/./gthr-gnat_s.o libgcc/./unwind-c_s.o -lc && rm -f ./libgcc_s libgcc_s.so@ libgcc_s.so.1 libgcc_s.so.1.tmp <o && if [ -f ./libgcc_s.so.1 ]; then mv -f ./libgcc_s.so.1 ./libgcc_s.so.1.backup; else true; fi && mv ./libgcc_s.so.1.tmp ./libgcc_s.so.1 && ln -s libgcc_s.so.1 ./libgcc_s.so execve("/home/jasonwkim/Work/hg-llvm/BUILD/llvm-gcc-4.2-rw/./gcc/xgcc", ["/home/jasonwkim/Work/hg-llvm/BUILD/llvm-gcc-4.2-rw/./gcc/xgcc", "-B/home/jasonwkim/Work/hg-llvm/BUILD/llvm-gcc-4.2-rw/./gcc/", "-B/pkgs/llvm-gcc-4.2-rw/x86_64-unknown-linux-gnu/bin/", "-B/pkgs/llvm-gcc-4.2-rw/x86_64-unknown-linux-gnu/lib/", "-isystem", "/pkgs/llvm-gcc-4.2-rw/x86_64-unknown-linux-gnu/include", "-isystem", "/pkgs/llvm-gcc-4.2-rw/x86_64-unknown-linux-gnu/sys-include", "-O2", "-O2", "-g", "-DIN_GCC", "-W", "-Wall", "-Wwrite-strings", "-Wstrict-prototypes", "-Wmissing-prototypes", "-Wold-style-definition", "-isystem", "./include", "-fPIC", "-g", "-DHAVE_GTHR_DEFAULT", "-DIN_LIBGCC2", "-D__GCC_FLOAT_NOT_NEEDED", "-shared", "-nodefaultlibs", "-Wl,--soname=libgcc_s.so.1", "-Wl,--version-script=libgcc/./libgcc.map", "-o", "./libgcc_s.so.1.tmp", "libgcc/./_muldi3_s.o", "libgcc/./_negdi2_s.o", "libgcc/./_lshrdi3_s.o", "libgcc/./_ashldi3_s.o", "libgcc/./_ashrdi3_s.o", "libgcc/./_cmpdi2_s.o", "libgcc/./_ucmpdi2_s.o", "libgcc/./_clear_cache_s.o", "libgcc/./_enable_execute_stack_s.o", "libgcc/./_trampoline_s.o", "libgcc/./__main_s.o", "libgcc/./_absvsi2_s.o", "libgcc/./_absvdi2_s.o", "libgcc/./_addvsi3_s.o", "libgcc/./_addvdi3_s.o", "libgcc/./_subvsi3_s.o", "libgcc/./_subvdi3_s.o", "libgcc/./_mulvsi3_s.o", "libgcc/./_mulvdi3_s.o", "libgcc/./_negvsi2_s.o", "libgcc/./_negvdi2_s.o", "libgcc/./_ctors_s.o", "libgcc/./_ffssi2_s.o", "libgcc/./_ffsdi2_s.o", "libgcc/./_clz_s.o", "libgcc/./_clzsi2_s.o", "libgcc/./_clzdi2_s.o", "libgcc/./_ctzsi2_s.o", "libgcc/./_ctzdi2_s.o", "libgcc/./_popcount_tab_s.o", "libgcc/./_popcountsi2_s.o", "libgcc/./_popcountdi2_s.o", "libgcc/./_paritysi2_s.o", "libgcc/./_paritydi2_s.o", "libgcc/./_powisf2_s.o", "libgcc/./_powidf2_s.o", "libgcc/./_powixf2_s.o", "libgcc/./_powitf2_s.o", "libgcc/./_mulsc3_s.o", "libgcc/./_muldc3_s.o", "libgcc/./_mulxc3_s.o", "libgcc/./_multc3_s.o", "libgcc/./_divsc3_s.o", "libgcc/./_divdc3_s.o", "libgcc/./_divxc3_s.o", "libgcc/./_divtc3_s.o", "libgcc/./_bswapsi2_s.o", "libgcc/./_bswapdi2_s.o", "libgcc/./_fixunssfsi_s.o", "libgcc/./_fixunsdfsi_s.o", "libgcc/./_fixunsxfsi_s.o", "libgcc/./_fixsfdi_s.o", "libgcc/./_fixunssfdi_s.o", "libgcc/./_floatdisf_s.o", "libgcc/./_floatundisf_s.o", "libgcc/./_fixdfdi_s.o", "libgcc/./_fixunsdfdi_s.o", "libgcc/./_floatdidf_s.o", "libgcc/./_floatundidf_s.o", "libgcc/./_fixxfdi_s.o", "libgcc/./_fixunsxfdi_s.o", "libgcc/./_floatdixf_s.o", "libgcc/./_floatundixf_s.o", "libgcc/./_fixtfdi_s.o", "libgcc/./_fixunstfdi_s.o", "libgcc/./_floatditf_s.o", "libgcc/./_floatunditf_s.o", "libgcc/./_divdi3_s.o", "libgcc/./_moddi3_s.o", "libgcc/./_udivdi3_s.o", "libgcc/./_umoddi3_s.o", "libgcc/./_udiv_w_sdiv_s.o", "libgcc/./_udivmoddi4_s.o", "libgcc/./unwind-dw2_s.o", "libgcc/./unwind-dw2-fde-glibc_s.o", "libgcc/./unwind-sjlj_s.o", "libgcc/./gthr-gnat_s.o", "libgcc/./unwind-c_s.o", "-lc"], [/* 82 vars */]) = 0 arch_prctl(ARCH_SET_FS, 0x7f98b6ca5720) = 0 vfork(Process 23234 attached ) = 23234 [pid 23233] wait4(23234, Process 23233 suspended <unfinished ...> [pid 23234] execve("/home/jasonwkim/Work/hg-llvm/BUILD/llvm-gcc-4.2-rw/./gcc/collect2", ["/home/jasonwkim/Work/hg-llvm/BUILD/llvm-gcc-4.2-rw/./gcc/collect2", "--eh-frame-hdr", "-m", "elf_x86_64", "-shared", "-o", "./libgcc_s.so.1.tmp", "/usr/lib/../lib64/crti.o", "/home/jasonwkim/Work/hg-llvm/BUILD/llvm-gcc-4.2-rw/./gcc/crtbeginS.o", "-L/home/jasonwkim/Work/hg-llvm/BUILD/llvm-gcc-4.2-rw/./gcc", "-L/lib/../lib64", "-L/usr/lib/../lib64", "--soname=libgcc_s.so.1", "--version-script=libgcc/./libgcc.map", "libgcc/./_muldi3_s.o", "libgcc/./_negdi2_s.o", "libgcc/./_lshrdi3_s.o", "libgcc/./_ashldi3_s.o", "libgcc/./_ashrdi3_s.o", "libgcc/./_cmpdi2_s.o", "libgcc/./_ucmpdi2_s.o", "libgcc/./_clear_cache_s.o", "libgcc/./_enable_execute_stack_s.o", "libgcc/./_trampoline_s.o", "libgcc/./__main_s.o", "libgcc/./_absvsi2_s.o", "libgcc/./_absvdi2_s.o", "libgcc/./_addvsi3_s.o", "libgcc/./_addvdi3_s.o", "libgcc/./_subvsi3_s.o", "libgcc/./_subvdi3_s.o", "libgcc/./_mulvsi3_s.o", "libgcc/./_mulvdi3_s.o", "libgcc/./_negvsi2_s.o", "libgcc/./_negvdi2_s.o", "libgcc/./_ctors_s.o", "libgcc/./_ffssi2_s.o", "libgcc/./_ffsdi2_s.o", "libgcc/./_clz_s.o", "libgcc/./_clzsi2_s.o", "libgcc/./_clzdi2_s.o", "libgcc/./_ctzsi2_s.o", "libgcc/./_ctzdi2_s.o", "libgcc/./_popcount_tab_s.o", "libgcc/./_popcountsi2_s.o", "libgcc/./_popcountdi2_s.o", "libgcc/./_paritysi2_s.o", "libgcc/./_paritydi2_s.o", "libgcc/./_powisf2_s.o", "libgcc/./_powidf2_s.o", "libgcc/./_powixf2_s.o", "libgcc/./_powitf2_s.o", "libgcc/./_mulsc3_s.o", "libgcc/./_muldc3_s.o", "libgcc/./_mulxc3_s.o", "libgcc/./_multc3_s.o", "libgcc/./_divsc3_s.o", "libgcc/./_divdc3_s.o", "libgcc/./_divxc3_s.o", "libgcc/./_divtc3_s.o", "libgcc/./_bswapsi2_s.o", "libgcc/./_bswapdi2_s.o", "libgcc/./_fixunssfsi_s.o", "libgcc/./_fixunsdfsi_s.o", "libgcc/./_fixunsxfsi_s.o", "libgcc/./_fixsfdi_s.o", "libgcc/./_fixunssfdi_s.o", "libgcc/./_floatdisf_s.o", "libgcc/./_floatundisf_s.o", "libgcc/./_fixdfdi_s.o", "libgcc/./_fixunsdfdi_s.o", "libgcc/./_floatdidf_s.o", "libgcc/./_floatundidf_s.o", "libgcc/./_fixxfdi_s.o", "libgcc/./_fixunsxfdi_s.o", "libgcc/./_floatdixf_s.o", "libgcc/./_floatundixf_s.o", "libgcc/./_fixtfdi_s.o", "libgcc/./_fixunstfdi_s.o", "libgcc/./_floatditf_s.o", "libgcc/./_floatunditf_s.o", "libgcc/./_divdi3_s.o", "libgcc/./_moddi3_s.o", "libgcc/./_udivdi3_s.o", "libgcc/./_umoddi3_s.o", "libgcc/./_udiv_w_sdiv_s.o", "libgcc/./_udivmoddi4_s.o", "libgcc/./unwind-dw2_s.o", "libgcc/./unwind-dw2-fde-glibc_s.o", "libgcc/./unwind-sjlj_s.o", "libgcc/./gthr-gnat_s.o", "libgcc/./unwind-c_s.o", "-lc", "/home/jasonwkim/Work/hg-llvm/BUILD/llvm-gcc-4.2-rw/./gcc/crtendS.o", "/usr/lib/../lib64/crtn.o"], [/* 87 vars */]) = 0 [pid 23234] arch_prctl(ARCH_SET_FS, 0x7f5926061720) = 0 [pid 23234] vfork(Process 23235 attached (waiting for parent) Process 23235 resumed (parent 23234 ready) ) = 23235 [pid 23234] wait4(23235, Process 23234 suspended <unfinished ...> [pid 23235] execve("/home/jasonwkim/Work/hg-llvm/BUILD/llvm-gcc-4.2-rw/./gcc/collect-ld", ["/home/jasonwkim/Work/hg-llvm/BUILD/llvm-gcc-4.2-rw/./gcc/collect-ld", "--eh-frame-hdr", "-m", "elf_x86_64", "-shared", "-o", "./libgcc_s.so.1.tmp", "/usr/lib/../lib64/crti.o", "/home/jasonwkim/Work/hg-llvm/BUILD/llvm-gcc-4.2-rw/./gcc/crtbeginS.o", "-L/home/jasonwkim/Work/hg-llvm/BUILD/llvm-gcc-4.2-rw/./gcc", "-L/lib/../lib64", "-L/usr/lib/../lib64", "--soname=libgcc_s.so.1", "--version-script=libgcc/./libgcc.map", "libgcc/./_muldi3_s.o", "libgcc/./_negdi2_s.o", "libgcc/./_lshrdi3_s.o", "libgcc/./_ashldi3_s.o", "libgcc/./_ashrdi3_s.o", "libgcc/./_cmpdi2_s.o", "libgcc/./_ucmpdi2_s.o", "libgcc/./_clear_cache_s.o", "libgcc/./_enable_execute_stack_s.o", "libgcc/./_trampoline_s.o", "libgcc/./__main_s.o", "libgcc/./_absvsi2_s.o", "libgcc/./_absvdi2_s.o", "libgcc/./_addvsi3_s.o", "libgcc/./_addvdi3_s.o", "libgcc/./_subvsi3_s.o", "libgcc/./_subvdi3_s.o", "libgcc/./_mulvsi3_s.o", "libgcc/./_mulvdi3_s.o", "libgcc/./_negvsi2_s.o", "libgcc/./_negvdi2_s.o", "libgcc/./_ctors_s.o", "libgcc/./_ffssi2_s.o", "libgcc/./_ffsdi2_s.o", "libgcc/./_clz_s.o", "libgcc/./_clzsi2_s.o", "libgcc/./_clzdi2_s.o", "libgcc/./_ctzsi2_s.o", "libgcc/./_ctzdi2_s.o", "libgcc/./_popcount_tab_s.o", "libgcc/./_popcountsi2_s.o", "libgcc/./_popcountdi2_s.o", "libgcc/./_paritysi2_s.o", "libgcc/./_paritydi2_s.o", "libgcc/./_powisf2_s.o", "libgcc/./_powidf2_s.o", "libgcc/./_powixf2_s.o", "libgcc/./_powitf2_s.o", "libgcc/./_mulsc3_s.o", "libgcc/./_muldc3_s.o", "libgcc/./_mulxc3_s.o", "libgcc/./_multc3_s.o", "libgcc/./_divsc3_s.o", "libgcc/./_divdc3_s.o", "libgcc/./_divxc3_s.o", "libgcc/./_divtc3_s.o", "libgcc/./_bswapsi2_s.o", "libgcc/./_bswapdi2_s.o", "libgcc/./_fixunssfsi_s.o", "libgcc/./_fixunsdfsi_s.o", "libgcc/./_fixunsxfsi_s.o", "libgcc/./_fixsfdi_s.o", "libgcc/./_fixunssfdi_s.o", "libgcc/./_floatdisf_s.o", "libgcc/./_floatundisf_s.o", "libgcc/./_fixdfdi_s.o", "libgcc/./_fixunsdfdi_s.o", "libgcc/./_floatdidf_s.o", "libgcc/./_floatundidf_s.o", "libgcc/./_fixxfdi_s.o", "libgcc/./_fixunsxfdi_s.o", "libgcc/./_floatdixf_s.o", "libgcc/./_floatundixf_s.o", "libgcc/./_fixtfdi_s.o", "libgcc/./_fixunstfdi_s.o", "libgcc/./_floatditf_s.o", "libgcc/./_floatunditf_s.o", "libgcc/./_divdi3_s.o", "libgcc/./_moddi3_s.o", "libgcc/./_udivdi3_s.o", "libgcc/./_umoddi3_s.o", "libgcc/./_udiv_w_sdiv_s.o", "libgcc/./_udivmoddi4_s.o", "libgcc/./unwind-dw2_s.o", "libgcc/./unwind-dw2-fde-glibc_s.o", "libgcc/./unwind-sjlj_s.o", "libgcc/./gthr-gnat_s.o", "libgcc/./unwind-c_s.o", "-lc", "/home/jasonwkim/Work/hg-llvm/BUILD/llvm-gcc-4.2-rw/./gcc/crtendS.o", "/usr/lib/../lib64/crtn.o"], [/* 88 vars */]) = 0 [pid 23235] arch_prctl(ARCH_SET_FS, 0x7faf66989700) = 0 [pid 23235] execve("/usr/bin/ld", ["/usr/bin/ld", "--eh-frame-hdr", "-m", "elf_x86_64", "-shared", "-o", "./libgcc_s.so.1.tmp", "/usr/lib/../lib64/crti.o", "/home/jasonwkim/Work/hg-llvm/BUILD/llvm-gcc-4.2-rw/./gcc/crtbeginS.o", "-L/home/jasonwkim/Work/hg-llvm/BUILD/llvm-gcc-4.2-rw/./gcc", "-L/lib/../lib64", "-L/usr/lib/../lib64", "--soname=libgcc_s.so.1", "--version-script=libgcc/./libgcc.map", "libgcc/./_muldi3_s.o", "libgcc/./_negdi2_s.o", "libgcc/./_lshrdi3_s.o", "libgcc/./_ashldi3_s.o", "libgcc/./_ashrdi3_s.o", "libgcc/./_cmpdi2_s.o", "libgcc/./_ucmpdi2_s.o", "libgcc/./_clear_cache_s.o", "libgcc/./_enable_execute_stack_s.o", "libgcc/./_trampoline_s.o", "libgcc/./__main_s.o", "libgcc/./_absvsi2_s.o", "libgcc/./_absvdi2_s.o", "libgcc/./_addvsi3_s.o", "libgcc/./_addvdi3_s.o", "libgcc/./_subvsi3_s.o", "libgcc/./_subvdi3_s.o", "libgcc/./_mulvsi3_s.o", "libgcc/./_mulvdi3_s.o", "libgcc/./_negvsi2_s.o", "libgcc/./_negvdi2_s.o", "libgcc/./_ctors_s.o", "libgcc/./_ffssi2_s.o", "libgcc/./_ffsdi2_s.o", "libgcc/./_clz_s.o", "libgcc/./_clzsi2_s.o", "libgcc/./_clzdi2_s.o", "libgcc/./_ctzsi2_s.o", "libgcc/./_ctzdi2_s.o", "libgcc/./_popcount_tab_s.o", "libgcc/./_popcountsi2_s.o", "libgcc/./_popcountdi2_s.o", "libgcc/./_paritysi2_s.o", "libgcc/./_paritydi2_s.o", "libgcc/./_powisf2_s.o", "libgcc/./_powidf2_s.o", "libgcc/./_powixf2_s.o", "libgcc/./_powitf2_s.o", "libgcc/./_mulsc3_s.o", "libgcc/./_muldc3_s.o", "libgcc/./_mulxc3_s.o", "libgcc/./_multc3_s.o", "libgcc/./_divsc3_s.o", "libgcc/./_divdc3_s.o", "libgcc/./_divxc3_s.o", "libgcc/./_divtc3_s.o", "libgcc/./_bswapsi2_s.o", "libgcc/./_bswapdi2_s.o", "libgcc/./_fixunssfsi_s.o", "libgcc/./_fixunsdfsi_s.o", "libgcc/./_fixunsxfsi_s.o", "libgcc/./_fixsfdi_s.o", "libgcc/./_fixunssfdi_s.o", "libgcc/./_floatdisf_s.o", "libgcc/./_floatundisf_s.o", "libgcc/./_fixdfdi_s.o", "libgcc/./_fixunsdfdi_s.o", "libgcc/./_floatdidf_s.o", "libgcc/./_floatundidf_s.o", "libgcc/./_fixxfdi_s.o", "libgcc/./_fixunsxfdi_s.o", "libgcc/./_floatdixf_s.o", "libgcc/./_floatundixf_s.o", "libgcc/./_fixtfdi_s.o", "libgcc/./_fixunstfdi_s.o", "libgcc/./_floatditf_s.o", "libgcc/./_floatunditf_s.o", "libgcc/./_divdi3_s.o", "libgcc/./_moddi3_s.o", "libgcc/./_udivdi3_s.o", "libgcc/./_umoddi3_s.o", "libgcc/./_udiv_w_sdiv_s.o", "libgcc/./_udivmoddi4_s.o", "libgcc/./unwind-dw2_s.o", "libgcc/./unwind-dw2-fde-glibc_s.o", "libgcc/./unwind-sjlj_s.o", "libgcc/./gthr-gnat_s.o", "libgcc/./unwind-c_s.o", "-lc", "/home/jasonwkim/Work/hg-llvm/BUILD/llvm-gcc-4.2-rw/./gcc/crtendS.o", "/usr/lib/../lib64/crtn.o"], [/* 87 vars */]) = 0 [pid 23235] arch_prctl(ARCH_SET_FS, 0x7f755abb8700) = 0 *** glibc detected *** /usr/bin/ld: munmap_chunk(): invalid pointer: 0x000000000156cbf8 *** ======= Backtrace: ========/lib/libc.so.6(+0x775b6)[0x7f7559fb55b6] /usr/lib/libbfd-2.20.1-system.20100303.so(_bfd_elf_discard_section_eh_frame+0x3ee)[0x7f755a7525fe] /usr/lib/libbfd-2.20.1-system.20100303.so(bfd_elf_discard_info+0x2ed)[0x7f755a7462cd] /usr/bin/ld[0x41fc5c] /usr/bin/ld[0x413abd] /usr/bin/ld[0x418306] /lib/libc.so.6(__libc_start_main+0xfd)[0x7f7559f5cc4d] /usr/bin/ld[0x404269] ======= Memory map: =======00400000-00487000 r-xp 00000000 fc:00 1303609 /usr/bin/ld.bfd 00686000-00687000 r--p 00086000 fc:00 1303609 /usr/bin/ld.bfd 00687000-00688000 rw-p 00087000 fc:00 1303609 /usr/bin/ld.bfd 00688000-0068a000 rw-p 00000000 00:00 0 00f81000-0165a000 rw-p 00000000 00:00 0 [heap] 7f7559d27000-7f7559d3d000 r-xp 00000000 fc:00 1818643 /lib/libgcc_s.so.1 7f7559d3d000-7f7559f3c000 ---p 00016000 fc:00 1818643 /lib/libgcc_s.so.1 7f7559f3c000-7f7559f3d000 r--p 00015000 fc:00 1818643 /lib/libgcc_s.so.1 7f7559f3d000-7f7559f3e000 rw-p 00016000 fc:00 1818643 /lib/libgcc_s.so.1 7f7559f3e000-7f755a0b8000 r-xp 00000000 fc:00 1819131 /lib/libc-2.11.1.so 7f755a0b8000-7f755a2b7000 ---p 0017a000 fc:00 1819131 /lib/libc-2.11.1.so 7f755a2b7000-7f755a2bb000 r--p 00179000 fc:00 1819131 /lib/libc-2.11.1.so 7f755a2bb000-7f755a2bc000 rw-p 0017d000 fc:00 1819131 /lib/libc-2.11.1.so 7f755a2bc000-7f755a2c1000 rw-p 00000000 00:00 0 7f755a2c1000-7f755a2d7000 r-xp 00000000 fc:00 1819070 /lib/libz.so.1.2.3.3 7f755a2d7000-7f755a4d6000 ---p 00016000 fc:00 1819070 /lib/libz.so.1.2.3.3 7f755a4d6000-7f755a4d7000 r--p 00015000 fc:00 1819070 /lib/libz.so.1.2.3.3 7f755a4d7000-7f755a4d8000 rw-p 00016000 fc:00 1819070 /lib/libz.so.1.2.3.3 7f755a4d8000-7f755a4da000 r-xp 00000000 fc:00 1819137 /lib/libdl-2.11.1.so 7f755a4da000-7f755a6da000 ---p 00002000 fc:00 1819137 /lib/libdl-2.11.1.so 7f755a6da000-7f755a6db000 r--p 00002000 fc:00 1819137 /lib/libdl-2.11.1.so 7f755a6db000-7f755a6dc000 rw-p 00003000 fc:00 1819137 /lib/libdl-2.11.1.so 7f755a6dc000-7f755a7ad000 r-xp 00000000 fc:00 1157705 /usr/lib/libbfd-2.20.1-system.20100303.so 7f755a7ad000-7f755a9ad000 ---p 000d1000 fc:00 1157705 /usr/lib/libbfd-2.20.1-system.20100303.so 7f755a9ad000-7f755a9bb000 r--p 000d1000 fc:00 1157705 /usr/lib/libbfd-2.20.1-system.20100303.so 7f755a9bb000-7f755a9be000 rw-p 000df000 fc:00 1157705 /usr/lib/libbfd-2.20.1-system.20100303.so 7f755a9be000-7f755a9c2000 rw-p 00000000 00:00 0 7f755a9c2000-7f755a9e2000 r-xp 00000000 fc:00 1818636 /lib/ld-2.11.1.so 7f755ab77000-7f755abbb000 rw-p 00000000 00:00 0 7f755abd3000-7f755abe1000 rw-p 00000000 00:00 0 7f755abe1000-7f755abe2000 r--p 0001f000 fc:00 1818636 /lib/ld-2.11.1.so 7f755abe2000-7f755abe3000 rw-p 00020000 fc:00 1818636 /lib/ld-2.11.1.so 7f755abe3000-7f755abe4000 rw-p 00000000 00:00 0 7fff16d0d000-7fff16d23000 rw-p 00000000 00:00 0 [stack] 7fff16dff000-7fff16e00000 r-xp 00000000 00:00 0 [vdso] ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall] [pid 23235] --- SIGABRT (Aborted) @ 0 (0) --- Process 23234 resumed Process 23235 detached [pid 23234] <... wait4 resumed> [{WIFSIGNALED(s) && WTERMSIG(s) == SIGABRT}], 0, NULL) = 23235 [pid 23234] --- SIGCHLD (Child exited) @ 0 (0) --- collect2: ld terminated with signal 6 [Aborted] [pid 23234] exit_group(1) = ? Process 23233 resumed Process 23234 detached <... wait4 resumed> [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], 0, NULL) = 23234 --- SIGCHLD (Child exited) @ 0 (0) --- exit_group(1) = ? dreadstar:x86_64-Linux2:~/Work/hg-llvm/BUILD/llvm-gcc-4.2-rw/gcc>
Jay Foad
2011-Aug-07 08:56 UTC
[LLVMdev] llvm-gcc near tip causing crash in /usr/bin/ld due to memory corruption on linux x86_64
On 6 August 2011 23:05, Jason Kim <jasonwkim at google.com> wrote:> Hi everyone, > -r136747 of llvm-gcc (and possibly others) is apparently tickling a binutils > issue on linux x86-64 > Has anyone seen anything like this?Yes, it looks like this: http://sourceware.org/bugzilla/show_bug.cgi?id=12887 I think switching from ld to gold might be an effective work-around. Jay.
Jason Kim
2011-Aug-07 20:58 UTC
[LLVMdev] llvm-gcc near tip causing crash in /usr/bin/ld due to memory corruption on linux x86_64
On Sun, Aug 7, 2011 at 1:56 AM, Jay Foad <jay.foad at gmail.com> wrote:> On 6 August 2011 23:05, Jason Kim <jasonwkim at google.com> wrote: > > Hi everyone, > > -r136747 of llvm-gcc (and possibly others) is apparently tickling a > binutils > > issue on linux x86-64 > > Has anyone seen anything like this? > > Yes, it looks like this: > > http://sourceware.org/bugzilla/show_bug.cgi?id=12887 > > I think switching from ld to gold might be an effective work-around. >Hi Jay. Thanks - that seems to have done it.> > Jay. >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20110807/7e500b17/attachment.html>
Apparently Analagous Threads
- [LLVMdev] llvm-gcc near tip causing crash in /usr/bin/ld due to memory corruption on linux x86_64
- [LLVMdev] llvm-gcc near tip causing crash in /usr/bin/ld due to memory corruption on linux x86_64
- [LLVMdev] type-system-rewrite branch near landing
- /usr/bin/ld: cannot find -ljs aka missing link from /usr/lib64/libjs.so to /usr/lib64/libjs.so.1
- Solaris: Linking bin/smbd, /usr/ccs/bin/ld: illegal option -- E