public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/51384] New: seg fault in tsubst_copy_and_build
@ 2011-12-01 21:00 dcb314 at hotmail dot com
  2011-12-01 21:02 ` [Bug c++/51384] " dcb314 at hotmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: dcb314 at hotmail dot com @ 2011-12-01 21:00 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 51384
           Summary: seg fault in tsubst_copy_and_build
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: dcb314@hotmail.com


I just tried to compile the package eigen3-3.0.0
on latest trunk snapshot 20111126 on an AMD x86_64 box.

The compiler said

/home/dcb/rpmbuild/BUILD/eigen-eigen-65ee2328342f/Eigen/src/Core/DenseBase.h:247:137:
internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Here is valgrind helping out with a stack bracktrace

==13212== Invalid read of size 2
==13212==    at 0x55AC74: tsubst_copy_and_build(tree_node*, tree_node*, int,
tree_node*, bool, bool) (pt.c:13374)
==13212==    by 0x559F36: tsubst_copy_and_build(tree_node*, tree_node*, int,
tree_node*, bool, bool) (pt.c:13889)
==13212==    by 0x5591BA: tsubst_copy_and_build(tree_node*, tree_node*, int,
tree_node*, bool, bool) (pt.c:13367)
==13212==    by 0x559DB3: tsubst_copy_and_build(tree_node*, tree_node*, int,
tree_node*, bool, bool) (pt.c:13519)
==13212==    by 0x54A350: tsubst_expr(tree_node*, tree_node*, int, tree_node*,
bool) (pt.c:13245)
==13212==    by 0x56517D: tsubst_template_arg(tree_node*, tree_node*, int,
tree_node*) (pt.c:9187)
==13212==    by 0x56DF3E: coerce_template_parms(tree_node*, tree_node*,
tree_node*, int, bool, bool) (pt.c:6846)
==13212==    by 0x552A4E: lookup_template_class(tree_node*, tree_node*,
tree_node*, tree_node*, int, int) (pt.c:7375)
==13212==    by 0x658332: finish_template_type(tree_node*, tree_node*, int)
(semantics.c:2760)
==13212==    by 0x5EFD18: cp_parser_template_id(cp_parser*, bool, bool, bool)
(parser.c:12445)
==13212==    by 0x5F01AF: cp_parser_class_name(cp_parser*, bool, bool,
tag_types, bool, bool, bool) (parser.c:17876)
==13212==    by 0x5EA699: cp_parser_nested_name_specifier_opt(cp_parser*, bool,
bool, bool, bool) (parser.c:5249)
==13212==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==13212==

Preprocessed source code attached. Flag -march=native required.


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

* [Bug c++/51384] seg fault in tsubst_copy_and_build
  2011-12-01 21:00 [Bug c++/51384] New: seg fault in tsubst_copy_and_build dcb314 at hotmail dot com
@ 2011-12-01 21:02 ` dcb314 at hotmail dot com
  2011-12-01 21:55 ` paolo.carlini at oracle dot com
  2011-12-06 14:25 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: dcb314 at hotmail dot com @ 2011-12-01 21:02 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from dcb <dcb314 at hotmail dot com> 2011-12-01 21:01:48 UTC ---
Created attachment 25969
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25969
gzipped C++ source code


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

* [Bug c++/51384] seg fault in tsubst_copy_and_build
  2011-12-01 21:00 [Bug c++/51384] New: seg fault in tsubst_copy_and_build dcb314 at hotmail dot com
  2011-12-01 21:02 ` [Bug c++/51384] " dcb314 at hotmail dot com
@ 2011-12-01 21:55 ` paolo.carlini at oracle dot com
  2011-12-06 14:25 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-12-01 21:55 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-12-01 21:55:09 UTC ---
Likely dup of PR51318


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

* [Bug c++/51384] seg fault in tsubst_copy_and_build
  2011-12-01 21:00 [Bug c++/51384] New: seg fault in tsubst_copy_and_build dcb314 at hotmail dot com
  2011-12-01 21:02 ` [Bug c++/51384] " dcb314 at hotmail dot com
  2011-12-01 21:55 ` paolo.carlini at oracle dot com
@ 2011-12-06 14:25 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2011-12-06 14:25 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #3 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-12-06 14:19:48 UTC ---
dup

*** This bug has been marked as a duplicate of bug 51318 ***


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

end of thread, other threads:[~2011-12-06 14:25 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-01 21:00 [Bug c++/51384] New: seg fault in tsubst_copy_and_build dcb314 at hotmail dot com
2011-12-01 21:02 ` [Bug c++/51384] " dcb314 at hotmail dot com
2011-12-01 21:55 ` paolo.carlini at oracle dot com
2011-12-06 14:25 ` rguenth 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).