public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/2366: gdb crash: infinite recursion in fill_in_vptr_fieldno
@ 2007-11-21 16:58 Daniel Jacobowitz
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Jacobowitz @ 2007-11-21 16:58 UTC (permalink / raw)
To: nobody; +Cc: gdb-prs
The following reply was made to PR c++/2366; it has been noted by GNATS.
From: Daniel Jacobowitz <drow@false.org>
To: aristovski@qnx.com
Cc: gdb-gnats@sources.redhat.com, rmansfield@qnx.com
Subject: Re: c++/2366: gdb crash: infinite recursion in fill_in_vptr_fieldno
Date: Wed, 21 Nov 2007 11:57:13 -0500
On Wed, Nov 21, 2007 at 04:39:02PM -0000, aristovski@qnx.com wrote:
> >Release: unknown-1.0
What version of GDB? Have you tried the latest?
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 2+ messages in thread
* c++/2366: gdb crash: infinite recursion in fill_in_vptr_fieldno
@ 2007-11-21 16:48 aristovski
0 siblings, 0 replies; 2+ messages in thread
From: aristovski @ 2007-11-21 16:48 UTC (permalink / raw)
To: gdb-gnats; +Cc: rmansfield
>Number: 2366
>Category: c++
>Synopsis: gdb crash: infinite recursion in fill_in_vptr_fieldno
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Wed Nov 21 16:48:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: aristovski@qnx.com
>Release: unknown-1.0
>Organization:
>Environment:
>Description:
GDB crashes when accesing type information. It runs into an infinite recursion in fill_in_vptr_fieldno.
The crash occurs with gcc versions (only versions we used are listed)
4.0.3
3.4.x
3.3.x
It has to do with namespaces and wrong resolution of a base class. In short:
namespace N1 {
class A {};
}
namespace N2 {
class B : public N1::A {}
}
When printing "this" when in B's method, it resolves base class to be B again.
See attached project with sources and test case (and gdb command file).
>How-To-Repeat:
Use attached project and command file:
gdb
(gdb) source crash.source
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="gdbcrash.tar.bz2"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="gdbcrash.tar.bz2"
QlpoOTFBWSZTWUOLjxkAA7P/wtayACBdf/+fO+/+6v/v3yoAJEEgAAhQA17quQjYOgGoUBo00APU
GjQAADJkAAAAAAyJMSeQpiBoB6g0A0GgBoADQaNAAYiCpptQ0GgAyAGQAAAMgAAAcNDJpoaZGhpk
ZBkZGhkBiaMmgDJkYhgqSQgVP0aepNoJqemU02p6TRtTJiDagNNNGmm1MjI8p1/kKeb+brW9Ds8M
nJs5swpaKhWeJExodrJ2suuz15CmABEmCRE5yd5vBr+YAuKQCJKBJRKUWSrUWaE1x01JBtUnThZG
F+PuXc3Noeloy+WFvUrYPrTjCSCei+pOhBNksKywBUzzKCNRmLTcW4Nhpjj02HTdVZ777NkaSRuN
iyTfFIkyAEC7tVogIXX5T7YhtMsiezeFUm/Qs9Ea3AGVJKYQaqJrh155gK4eWoUWVI22vEhoOMrn
1cmEpwaoDwK9j8QC1pZTkL5lYqqlPAbH0m8dNk5HMzvhxLROfvdxzuHs1SlKllWpazdeNmbsuTTV
LpO8GgM31WB53oqq83q4hMAoZbBj0Rd40NOnDDyZBbMM0Nzw2DPdOWO5paBnWLYXY9FXTzqHzBhS
ZpLXtVJSXUEScVEBJAhIzAAMBSZTUUhzgMAljUgoAe4ABrLFOPkCe0xqZ5TCJ0lttZtrFk6C6jog
7HSDA0yJvlSwD6JOqD1g+a9QLSSrjqIEhZAskDykKIhUMXoGN4HtM8SaEQ2i6zFCAKtMFj1p6pZz
pw+nb1ps35MPWnv9nrTp9iqqps5hqd0PPj7/L309qOLfHRo7ftndpVIn7k54N3Np93Ho9w2pnHio
V9zKrD0Xr3lXMnkDPwNO7GWL53ewP80DHajM/hS7VufZNuKwXpfcjCi6SpJUuwe+mVxBljROwbjX
wz00udjvtdmQxzXOvw6OrwbXV1ukJLlIHIUApADwDgpRDCI6hQxAYNkFB8YMk+lzJ7dGkKoaqnik
21DtLbfLMvHfGfZvDxRLLjNfzamFL41u2sTgOnStKqqtGCb+MUHLE1Ro3tNLbMLyZA5t/J2bZGh/
WQ2maDCJF2rENA6hhBdGAv4NjmhnjJKkZdeJ8929kOTGfBG9ca+sd7c3foknA1ZTcY0Wi1oH/i7k
inChIIcXHjI=
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-21 16:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-21 16:58 c++/2366: gdb crash: infinite recursion in fill_in_vptr_fieldno Daniel Jacobowitz
-- strict thread matches above, loose matches on Subject: below --
2007-11-21 16:48 aristovski
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).