Bug 32117 - Segfault with -b
Summary: Segfault with -b
Status: RESOLVED WONTFIX
Alias: None
Product: gcc
Classification: Unclassified
Component: driver (show other bugs)
Version: 4.1.1
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-28 01:00 UTC by Antoine Kaufmann
Modified: 2010-05-22 17:53 UTC (History)
1 user (show)

See Also:
Host: AMD64
Target: elf_x86_64
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Kaufmann 2007-05-28 01:00:13 UTC
Version:
Ziel: x86_64-pc-linux-gnu
Konfiguriert mit: /var/tmp/portage/gcc-4.1.1-r3/work/gcc-4.1.1/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.1.1/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --enable-secureplt --disable-libunwind-exceptions --enable-multilib --disable-libmudflap --disable-libssp --disable-libgcj --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
Thread-Modell: posix
gcc-Version 4.1.1 (Gentoo 4.1.1-r3)


I added the -b parameter, and then gcc started to produce segfaults.

Segfault:
*** glibc detected *** /usr/x86_64-pc-linux-gnu/gcc-bin/4.1.1/gcc: realloc(): invalid next size: 0x0000000000528d10 ***
make[6]: *** [list.o] Speicherzugriffsfehler

Commandline:
   gcc -b elf_x86_64 -g -c -nostdinc -fno-leading-underscore -fno-omit-frame-pointer -Wall -fno-strict-aliasing -O0 -save-temps-I . -I- $INCLUDES
Comment 1 Andrew Pinski 2007-06-10 03:26:18 UTC
Note you most likely don't have a x86_64-elf compiler installed anyways but we should not be crashing.
Comment 2 Joseph S. Myers 2010-05-22 17:53:59 UTC
-b and -V were removed:

2010-04-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>

        PR 42485
        * doc/invoke.texi (-b,-V): Delete.
        * doc/tm.texi: Do not mention -b.
        * gcc.c (display_help): Delete -b and -V.
        (process_command): Delete -b and -V.
        * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.