public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "mattipee at yahoo dot co.uk" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/53026] New: segfault in pt.c: lookup_template_class Date: Wed, 18 Apr 2012 00:10:00 -0000 [thread overview] Message-ID: <bug-53026-4@http.gcc.gnu.org/bugzilla/> (raw) http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53026 Bug #: 53026 Summary: segfault in pt.c: lookup_template_class Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned@gcc.gnu.org ReportedBy: mattipee@yahoo.co.uk HEADLINE: pt.c:7595 - "Address 0x3 is not stack'd, malloc'd..." user@host:~$ g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/i686-pc-linux-gnu/4.8.0/lto-wrapper Target: i686-pc-linux-gnu Configured with: ../gcc-svn/configure : (reconfigured) ../gcc-svn/configure : (reconfigured) ../gcc-svn/configure --enable-languages=c,c++,fortran,java,lto,objc --no-create --no-recursion : (reconfigured) ../gcc-svn/configure --enable-languages=c++ : (reconfigured) ../gcc-svn/configure --enable-languages=c,c++,lto --no-create --no-recursion : (reconfigured) ../gcc-svn/configure --enable-languages=c,c++,lto --no-create --no-recursion : (reconfigured) ../gcc-svn/configure --enable-languages=c,c++,lto --no-create --no-recursion Thread model: posix gcc version 4.8.0 20120417 (experimental) (GCC) (built, I believe, at revision 186523) It would take some effort to construct minimal code to reproduce this segfault, but the following details are available now... user@host:~$ valgrind /path/to/cc1plus -std=c++11 -O2 -g0 -Wall ... ... ==18469== at 0x81915D1: lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*, int, int) (pt.c:7595) ==18469== by 0x8194504: tsubst_aggr_type(tree_node*, tree_node*, int, tree_node*, int) (pt.c:9876) ==18469== by 0x819FB2A: tsubst(tree_node*, tree_node*, int, tree_node*) (pt.c:11662) ==18469== by 0x81B1E1E: tsubst_arg_types(tree_node*, tree_node*, int, tree_node*) (pt.c:10844) ==18469== by 0x81B1D04: tsubst_arg_types(tree_node*, tree_node*, int, tree_node*) (pt.c:10814) ==18469== by 0x81B219A: tsubst_function_type(tree_node*, tree_node*, int, tree_node*) (pt.c:10940) ==18469== by 0x819F676: tsubst(tree_node*, tree_node*, int, tree_node*) (pt.c:11599) ==18469== by 0x81A862D: tsubst_decl(tree_node*, tree_node*, int) (pt.c:10247) ==18469== by 0x81A01E4: tsubst(tree_node*, tree_node*, int, tree_node*) (pt.c:11111) ==18469== by 0x81AA6B4: tsubst_decl(tree_node*, tree_node*, int) (pt.c:10094) ==18469== by 0x81A01E4: tsubst(tree_node*, tree_node*, int, tree_node*) (pt.c:11111) ==18469== by 0x81D087F: instantiate_class_template(tree_node*) (pt.c:8935) ==18469== Address 0x3 is not stack'd, malloc'd or (recently) free'd ==18469==
next reply other threads:[~2012-04-18 0:10 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2012-04-18 0:10 mattipee at yahoo dot co.uk [this message] 2012-04-18 1:56 ` [Bug c++/53026] " paolo.carlini at oracle dot com 2012-04-18 9:33 ` mattipee at yahoo dot co.uk 2012-04-18 9:41 ` [Bug c++/53026] ICE with alias-declarations paolo.carlini at oracle dot com 2012-06-23 18:41 ` kennytm at gmail dot com 2012-12-05 13:05 ` paolo.carlini at oracle dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-53026-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).