public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/54826] New: gdb test case failure (bs15503) due to gaps in lexical block
@ 2012-10-05 14:49 arnez at linux dot vnet.ibm.com
  2012-10-05 22:48 ` [Bug debug/54826] " dehao at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: arnez at linux dot vnet.ibm.com @ 2012-10-05 14:49 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 54826
           Summary: gdb test case failure (bs15503) due to gaps in lexical
                    block
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: debug
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: arnez@linux.vnet.ibm.com


Current upstream gcc causes a regression with the gdb test case
bs15503.exp:
FAIL: gdb.cp/bs15503.exp: print s.length()
FAIL: gdb.cp/bs15503.exp: print s[0]
FAIL: gdb.cp/bs15503.exp: print s[s.length()-1]
FAIL: gdb.cp/bs15503.exp: print (const char *) s
FAIL: gdb.cp/bs15503.exp: print (const char *) s.substr(0,4)
FAIL: gdb.cp/bs15503.exp: print (const char *) (s=s.substr(0,4))

What happens is that the DWARF output for bs15503.cc wraps the string
variable "s" from StringTest<wchar_t>::testFunction() in a lexical
block with spurious gaps.  The test case happens to set a break point
into one of these gaps and tries to access the variable from there,
which gdb (correctly) refuses.

For reference, here's a link to the source code:
http://sourceware.org/cgi-bin/cvsweb.cgi/~checkout~/src/gdb/testsuite/gdb.cp/bs15503.cc?rev=1.11&cvsroot=src

I've verified the failure on x86_64 and s390x.  The regression was
introduced by: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=191494


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

* [Bug debug/54826] gdb test case failure (bs15503) due to gaps in lexical block
  2012-10-05 14:49 [Bug debug/54826] New: gdb test case failure (bs15503) due to gaps in lexical block arnez at linux dot vnet.ibm.com
@ 2012-10-05 22:48 ` dehao at gcc dot gnu.org
  2012-10-06  2:27 ` dehao at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: dehao at gcc dot gnu.org @ 2012-10-05 22:48 UTC (permalink / raw)
  To: gcc-bugs


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

dehao at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2012-10-05
                 CC|                            |dehao at gcc dot gnu.org
         AssignedTo|unassigned at gcc dot       |dehao at gcc dot gnu.org
                   |gnu.org                     |
     Ever Confirmed|0                           |1


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

* [Bug debug/54826] gdb test case failure (bs15503) due to gaps in lexical block
  2012-10-05 14:49 [Bug debug/54826] New: gdb test case failure (bs15503) due to gaps in lexical block arnez at linux dot vnet.ibm.com
  2012-10-05 22:48 ` [Bug debug/54826] " dehao at gcc dot gnu.org
@ 2012-10-06  2:27 ` dehao at gcc dot gnu.org
  2012-10-06 16:20 ` dehao at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: dehao at gcc dot gnu.org @ 2012-10-06  2:27 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from dehao at gcc dot gnu.org 2012-10-06 02:27:27 UTC ---
A patch is sent to solve this:

http://gcc.gnu.org/ml/gcc-patches/2012-10/msg00596.html


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

* [Bug debug/54826] gdb test case failure (bs15503) due to gaps in lexical block
  2012-10-05 14:49 [Bug debug/54826] New: gdb test case failure (bs15503) due to gaps in lexical block arnez at linux dot vnet.ibm.com
  2012-10-05 22:48 ` [Bug debug/54826] " dehao at gcc dot gnu.org
  2012-10-06  2:27 ` dehao at gcc dot gnu.org
@ 2012-10-06 16:20 ` dehao at gcc dot gnu.org
  2012-10-08 12:08 ` rguenth at gcc dot gnu.org
  2012-10-09  9:02 ` arnez at linux dot vnet.ibm.com
  4 siblings, 0 replies; 6+ messages in thread
From: dehao at gcc dot gnu.org @ 2012-10-06 16:20 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #2 from dehao at gcc dot gnu.org 2012-10-06 16:19:43 UTC ---
Author: dehao
Date: Sat Oct  6 16:19:34 2012
New Revision: 192165

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192165
Log:
2012-10-05  Dehao Chen  <dehao@google.com>

    PR debug/54826
    * gimple-low.c (lower_stmt): Set the block for call args.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/gimple-low.c


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

* [Bug debug/54826] gdb test case failure (bs15503) due to gaps in lexical block
  2012-10-05 14:49 [Bug debug/54826] New: gdb test case failure (bs15503) due to gaps in lexical block arnez at linux dot vnet.ibm.com
                   ` (2 preceding siblings ...)
  2012-10-06 16:20 ` dehao at gcc dot gnu.org
@ 2012-10-08 12:08 ` rguenth at gcc dot gnu.org
  2012-10-09  9:02 ` arnez at linux dot vnet.ibm.com
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-10-08 12:08 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

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

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-10-08 12:07:55 UTC ---
Fixed.


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

* [Bug debug/54826] gdb test case failure (bs15503) due to gaps in lexical block
  2012-10-05 14:49 [Bug debug/54826] New: gdb test case failure (bs15503) due to gaps in lexical block arnez at linux dot vnet.ibm.com
                   ` (3 preceding siblings ...)
  2012-10-08 12:08 ` rguenth at gcc dot gnu.org
@ 2012-10-09  9:02 ` arnez at linux dot vnet.ibm.com
  4 siblings, 0 replies; 6+ messages in thread
From: arnez at linux dot vnet.ibm.com @ 2012-10-09  9:02 UTC (permalink / raw)
  To: gcc-bugs


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

Andreas Arnez <arnez at linux dot vnet.ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--- Comment #4 from Andreas Arnez <arnez at linux dot vnet.ibm.com> 2012-10-09 09:02:08 UTC ---
Very well, thanks!


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

end of thread, other threads:[~2012-10-09  9:02 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-05 14:49 [Bug debug/54826] New: gdb test case failure (bs15503) due to gaps in lexical block arnez at linux dot vnet.ibm.com
2012-10-05 22:48 ` [Bug debug/54826] " dehao at gcc dot gnu.org
2012-10-06  2:27 ` dehao at gcc dot gnu.org
2012-10-06 16:20 ` dehao at gcc dot gnu.org
2012-10-08 12:08 ` rguenth at gcc dot gnu.org
2012-10-09  9:02 ` arnez at linux dot vnet.ibm.com

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).