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

Bug#673749: marked as done (g++-4.7: gcc47 generates buggy code with optimisation flags)



Your message dated Fri, 08 Jun 2012 13:40:30 +0200
with message-id <4FD1E4AE.3010704@debian.org>
and subject line Re: g++-4.7: gcc47 generates buggy code with optimisation flags
has caused the Debian Bug report #673749,
regarding g++-4.7: gcc47 generates buggy code  with optimisation flags
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
673749: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=673749
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: g++-4.7
Version: 4.7.0-8
Severity: normal
Tags: upstream

Dear Maintainer,

   * What led up to the situation?
I ported feel++ to gcc47 and found out that it generates buggy code(generating
segfault) in optimisation mode.
Here are the steps to reproduce it
 - install feel++-apps
 - execute feel_doc_myfunctionspace (compiled using CMAKE_BUILD_TYPE=Release)
 - it generates a segfault

what happens is that a data structure containing only a double data member seem
to be optimized away and became dangling reference (invalid read using
valgrind).
The code crashes at line 220 of doc/manual/tutorial/myfunctionspace.cpp when
evaluating the expression template data structure g defined on line 215.

 - in gcc47 with CMAKE_BUILD_TYPE=Debug, it works without problems
 - with gcc45, gcc46, clang31 on Linux and OSX there are no problems at all
   in RelWithDebInfo and Release mode (CMAKE_BUILD_TYPE)

Hence I believe that this is a bug in gcc47 code generation/optimisation.



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

Kernel: Linux 3.2.0-2-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages g++-4.7 depends on:
ii  gcc-4.7             4.7.0-8
ii  gcc-4.7-base        4.7.0-8
ii  libc6               2.13-32
ii  libgmp10            2:5.0.5+dfsg-1.1
ii  libmpc2             0.9-4
ii  libmpfr4            3.1.0-5
ii  libstdc++6-4.7-dev  4.7.0-8
ii  zlib1g              1:1.2.7.dfsg-2

g++-4.7 recommends no packages.

Versions of packages g++-4.7 suggests:
pn  g++-4.7-multilib    <none>
pn  gcc-4.7-doc         <none>
pn  libstdc++6-4.7-dbg  <none>

-- no debconf information



--- End Message ---
--- Begin Message ---
Version: 4.7.0-11


--- End Message ---

Reply to: