public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug exp/17648] New: segfault calling function returning object with multiple ctors
@ 2014-11-25 23:28 skobes at google dot com
2014-11-26 1:40 ` [Bug exp/17648] " skobes at google dot com
0 siblings, 1 reply; 2+ messages in thread
From: skobes at google dot com @ 2014-11-25 23:28 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17648
Bug ID: 17648
Summary: segfault calling function returning object with
multiple ctors
Product: gdb
Version: 7.8
Status: NEW
Severity: normal
Priority: P2
Component: exp
Assignee: unassigned at sourceware dot org
Reporter: skobes at google dot com
I have the following program:
// wtf.cc
struct A { };
struct B {
B() : f(0) { }
B(A a) : f(0) { }
int f;
};
B crash() { return B(); }
int main(int argc, char** argv) { }
I compile it and start gdb:
$ g++ -O0 -g -c wtf.cc -o wtf.o
$ g++ -o wtf wtf.o
$ gdb --args wtf
Inside gdb I run:
(gdb) break main
Breakpoint 1 at 0x400511: file wtf.cc, line 9.
(gdb) run
Starting program: /tmp/gdbcrash/wtf
Breakpoint 1, main (argc=1, argv=0x7fffffffdd38) at wtf.cc:9
9 int main(int argc, char** argv) { }
(gdb) p crash()
Segmentation fault (core dumped)
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug exp/17648] segfault calling function returning object with multiple ctors
2014-11-25 23:28 [Bug exp/17648] New: segfault calling function returning object with multiple ctors skobes at google dot com
@ 2014-11-26 1:40 ` skobes at google dot com
0 siblings, 0 replies; 2+ messages in thread
From: skobes at google dot com @ 2014-11-26 1:40 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=17648
Steve Kobes <skobes at google dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #1 from Steve Kobes <skobes at google dot com> ---
This bug does not repro with a ToT build. I am told it was fixed by this
commit:
3433cfa Guard a call to TYPE_TARGET_TYPE in gnuv3_pass_by_reference.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-26 1:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-25 23:28 [Bug exp/17648] New: segfault calling function returning object with multiple ctors skobes at google dot com
2014-11-26 1:40 ` [Bug exp/17648] " skobes at google dot 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).