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

Bug#475546: gcc-4.2: Appears to enter infinite loop, claiming more and more memory

Package: gcc-4.2
Version: 4.2.3-3
Severity: normal

While trying to compile a program called tomoe (can be downloaded at
), gcc stops working properly in that it fails to complete the
following operation, as generated by the configure script without any
options in the Makefile:

gcc -DHAVE_CONFIG_H -I. -I../.. -I../../bindings/ruby -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DCONFDIR=\"/usr/local/etc/tomoe\" -DDATADIR=\"/usr/local/share/tomoe\" -DDICT_DATADIR=\"/usr/local/share/tomoe/dict\" -DRECOGNIZER_DATADIR=\"/usr/local/share/tomoe/recognizer\" -DDICT_MODULEDIR=\"/usr/local/lib/tomoe/module/dict\" -DRECOGNIZER_MODULEDIR=\"/usr/local/lib/tomoe/module/recognizer\" -I../../lib -I/subversion-1 -DG_LOG_DOMAIN=\"Tomoe/Dict:Unihan\" -DRUBY_EXTDIR=\"\" -DRUBY_LIBDIR=\"\" -g -O2 -Wall -Wmissing-declarations -Wmissing-prototypes -Wpointer-arith -Wcast-align -MT unihan_la-tomoe-unihan.lo -MD -MP -MF .deps/unihan_la-tomoe-unihan.Tpo -c tomoe-unihan.c  -fPIC -DPIC -o .libs/unihan_la-tomoe-unihan.o

This was reproducible (after "make clean" and then "make" again). It
is possible that it would have completed sometime, but not after a
sane amount of time and approximately 1.5 GB of memory allocation
(after which I used Ctrl+C to stop the build process). Leaving -O2
away in the command line causes the file to be compiled properly.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-k7 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gcc-4.2 depends on:
ii  binutils            2.18.1~cvs20080103-4 The GNU assembler, linker and bina
ii  cpp-4.2             4.2.3-3              The GNU C preprocessor
ii  gcc-4.2-base        4.2.3-3              The GNU Compiler Collection (base 
ii  libc6               2.7-10               GNU C Library: Shared libraries
ii  libgcc1             1:4.3.0-1            GCC support library

Versions of packages gcc-4.2 recommends:
ii  libc6-dev                     2.7-10     GNU C Library: Development Librari

-- no debconf information

Reply to: