public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug sanitizer/65004] New: Compare debug failure with -fno-sanitize-recover -fsanitize=address -fsanitize=undefined
@ 2015-02-10 16:06 burnus at gcc dot gnu.org
  2015-02-10 16:23 ` [Bug sanitizer/65004] " jakub at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: burnus at gcc dot gnu.org @ 2015-02-10 16:06 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 65004
           Summary: Compare debug failure with -fno-sanitize-recover
                    -fsanitize=address -fsanitize=undefined
           Product: gcc
           Version: 5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: sanitizer
          Assignee: unassigned at gcc dot gnu.org
          Reporter: burnus 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

Created attachment 34714
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34714&action=edit
test.ii (compile with: g++ -fcompare-debug -O1 -fsanitize=address
-fno-sanitize-recover -fsanitize=undefined)

The attached program fails with
  g++: error: test.ii: -fcompare-debug failure
when compiled with g++ -fcompare-debug -O1 -fsanitize=address
-fno-sanitize-recover -fsanitize=undefined test.ii


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

* [Bug sanitizer/65004] Compare debug failure with -fno-sanitize-recover -fsanitize=address -fsanitize=undefined
  2015-02-10 16:06 [Bug sanitizer/65004] New: Compare debug failure with -fno-sanitize-recover -fsanitize=address -fsanitize=undefined burnus at gcc dot gnu.org
@ 2015-02-10 16:23 ` jakub at gcc dot gnu.org
  2015-02-10 18:00 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-02-10 16:23 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2015-02-10
           Assignee|unassigned at gcc dot gnu.org      |jakub at gcc dot gnu.org
   Target Milestone|---                         |5.0
     Ever confirmed|0                           |1


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

* [Bug sanitizer/65004] Compare debug failure with -fno-sanitize-recover -fsanitize=address -fsanitize=undefined
  2015-02-10 16:06 [Bug sanitizer/65004] New: Compare debug failure with -fno-sanitize-recover -fsanitize=address -fsanitize=undefined burnus at gcc dot gnu.org
  2015-02-10 16:23 ` [Bug sanitizer/65004] " jakub at gcc dot gnu.org
@ 2015-02-10 18:00 ` jakub at gcc dot gnu.org
  2015-02-10 22:00 ` jakub at gcc dot gnu.org
  2015-02-10 22:01 ` [Bug sanitizer/65004] [5 Regression] " jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-02-10 18:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 34716
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34716&action=edit
gcc5-pr65004.patch

Untested fix.


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

* [Bug sanitizer/65004] Compare debug failure with -fno-sanitize-recover -fsanitize=address -fsanitize=undefined
  2015-02-10 16:06 [Bug sanitizer/65004] New: Compare debug failure with -fno-sanitize-recover -fsanitize=address -fsanitize=undefined burnus at gcc dot gnu.org
  2015-02-10 16:23 ` [Bug sanitizer/65004] " jakub at gcc dot gnu.org
  2015-02-10 18:00 ` jakub at gcc dot gnu.org
@ 2015-02-10 22:00 ` jakub at gcc dot gnu.org
  2015-02-10 22:01 ` [Bug sanitizer/65004] [5 Regression] " jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-02-10 22:00 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Tue Feb 10 22:00:11 2015
New Revision: 220596

URL: https://gcc.gnu.org/viewcvs?rev=220596&root=gcc&view=rev
Log:
    PR sanitizer/65004
    * ubsan.c (ubsan_expand_vptr_ifn): Always return true.

    * g++.dg/asan/pr65004.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/asan/pr65004.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/ubsan.c


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

* [Bug sanitizer/65004] [5 Regression] Compare debug failure with -fno-sanitize-recover -fsanitize=address -fsanitize=undefined
  2015-02-10 16:06 [Bug sanitizer/65004] New: Compare debug failure with -fno-sanitize-recover -fsanitize=address -fsanitize=undefined burnus at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2015-02-10 22:00 ` jakub at gcc dot gnu.org
@ 2015-02-10 22:01 ` jakub at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-02-10 22:01 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED
            Summary|Compare debug failure with  |[5 Regression] Compare
                   |-fno-sanitize-recover       |debug failure with
                   |-fsanitize=address          |-fno-sanitize-recover
                   |-fsanitize=undefined        |-fsanitize=address
                   |                            |-fsanitize=undefined

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.


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

end of thread, other threads:[~2015-02-10 22:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-10 16:06 [Bug sanitizer/65004] New: Compare debug failure with -fno-sanitize-recover -fsanitize=address -fsanitize=undefined burnus at gcc dot gnu.org
2015-02-10 16:23 ` [Bug sanitizer/65004] " jakub at gcc dot gnu.org
2015-02-10 18:00 ` jakub at gcc dot gnu.org
2015-02-10 22:00 ` jakub at gcc dot gnu.org
2015-02-10 22:01 ` [Bug sanitizer/65004] [5 Regression] " jakub 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).