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

Bug#487776: g++-4.3: g++ segfault when compiling with -ftree-parallelize-loops=2



Package: g++-4.3
Version: 4.3.1-2
Severity: normal

When compiling a pretty large file (8,000+ lines) with
-ftree-parallelize-loops=2, g++ segfaults, and leaves around a ~260MB corefile.
I couldn't figure out how to get symbols for the backtrace, but looking at the
addresses themselves, it seemed like the stack was corrupted, and had been
overwritten with a bunch of ints (during some parts of the backtrace, places,
the frame addresses were increasing monotonically at 4-byte increments, which
seems odd for actual function calls).

testcase is at http://web.mit.edu/~xsdg/www/g++_segfault_testcase.tar.bz2

Also, there was a secondary part of this behavior that I was not able to
reproduce.  When I removed the dependency flags (-M*), the segfault went away
and remained gone when I re-added them (without removing
-ftree-parallelize-loops at all).  At that point, I had to `make clean` and
then remake for the segfault to recur.  As mentioned, though, I have had
trouble reproducing this part of the behavior.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.25.7 (SMP w/2 CPU cores; PREEMPT)
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 g++-4.3 depends on:
ii  gcc-4.3                   4.3.1-2        The GNU C compiler
ii  gcc-4.3-base              4.3.1-2        The GNU Compiler Collection (base 
ii  libc6                     2.7-12         GNU C Library: Shared libraries
ii  libgmp3c2                 2:4.2.2+dfsg-3 Multiprecision arithmetic library
ii  libmpfr1ldbl              2.3.1.dfsg.1-2 multiple precision floating-point 
ii  libstdc++6-4.3-dev        4.3.1-2        The GNU Standard C++ Library v3 (d

Other possibly-relevant testcase compilation dependencies:
$dpkg -l *gtk* *atk* *cairo* *pango* *glib* *freetype* *libpng* *pixman* \
> | grep '^ii' | cut -c1-60 | grep ' lib'
ii  libatk1.0-0                          1.22.0-1           
ii  libatk1.0-dev                        1.22.0-1           
ii  libavahi-glib-dev                    0.6.22-3           
ii  libavahi-glib1                       0.6.22-3           
ii  libcairo2                            1.6.4-6            
ii  libcairo2-dev                        1.6.4-6            
ii  libcairomm-1.0-1                     1.6.0-1            
ii  libdbus-glib-1-2                     0.76-1             
ii  libdbus-glib-1-dev                   0.76-1             
ii  libfreetype6                         2.3.6-1            
ii  libfreetype6-dev                     2.3.6-1            
ii  libglib2.0-0                         2.17.0-1           
ii  libglib2.0-dev                       2.17.0-1           
ii  libglib2.0-doc                       2.16.3-2           
ii  libglibmm-2.4-1c2a                   2.16.1-1           
ii  libgtk2.0-0                          2.12.10-2          
ii  libgtk2.0-common                     2.12.9-3           
ii  libgtk2.0-dev                        2.12.10-2          
ii  libgtkhtml2-0                        2.11.1-2           
ii  libgtkhtml2-dev                      2.11.1-2           
ii  libgtkimageview-dev                  1.6.1-2            
ii  libgtkimageview0                     1.6.1-2            
ii  libgtkmm-2.4-1c2a                    1:2.12.7-1         
ii  libgtksourceview-common              1.8.5-1            
ii  libgtksourceview1.0-0                1.8.5-1            
ii  libgtksourceview2.0-0                2.2.1-1            
ii  libgtksourceview2.0-common           2.2.1-1            
ii  libgtkspell0                         2.0.10-4           
ii  libpango1.0-0                        1.20.3-1           
ii  libpango1.0-common                   1.20.3-1           
ii  libpango1.0-dev                      1.20.3-1           
ii  libpixman-1-0                        0.10.0-2           
ii  libpixman-1-dev                      0.10.0-2           
ii  libpng12-0                           1.2.27-1           
ii  libpng12-dev                         1.2.27-1           
ii  libpoppler-glib-dev                  0.6.4-1            
ii  libpoppler-glib2                     0.6.4-1            
ii  libpoppler-glib3                     0.8.2-2            
ii  libwxgtk2.6-0                        2.6.3.2.2-2

g++-4.3 recommends no packages.

-- no debconf information



Reply to: