public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug sanitizer/67867] New: UBSan bootstrap fails with error: ‘otype’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
@ 2015-10-06 12:56 chefmax at gcc dot gnu.org
  2015-10-06 13:01 ` [Bug sanitizer/67867] " chefmax at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: chefmax at gcc dot gnu.org @ 2015-10-06 12:56 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 67867
           Summary: UBSan bootstrap fails with error: ‘otype’ may be used
                    uninitialized in this function
                    [-Werror=maybe-uninitialized]
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: chefmax at gcc dot gnu.org
                CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
                    jakub at gcc dot gnu.org, kcc at gcc dot gnu.org,
                    mpolacek at gcc dot gnu.org, y.gribov at samsung dot com
  Target Milestone: ---
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu
             Build: x86_64-pc-linux-gnu

$ /home/max/build/master-ref/./prev-gcc/xg++
-B/home/max/build/master-ref/./prev-gcc/
-B/home/max/install/master-ref/x86_64-unknown-linux-gnu/bin/ -nostdinc++
-B/home/max/build/master-ref/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-B/home/max/build/master-ref/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs

-I/home/max/build/master-ref/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include/x86_64-unknown-linux-gnu

-I/home/max/build/master-ref/prev-x86_64-unknown-linux-gnu/libstdc++-v3/include
 -I/home/max/workspace/downloads/gcc/libstdc++-v3/libsupc++
-L/home/max/build/master-ref/prev-x86_64-unknown-linux-gnu/libstdc++-v3/src/.libs
-L/home/max/build/master-ref/prev-x86_64-unknown-linux-gnu/libstdc++-v3/libsupc++/.libs
-fno-PIE -c  -DIN_GCC_FRONTEND -g -O2 -fsanitize=undefined -DIN_GCC    
-fno-exceptions -fno-rtti -fasynchronous-unwind-tables -W -Wall -Wno-narrowing
-Wwrite-strings -Wcast-qual -Wmissing-format-attribute -Woverloaded-virtual
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
-fno-common  -DHAVE_CONFIG_H -I. -Icp -I/home/max/workspace/downloads/gcc/gcc
-I/home/max/workspace/downloads/gcc/gcc/cp
-I/home/max/workspace/downloads/gcc/gcc/../include
-I/home/max/workspace/downloads/gcc/gcc/../libcpp/include 
-I/home/max/workspace/downloads/gcc/gcc/../libdecnumber
-I/home/max/workspace/downloads/gcc/gcc/../libdecnumber/bid -I../libdecnumber
-I/home/max/workspace/downloads/gcc/gcc/../libbacktrace   -o cp/search.o -MT
cp/search.o -MMD -MP -MF cp/.deps/search.TPo
/home/max/workspace/downloads/gcc/gcc/cp/search.c
/home/max/workspace/downloads/gcc/gcc/cp/search.c: In function ‘int
accessible_p(tree, tree, bool)’:
/home/max/workspace/downloads/gcc/gcc/cp/search.c:1011:41: error: ‘otype’ may
be used uninitialized in this function [-Werror=maybe-uninitialized]
   dfs_accessible_data d = { decl, otype };
                                         ^

$ /home/max/build/master-ref/./prev-gcc/xg++ -v
Using built-in specs.
COLLECT_GCC=/home/max/build/master-ref/./prev-gcc/xg++
Target: x86_64-unknown-linux-gnu
Configured with: /home/max/workspace/downloads/gcc/configure --enable-multilib
--enable-checking --target=x86_64-unknown-linux-gnu
--host=x86_64-unknown-linux-gnu --build=x86_64-unknown-linux-gnu
--prefix=/home/max/install/master-ref --enable-languages=c,c++,lto
--enable-bootstrap --with-build-config=bootstrap-ubsan
Thread model: posix
gcc version 6.0.0 20151006 (experimental) (GCC)

I'm also attaching preprocessed source as bug.i.
>From gcc-bugs-return-498865-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Oct 06 13:00:39 2015
Return-Path: <gcc-bugs-return-498865-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 118436 invoked by alias); 6 Oct 2015 13:00:39 -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 118307 invoked by uid 48); 6 Oct 2015 13:00:30 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/67867] UBSan bootstrap fails with error:=?UTF-8?Q? ‘otype’ may be used uninitialized in this function ?=[-Werror=maybe-uninitialized]
Date: Tue, 06 Oct 2015 13:00:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 6.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: ASSIGNED
X-Bugzilla-Resolution:
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 6.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on target_milestone everconfirmed
Message-ID: <bug-67867-4-ib17rdTc5T@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67867-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67867-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-10/txt/msg00420.txt.bz2
Content-length: 642

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2015-10-06
   Target Milestone|---                         |6.0
     Ever confirmed|0                           |1

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Yeah, I've seen this many times and even had a patch to fix it, but I never
posted it.  Let me do it this time.


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

* [Bug sanitizer/67867] UBSan bootstrap fails with error: ‘otype’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  2015-10-06 12:56 [Bug sanitizer/67867] New: UBSan bootstrap fails with error: ‘otype’ may be used uninitialized in this function [-Werror=maybe-uninitialized] chefmax at gcc dot gnu.org
@ 2015-10-06 13:01 ` chefmax at gcc dot gnu.org
  2015-10-07 14:09 ` mpolacek at gcc dot gnu.org
  2015-10-07 14:10 ` mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: chefmax at gcc dot gnu.org @ 2015-10-06 13:01 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Maxim Ostapenko <chefmax at gcc dot gnu.org> ---
Created attachment 36451
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36451&action=edit
Reprocase.


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

* [Bug sanitizer/67867] UBSan bootstrap fails with error: ‘otype’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  2015-10-06 12:56 [Bug sanitizer/67867] New: UBSan bootstrap fails with error: ‘otype’ may be used uninitialized in this function [-Werror=maybe-uninitialized] chefmax at gcc dot gnu.org
  2015-10-06 13:01 ` [Bug sanitizer/67867] " chefmax at gcc dot gnu.org
@ 2015-10-07 14:09 ` mpolacek at gcc dot gnu.org
  2015-10-07 14:10 ` mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-10-07 14:09 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Author: mpolacek
Date: Wed Oct  7 14:09:05 2015
New Revision: 228569

URL: https://gcc.gnu.org/viewcvs?rev=228569&root=gcc&view=rev
Log:
        PR sanitizer/67867
        * search.c (accessible_p): Initialize OTYPE to NULL_TREE.

Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/search.c


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

* [Bug sanitizer/67867] UBSan bootstrap fails with error: ‘otype’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
  2015-10-06 12:56 [Bug sanitizer/67867] New: UBSan bootstrap fails with error: ‘otype’ may be used uninitialized in this function [-Werror=maybe-uninitialized] chefmax at gcc dot gnu.org
  2015-10-06 13:01 ` [Bug sanitizer/67867] " chefmax at gcc dot gnu.org
  2015-10-07 14:09 ` mpolacek at gcc dot gnu.org
@ 2015-10-07 14:10 ` mpolacek at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2015-10-07 14:10 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Fixed in trunk.


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

end of thread, other threads:[~2015-10-07 14:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-06 12:56 [Bug sanitizer/67867] New: UBSan bootstrap fails with error: ‘otype’ may be used uninitialized in this function [-Werror=maybe-uninitialized] chefmax at gcc dot gnu.org
2015-10-06 13:01 ` [Bug sanitizer/67867] " chefmax at gcc dot gnu.org
2015-10-07 14:09 ` mpolacek at gcc dot gnu.org
2015-10-07 14:10 ` mpolacek 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).