Menu

#521 *** Error in `/usr/bin/x86_64-w64-mingw32-ld': free(): invalid pointer

v1.0 (example)
closed-invalid
niXman
None
5
2016-01-09
2015-12-23
No
$ x86_64-w64-mingw32-g++ bug.cpp libfec.a
*** Error in `/usr/bin/x86_64-w64-mingw32-ld': free(): invalid pointer: 0x0000000000f22c18 ***
collect2: error: ld terminated with signal 6 [Aborted]
2 Attachments

Discussion

  • niXman

    niXman - 2015-12-23

    Please show the output of the 'x86_64-w64-mingw32-g++ -v' cmd.

     

    Last edit: niXman 2015-12-23
  • João M. S. Silva

    Here:

    $ x86_64-w64-mingw32-g++ -v
    Using built-in specs.
    COLLECT_GCC=x86_64-w64-mingw32-g++
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-w64-mingw32/4.8/lto-wrapper
    Target: x86_64-w64-mingw32
    Configured with: ../../src/configure --build=x86_64-linux-gnu --prefix=/usr --includedir='/usr/include' --mandir='/usr/share/man' --infodir='/usr/share/info' --sysconfdir=/etc --localstatedir=/var --libexecdir='/usr/lib/gcc-mingw-w64' --disable-maintainer-mode --disable-dependency-tracking --prefix=/usr --enable-shared --enable-static --disable-multilib --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --libdir=/usr/lib --enable-libstdcxx-time=yes --with-tune=generic --enable-version-specific-runtime-libs --enable-threads=posix --enable-fully-dynamic-string --enable-sjlj-exceptions --enable-libgomp --enable-languages=c,c++,fortran,objc,obj-c++ --enable-lto --with-plugin-ld --target=x86_64-w64-mingw32 --with-gxx-include-dir=/usr/include/c++/4.8 --with-as=/usr/bin/x86_64-w64-mingw32-as --with-ld=/usr/bin/x86_64-w64-mingw32-ld
    Thread model: posix
    gcc version 4.8.2 (GCC) 
    
     
  • niXman

    niXman - 2016-01-07

    As I can see you using not my builds, but cross-compiler.
    Moreover, this error is reproduced using the native compiler(gcc-4.8.2-x86_64-w64-mingw32-posix-sjlj).
    Because the error occurs when linking, I assume that the libfec.a is the reason for the error.

    I have no other ideas...

     
  • João M. S. Silva

    You can close this. The libfec.a I was using was a Linux library, sorry. Also from IRC discussion this is a bug in ld.

     
  • niXman

    niXman - 2016-01-09
    • status: open --> closed-invalid
    • assigned_to: niXman
     

Log in to post a comment.

MongoDB Logo MongoDB