http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46418

           Summary: Segmentation fault compiling C source with no
                    optimization on x86/32-bit under 4.4.3
           Product: gcc
           Version: 4.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: k...@dakko.us
            Target: i486-linux-gnu


Created attachment 22366
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22366
processed intermediary

I'm working on a memory allocator and trying to track down a bug somewhere
using gdb, so I needed to build on a 32-bit x86 system without optimization as
all the important values were being optimized out.

System:

AMD Phenom(tm) II X4 940
Ubuntu 10.04.1 (32-bit)
Linux luka 2.6.32-25-generic #45-Ubuntu SMP Sat Oct 16 19:48:22 UTC 2010 i686
GNU/Linux

GCC output:

Using built-in specs.
Target: i486-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 4.4.3-4ubuntu5'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--enable-multiarch --enable-linker-build-id --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --enable-plugin --enable-objc-gc
--enable-targets=all --disable-werror --with-arch-32=i486 --with-tune=generic
--enable-checking=release --build=i486-linux-gnu --host=i486-linux-gnu
--target=i486-linux-gnu
Thread model: posix
gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) 
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-g' '-I.' '-Wall' '-Wextra' '-pedantic'
'-std=c99' '-o' 'opt_alloc.so' '-shared' '-fPIC' '-mtune=generic' '-march=i486'
 /usr/lib/gcc/i486-linux-gnu/4.4.3/cc1 -E -quiet -v -I. alloc.c
-D_FORTIFY_SOURCE=2 -mtune=generic -march=i486 -std=c99 -Wall -Wextra -pedantic
-fPIC -g -fworking-directory -fpch-preprocess -fstack-protector -o alloc.i
ignoring nonexistent directory "/usr/local/include/i486-linux-gnu"
ignoring nonexistent directory
"/usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../i486-linux-gnu/include"
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
 .
 /usr/local/include
 /usr/lib/gcc/i486-linux-gnu/4.4.3/include
 /usr/lib/gcc/i486-linux-gnu/4.4.3/include-fixed
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-g' '-I.' '-Wall' '-Wextra' '-pedantic'
'-std=c99' '-o' 'opt_alloc.so' '-shared' '-fPIC' '-mtune=generic' '-march=i486'
 /usr/lib/gcc/i486-linux-gnu/4.4.3/cc1 -fpreprocessed alloc.i -quiet -dumpbase
alloc.c -mtune=generic -march=i486 -auxbase alloc -g -Wall -Wextra -pedantic
-std=c99 -version -fPIC -fstack-protector -o alloc.s
GNU C (Ubuntu 4.4.3-4ubuntu5) version 4.4.3 (i486-linux-gnu)
    compiled by GNU C version 4.4.3, GMP version 4.3.2, MPFR version 2.4.2-p1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C (Ubuntu 4.4.3-4ubuntu5) version 4.4.3 (i486-linux-gnu)
    compiled by GNU C version 4.4.3, GMP version 4.3.2, MPFR version 2.4.2-p1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 5998ce5f1765e99eea5269f4c1e38d44
alloc.c:305: warning: ‘klmalloc_print_skiplist’ defined but not used
alloc.c:373: warning: ‘klmalloc_skip_list_contains’ defined but not used
alloc.c: In function ‘klmalloc_make_skipnode’:
alloc.c:336: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.

Reply via email to