public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/26570]  New: -fprofile-generate -fprofile-use cause memory corruption immediately
@ 2006-03-05 23:26 ahu at ds9a dot nl
  2006-03-05 23:31 ` [Bug tree-optimization/26570] " nmiell at comcast dot net
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: ahu at ds9a dot nl @ 2006-03-05 23:26 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2418 bytes --]

This is reported: 

recursor_cache.hh:58: warning: comparison between signed and unsigned integer
expressions
syncres.cc: In function â(static destructors for syncres.cc)â:
syncres.cc:649: note: file syncres.gcda not found, execution counts estimated
*** glibc detected *** corrupted double-linked list: 0xa7fba938 ***

When compiling only with -fprofile-generate, no errors get emitted. When adding
-fprofile-use later on when the program has been run once, the following
happens:
if g++ -DHAVE_CONFIG_H -I. -I. -I..  -Ibackends/bind -pthread 
-DSYSCONFDIR=\"/usr/local/etc\" -DLIBDIR=\"/usr/local/lib\"
-DLOCALSTATEDIR=\"/var/run\" -Ibackends/bind  -D_GNU_SOURCE  -Wall -O2
-fprofile-generate  -fprofile-use -MT syncres.o -MD -MP -MF ".deps/syncres.Tpo"
-c -o syncres.o syncres.cc; \
then mv -f ".deps/syncres.Tpo" ".deps/syncres.Po"; else rm -f
".deps/syncres.Tpo"; exit 1; fi
recursor_cache.hh: In member function âbool
MemRecursorCache::predicate::operator()(const MemRecursorCache::StoredRecord&)
constâ:
recursor_cache.hh:58: warning: comparison between signed and unsigned integer
expressions
*** glibc detected *** corrupted double-linked list: 0xa7f55938 ***
syncres.cc: In function â_EuclideanRingElement
std::__gcd(_EuclideanRingElement, _EuclideanRingElement) [with
_EuclideanRingElement = int]â:
syncres.cc:649: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: *** [syncres.o] Error 1

To repeat, check out the latest revision of PowerDNS as described on
http://wiki.powerdns.com, run ./configure, cd pdns, edit CXXFLAGS in Makefile
so it includes -fprofile-generate and/or -fprofile-use, then run 'make
pdns_recursor'. Error should appear immediately.

Confirmed on Ubuntu Breezy, FreeBSD 6.0, Debian Sid crosscompiling to x86_64.


-- 
           Summary: -fprofile-generate -fprofile-use cause memory corruption
                    immediately
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ahu at ds9a dot nl
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2006-10-18  9:24 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-05 23:26 [Bug tree-optimization/26570] New: -fprofile-generate -fprofile-use cause memory corruption immediately ahu at ds9a dot nl
2006-03-05 23:31 ` [Bug tree-optimization/26570] " nmiell at comcast dot net
2006-03-05 23:39 ` [Bug gcov/profile/26570] " pinskia at gcc dot gnu dot org
2006-03-05 23:42 ` ahu at ds9a dot nl
2006-03-05 23:53 ` pinskia at gcc dot gnu dot org
2006-03-05 23:56 ` pinskia at gcc dot gnu dot org
2006-03-06  0:02 ` [Bug gcov/profile/26570] [4.1/4.2 Regression] " pinskia at gcc dot gnu dot org
2006-03-06  0:04 ` pinskia at gcc dot gnu dot org
2006-03-06  0:10 ` ahu at ds9a dot nl
2006-04-16 18:42 ` mmitchel at gcc dot gnu dot org
2006-05-25  2:40 ` mmitchel at gcc dot gnu dot org
2006-08-07 12:08 ` hubicka at gcc dot gnu dot org
2006-08-12  8:20 ` rakdver at gcc dot gnu dot org
2006-08-16  7:06 ` patchapp at dberlin dot org
2006-08-17  2:03 ` [Bug gcov/profile/26570] [4.1 " pinskia at gcc dot gnu dot org
2006-10-18  9:24 ` [Bug gcov-profile/26570] " rguenth at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).