public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug preprocessor/45386]  New: [4.6 Regression] valgrind reports out-of-bounds read in search_line_sse2
@ 2010-08-23 18:01 zsojka at seznam dot cz
  2010-08-23 20:05 ` [Bug preprocessor/45386] " rguenth at gcc dot gnu dot org
  2010-09-02 11:19 ` rguenth at gcc dot gnu dot org
  0 siblings, 2 replies; 6+ messages in thread
From: zsojka at seznam dot cz @ 2010-08-23 18:01 UTC (permalink / raw)
  To: gcc-bugs

---- testcase.c ----
int i;
--------------------
Actually, it seems any C file will suffice to reproduce.

Valgrind output:
$ valgrind -q --trace-children=yes gcc testcase.c -c
==10251== Invalid read of size 8
==10251==    at 0xFEE4F3: search_line_sse2 (lex.c:372)
==10251==    by 0xFEE6E9: _cpp_clean_line (lex.c:649)
==10251==    by 0xFEF0E7: _cpp_get_fresh_line (lex.c:1862)
==10251==    by 0xFF0871: _cpp_lex_direct (lex.c:1927)
==10251==    by 0xFF1666: _cpp_lex_token (lex.c:1801)
==10251==    by 0xFF3DA7: cpp_get_token (macro.c:1240)
==10251==    by 0xFF405F: cpp_get_token_with_location (macro.c:1352)
==10251==    by 0x54977C: c_lex_with_flags (c-lex.c:302)
==10251==    by 0x502FE7: c_lex_one_token (c-parser.c:204)
==10251==    by 0x513367: c_parse_file (c-parser.c:320)
==10251==    by 0x54EE0A: c_common_parse_file (c-opts.c:1206)
==10251==    by 0x8AB1D8: toplev_main (toplev.c:971)
==10251==  Address 0x710b9c8 is 0 bytes after a block of size 8 alloc'd
==10251==    at 0x4C261DF: realloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==10251==    by 0x1017B6C: xrealloc (xmalloc.c:179)
==10251==    by 0xFE32BF: _cpp_convert_input (charset.c:1734)
==10251==    by 0xFEBC52: read_file (files.c:648)
==10251==    by 0xFEC67A: _cpp_stack_file (files.c:723)
==10251==    by 0xFEDF60: cpp_read_main_file (init.c:570)
==10251==    by 0x54E4BA: c_common_post_options (c-opts.c:1124)
==10251==    by 0x8AA6D4: toplev_main (toplev.c:1743)
==10251==    by 0x6589BBC: (below main) (in /lib64/libc-2.11.2.so)
==10251== 

Tested revisions:
r163468 - fail
r162940 - OK
r161659 - OK


-- 
           Summary: [4.6 Regression] valgrind reports out-of-bounds read in
                    search_line_sse2
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: preprocessor
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


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


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

* [Bug preprocessor/45386] [4.6 Regression] valgrind reports out-of-bounds read in search_line_sse2
  2010-08-23 18:01 [Bug preprocessor/45386] New: [4.6 Regression] valgrind reports out-of-bounds read in search_line_sse2 zsojka at seznam dot cz
@ 2010-08-23 20:05 ` rguenth at gcc dot gnu dot org
  2010-09-02 11:19 ` rguenth at gcc dot gnu dot org
  1 sibling, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-08-23 20:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2010-08-23 20:05 -------
I think that's by design (it won't cross page boundary though).


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rth at gcc dot gnu dot org
   Target Milestone|---                         |4.6.0


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


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

* [Bug preprocessor/45386] [4.6 Regression] valgrind reports out-of-bounds read in search_line_sse2
  2010-08-23 18:01 [Bug preprocessor/45386] New: [4.6 Regression] valgrind reports out-of-bounds read in search_line_sse2 zsojka at seznam dot cz
  2010-08-23 20:05 ` [Bug preprocessor/45386] " rguenth at gcc dot gnu dot org
@ 2010-09-02 11:19 ` rguenth at gcc dot gnu dot org
  1 sibling, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-09-02 11:19 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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


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

* [Bug preprocessor/45386] [4.6 Regression] valgrind reports out-of-bounds read in search_line_sse2
       [not found] <bug-45386-4@http.gcc.gnu.org/bugzilla/>
  2010-09-29 16:17 ` tromey at gcc dot gnu.org
  2015-08-20 15:56 ` pinskia at gcc dot gnu.org
@ 2015-08-20 16:27 ` manu at gcc dot gnu.org
  2 siblings, 0 replies; 6+ messages in thread
From: manu at gcc dot gnu.org @ 2015-08-20 16:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45386

Manuel López-Ibáñez <manu at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |manu at gcc dot gnu.org

--- Comment #4 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
It should be possible to create a suppression file to silence false positives:
http://valgrind.org/docs/manual/manual-core.html#manual-core.suppress

but a comment in the code search_line_sse2 (lex.c:372) is probably as good to
avoid further duplicates.
>From gcc-bugs-return-495301-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 20 17:02:49 2015
Return-Path: <gcc-bugs-return-495301-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9144 invoked by alias); 20 Aug 2015 17:02:49 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 9096 invoked by uid 48); 20 Aug 2015 17:02:45 -0000
From: "ville.voutilainen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug libstdc++/63176] std::generate_canonical<float, std::numeric_limits<float>::digits>() generates 1.0f
Date: Thu, 20 Aug 2015 17:02:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: libstdc++
X-Bugzilla-Version: unknown
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: ville.voutilainen at gmail dot com
X-Bugzilla-Status: NEW
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on cc everconfirmed
Message-ID: <bug-63176-4-xzvtSlV7IP@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-63176-4@http.gcc.gnu.org/bugzilla/>
References: <bug-63176-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2015-08/txt/msg01443.txt.bz2
Content-length: 572

https://gcc.gnu.org/bugzilla/show_bug.cgi?idc176

Ville Voutilainen <ville.voutilainen at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2015-08-20
                 CC|                            |redi at gcc dot gnu.org,
                   |                            |ville.voutilainen at gmail dot com
     Ever confirmed|0                           |1


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

* [Bug preprocessor/45386] [4.6 Regression] valgrind reports out-of-bounds read in search_line_sse2
       [not found] <bug-45386-4@http.gcc.gnu.org/bugzilla/>
  2010-09-29 16:17 ` tromey at gcc dot gnu.org
@ 2015-08-20 15:56 ` pinskia at gcc dot gnu.org
  2015-08-20 16:27 ` manu at gcc dot gnu.org
  2 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2015-08-20 15:56 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45386

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |redi at gcc dot gnu.org

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
*** Bug 67292 has been marked as a duplicate of this bug. ***


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

* [Bug preprocessor/45386] [4.6 Regression] valgrind reports out-of-bounds read in search_line_sse2
       [not found] <bug-45386-4@http.gcc.gnu.org/bugzilla/>
@ 2010-09-29 16:17 ` tromey at gcc dot gnu.org
  2015-08-20 15:56 ` pinskia at gcc dot gnu.org
  2015-08-20 16:27 ` manu at gcc dot gnu.org
  2 siblings, 0 replies; 6+ messages in thread
From: tromey at gcc dot gnu.org @ 2010-09-29 16:17 UTC (permalink / raw)
  To: gcc-bugs

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

Tom Tromey <tromey at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
                 CC|                            |tromey at gcc dot gnu.org
         Resolution|                            |INVALID

--- Comment #2 from Tom Tromey <tromey at gcc dot gnu.org> 2010-09-29 14:36:56 UTC ---
I agree, that is what is happening here.
I think this is invalid, so I am closing it.


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

end of thread, other threads:[~2015-08-20 16:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-23 18:01 [Bug preprocessor/45386] New: [4.6 Regression] valgrind reports out-of-bounds read in search_line_sse2 zsojka at seznam dot cz
2010-08-23 20:05 ` [Bug preprocessor/45386] " rguenth at gcc dot gnu dot org
2010-09-02 11:19 ` rguenth at gcc dot gnu dot org
     [not found] <bug-45386-4@http.gcc.gnu.org/bugzilla/>
2010-09-29 16:17 ` tromey at gcc dot gnu.org
2015-08-20 15:56 ` pinskia at gcc dot gnu.org
2015-08-20 16:27 ` manu at gcc dot gnu.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).