Package: binutils Version: 2.17cvs20070426-1 Severity: normal When linking with the --print-map option, ld segfaults on unmangled global variables. In particular, the demangle function is called, which returns NULL. Then this is printed using puts, which results in the segfault. This only happens with the Debian version, when compiling from the orig.tar.gz (from the Debian source package, but without the diff.gz applied), the problem does not occur.
Example: having the source file foo.c, containing only one line: int a; The following will segfault: gcc -Wl,--print-map foo.c This will not segfault: g++ -Wl,--print-map foo.c On one machine, a self-compiled version also segfaults. However, on an other it doesn't. It may be that it really is an upstream problem, and I have somehow tested the wrong things. -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Kernel: Linux 2.6.18-4-686 (SMP w/1 CPU core) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Versions of packages binutils depends on: ii libc6 2.5-4 GNU C Library: Shared libraries binutils recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]