public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/19419] New: ACATS CXA4009, CXA4020 - valgrind detects bad code (overlapping memcpy)
@ 2005-01-13  7:53 baldrick at free dot fr
  2005-01-14  8:59 ` [Bug ada/19419] " baldrick at free dot fr
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: baldrick at free dot fr @ 2005-01-13  7:53 UTC (permalink / raw)
  To: gcc-bugs

Originally noted in [Bug middle-end/19410], but seems to be a different 
problem (maybe front-end). 
 
RUN cxa4020 
==24948== Memcheck, a memory error detector for x86-linux. 
==24948== Copyright (C) 2002-2004, and GNU GPL'd, by Julian Seward et al. 
==24948== Using valgrind-2.3.0.CVS, a program supervision framework for 
x86-linux. 
==24948== Copyright (C) 2000-2004, and GNU GPL'd, by Julian Seward et al. 
==24948== For more details, rerun with: -v 
==24948== 
 
,.,. CXA4020 ACATS 2.5 05-01-11 17:13:16 
---- CXA4020 Check that the subprograms defined in package 
                Ada.Strings.Wide_Bounded are available, and that they 
                produce correct results, especially under conditions 
                where truncation of the result is required. 
==24948== Source and destination overlap in memcpy(0x52BFC8F8, 0x52BFC8FC, 8) 
==24948==    at 0x1B906AC5: memcpy (mac_replace_strmem.c:113) 
==24948==    by 0x805CABC: ada__strings__wide_superbounded__super_trim__4 
(a-stwisu.adb:1664) 
==24948==    by 0x8068805: cxa4020__test_block__b10__trim__4.1007 
(a-stwibo.ads:810) 
==24948==    by 0x806ABF6: _ada_cxa4020 (cxa4020.adb:396) 
==24948== 
==24948== Source and destination overlap in memcpy(0x52BFC8F8, 0x52BFC8FC, 12) 
==24948==    at 0x1B906AC5: memcpy (mac_replace_strmem.c:113) 
==24948==    by 0x805CABC: ada__strings__wide_superbounded__super_trim__4 
(a-stwisu.adb:1664) 
==24948==    by 0x8068805: cxa4020__test_block__b10__trim__4.1007 
(a-stwibo.ads:810) 
==24948==    by 0x806ACDC: _ada_cxa4020 (cxa4020.adb:411) 
==24948== 
==24948== Source and destination overlap in memcpy(0x52BFC8F8, 0x52BFC8FC, 12) 
==24948==    at 0x1B906AC5: memcpy (mac_replace_strmem.c:113) 
==24948==    by 0x805CABC: ada__strings__wide_superbounded__super_trim__4 
(a-stwisu.adb:1664) 
==24948==    by 0x8068805: cxa4020__test_block__b10__trim__4.1007 
(a-stwibo.ads:810) 
==24948==    by 0x806ADC2: _ada_cxa4020 (cxa4020.adb:422) 
==24948== 
==24948== Source and destination overlap in memcpy(0x52BFC8F8, 0x52BFC900, 10) 
==24948==    at 0x1B906AC5: memcpy (mac_replace_strmem.c:113) 
==24948==    by 0x805CABC: ada__strings__wide_superbounded__super_trim__4 
(a-stwisu.adb:1664) 
==24948==    by 0x8068805: cxa4020__test_block__b10__trim__4.1007 
(a-stwibo.ads:810) 
==24948==    by 0x806AEA8: _ada_cxa4020 (cxa4020.adb:433) 
==== CXA4020 PASSED ============================. 
==24948== 
==24948== ERROR SUMMARY: 4 errors from 4 contexts (suppressed: 13 from 1) 
==24948== malloc/free: in use at exit: 10280 bytes in 2 blocks. 
==24948== malloc/free: 23 allocs, 21 frees, 12122 bytes allocated. 
==24948== For a detailed leak analysis,  rerun with: --leak-check=yes 
==24948== For counts of detected errors, rerun with: -v 
PASS:   cxa4020

-- 
           Summary: ACATS CXA4009, CXA4020 - valgrind detects bad code
                    (overlapping memcpy)
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: baldrick at free dot fr
                CC: gcc-bugs at gcc dot gnu dot org
 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=19419


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

end of thread, other threads:[~2005-09-12  7:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-13  7:53 [Bug ada/19419] New: ACATS CXA4009, CXA4020 - valgrind detects bad code (overlapping memcpy) baldrick at free dot fr
2005-01-14  8:59 ` [Bug ada/19419] " baldrick at free dot fr
2005-01-14 23:23 ` baldrick at free dot fr
2005-01-14 23:35 ` [Bug middle-end/19419] " pinskia at gcc dot gnu dot org
2005-01-14 23:36 ` pinskia at gcc dot gnu dot org
2005-01-15 12:28 ` baldrick at free dot fr
2005-01-15 12:34 ` [Bug ada/19419] " steven at gcc dot gnu dot org
2005-01-15 16:27 ` [Bug middle-end/19419] " pinskia at gcc dot gnu dot org
2005-09-12  6:14 ` [Bug middle-end/19419] Overlapping memcpy with discriminated types ebotcazou at gcc dot gnu dot org
2005-09-12  7:27 ` ebotcazou 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).