bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ld crashes when building ZDoom with winelib


From: Benjamin Berkels
Subject: ld crashes when building ZDoom with winelib
Date: Tue, 01 May 2007 11:54:56 +0200
User-agent: Thunderbird 2.0.0.0 (Windows/20070326)

Hi all,

First excuse me, if this is the wrong place to report this, but AFAIK ld should not crash, no matter what I try to link. So this seems
to be a bug of ld to me.

I'm trying to build the Windows version of ZDoom 2.1.7 under Linux
with Winelib. Of course, I know that ZDoom can be compiled natively
under Linux, but I'm aiming to port Skulltag (which is based on ZDoom)
to Linux and if ZDoom can't be build with Winelib, Skulltag can't be
either.

With little modifications I was able to compile ZDoom with winegcc,
but during linking ld crashes, with a malloc error. This only happens if I link the dxguid library, but I need to link it, since I get undefined references otherwise.

It happens to me under Ubuntu 7.04 and openSUSE 10.2 with the GNU binutils and Wine versions supplied by these distros. Under Ubuntu I also tried Wine 0.9.35 and 0.9.36 and the latest weekly of binutils.

In case someone wants to reproduce it, I can supply the source. I get this message during linking:

-----------------------------------------------------------------

*** glibc detected *** /usr/bin/ld: malloc(): memory corruption: 0x0b293c00 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0x40136ef3]
/lib/tls/i686/cmov/libc.so.6(__libc_malloc+0x7e)[0x4013860e]
/lib/tls/i686/cmov/libc.so.6(qsort+0x61)[0x400fb011]
/usr/lib/libbfd-2.17.50.so(bfd_elf_final_link+0x2e2a)[0x4007f84a]
/usr/bin/ld[0x805f90b]
/usr/bin/ld[0x805ef20]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xdc)[0x400e4ebc]
/usr/bin/ld[0x804b011]
======= Memory map: ========
08048000-080b7000 r-xp 00000000 08:01 932679     /usr/bin/ld
080b7000-080b9000 rw-p 0006f000 08:01 932679     /usr/bin/ld
080b9000-0b36b000 rw-p 080b9000 00:00 0          [heap]
40000000-40019000 r-xp 00000000 08:01 572341     /lib/ld-2.5.so
40019000-4001b000 rw-p 00019000 08:01 572341     /lib/ld-2.5.so
4001b000-40029000 rw-p 4001b000 00:00 0
40029000-400c3000 r-xp 00000000 08:01 933679     /usr/lib/libbfd-2.17.50.so
400c3000-400cb000 rw-p 0009a000 08:01 933679     /usr/lib/libbfd-2.17.50.so
400cb000-400cf000 rw-p 400cb000 00:00 0
400cf000-4020a000 r-xp 00000000 08:01 575620 /lib/tls/i686/cmov/libc-2.5.so 4020a000-4020b000 r--p 0013b000 08:01 575620 /lib/tls/i686/cmov/libc-2.5.so 4020b000-4020d000 rw-p 0013c000 08:01 575620 /lib/tls/i686/cmov/libc-2.5.so
4020d000-4032e000 rw-p 4020d000 00:00 0
4033a000-40345000 r-xp 00000000 08:01 572384     /lib/libgcc_s.so.1
40345000-40346000 rw-p 0000a000 08:01 572384     /lib/libgcc_s.so.1
4034f000-403f8000 rw-p 4034f000 00:00 0
40400000-40421000 rw-p 40400000 00:00 0
40421000-40500000 ---p 40421000 00:00 0
bfeeb000-bff03000 rw-p bfeeb000 00:00 0          [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0          [vdso]
collect2: ld terminated with signal 6 [Aborted], core dumped

-----------------------------------------------------------------

Any suggestions?

Thanks,

Benjamin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]