public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/46117] New: [4.6 Regression] ICE: SIGSEGV in add_function_candidate (call.c:1630) on invalid typename usage
@ 2010-10-21 12:56 zsojka at seznam dot cz
  2010-10-21 13:44 ` [Bug c++/46117] " redi at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: zsojka at seznam dot cz @ 2010-10-21 12:56 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: [4.6 Regression] ICE: SIGSEGV in
                    add_function_candidate (call.c:1630) on invalid
                    typename usage
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


Created attachment 22106
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22106
reduced testcase

Compiler output:
$ gcc pr46117.C 
pr46117.C:3:15: error: expected nested-name-specifier before 'int'
pr46117.C:3:15: error: two or more data types in declaration of 'parameter'
pr46117.C:8:3: 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.


valgrind output:
testcase.C:3:13: error: expected nested-name-specifier before 'int'
testcase.C:3:13: error: two or more data types in declaration of 'parameter'
==24080== Invalid read of size 2
==24080==    at 0x4A8823: add_function_candidate (call.c:1630)
==24080==    by 0x4A58B3: add_candidates (call.c:4254)
==24080==    by 0x4AB8A3: build_new_method_call (call.c:6528)
==24080==    by 0x5BBB24: locate_fn_flags (method.c:826)
==24080==    by 0x5BEEB5: synthesized_method_walk (method.c:1183)
==24080==    by 0x5BF839: implicitly_declare_fn (method.c:1433)
==24080==    by 0x5C0ACA: lazily_declare_fn (method.c:1634)
==24080==    by 0x5C5354: lookup_fnfields_1 (search.c:1360)
==24080==    by 0x5C8653: lookup_field_r (search.c:1032)
==24080==    by 0x5C5918: dfs_walk_all (search.c:1542)
==24080==    by 0x5C5A97: lookup_member (search.c:1206)
==24080==    by 0x5C5CCA: lookup_fnfields (search.c:1288)
==24080==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==24080== 
testcase.C:8:3: 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.

Full backtrace is quite long, so I am posting just this reduced one

Tested revisions:
r165768 - crash
r163636 - crash
r161659 - OK


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

* [Bug c++/46117] [4.6 Regression] ICE: SIGSEGV in add_function_candidate (call.c:1630) on invalid typename usage
  2010-10-21 12:56 [Bug c++/46117] New: [4.6 Regression] ICE: SIGSEGV in add_function_candidate (call.c:1630) on invalid typename usage zsojka at seznam dot cz
@ 2010-10-21 13:44 ` redi at gcc dot gnu.org
  2010-10-21 14:01 ` paolo.carlini at oracle dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2010-10-21 13:44 UTC (permalink / raw)
  To: gcc-bugs

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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2010.10.21 13:44:05
     Ever Confirmed|0                           |1


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

* [Bug c++/46117] [4.6 Regression] ICE: SIGSEGV in add_function_candidate (call.c:1630) on invalid typename usage
  2010-10-21 12:56 [Bug c++/46117] New: [4.6 Regression] ICE: SIGSEGV in add_function_candidate (call.c:1630) on invalid typename usage zsojka at seznam dot cz
  2010-10-21 13:44 ` [Bug c++/46117] " redi at gcc dot gnu.org
@ 2010-10-21 14:01 ` paolo.carlini at oracle dot com
  2010-10-21 16:58 ` paolo.carlini at oracle dot com
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2010-10-21 14:01 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |paolo.carlini at oracle dot
                   |                            |com

--- Comment #1 from Paolo Carlini <paolo.carlini at oracle dot com> 2010-10-21 14:01:22 UTC ---
parmnode becomes null, and setting viable = 0 in that case too, appears to
avoid the Segmentation fault.


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

* [Bug c++/46117] [4.6 Regression] ICE: SIGSEGV in add_function_candidate (call.c:1630) on invalid typename usage
  2010-10-21 12:56 [Bug c++/46117] New: [4.6 Regression] ICE: SIGSEGV in add_function_candidate (call.c:1630) on invalid typename usage zsojka at seznam dot cz
  2010-10-21 13:44 ` [Bug c++/46117] " redi at gcc dot gnu.org
  2010-10-21 14:01 ` paolo.carlini at oracle dot com
@ 2010-10-21 16:58 ` paolo.carlini at oracle dot com
  2010-10-21 21:52 ` paolo at gcc dot gnu.org
  2010-10-21 21:53 ` paolo.carlini at oracle dot com
  4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2010-10-21 16:58 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
                 CC|paolo.carlini at oracle dot |
                   |com                         |
         AssignedTo|unassigned at gcc dot       |paolo.carlini at oracle dot
                   |gnu.org                     |com

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2010-10-21 16:58:26 UTC ---
I have a patch.


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

* [Bug c++/46117] [4.6 Regression] ICE: SIGSEGV in add_function_candidate (call.c:1630) on invalid typename usage
  2010-10-21 12:56 [Bug c++/46117] New: [4.6 Regression] ICE: SIGSEGV in add_function_candidate (call.c:1630) on invalid typename usage zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2010-10-21 16:58 ` paolo.carlini at oracle dot com
@ 2010-10-21 21:52 ` paolo at gcc dot gnu.org
  2010-10-21 21:53 ` paolo.carlini at oracle dot com
  4 siblings, 0 replies; 6+ messages in thread
From: paolo at gcc dot gnu.org @ 2010-10-21 21:52 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2010-10-21 21:51:56 UTC ---
Author: paolo
Date: Thu Oct 21 21:51:50 2010
New Revision: 165794

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=165794
Log:
/cp
2010-10-21  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/46117
    * call.c (add_function_candidate): Don't use TREE_VALUE on null
    parmnode.

/testsuite
2010-10-21  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/46117
    * g++.dg/parse/crash57.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/parse/crash57.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/46117] [4.6 Regression] ICE: SIGSEGV in add_function_candidate (call.c:1630) on invalid typename usage
  2010-10-21 12:56 [Bug c++/46117] New: [4.6 Regression] ICE: SIGSEGV in add_function_candidate (call.c:1630) on invalid typename usage zsojka at seznam dot cz
                   ` (3 preceding siblings ...)
  2010-10-21 21:52 ` paolo at gcc dot gnu.org
@ 2010-10-21 21:53 ` paolo.carlini at oracle dot com
  4 siblings, 0 replies; 6+ messages in thread
From: paolo.carlini at oracle dot com @ 2010-10-21 21:53 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.6.0

--- Comment #4 from Paolo Carlini <paolo.carlini at oracle dot com> 2010-10-21 21:52:58 UTC ---
Fixed.


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

end of thread, other threads:[~2010-10-21 21:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-21 12:56 [Bug c++/46117] New: [4.6 Regression] ICE: SIGSEGV in add_function_candidate (call.c:1630) on invalid typename usage zsojka at seznam dot cz
2010-10-21 13:44 ` [Bug c++/46117] " redi at gcc dot gnu.org
2010-10-21 14:01 ` paolo.carlini at oracle dot com
2010-10-21 16:58 ` paolo.carlini at oracle dot com
2010-10-21 21:52 ` paolo at gcc dot gnu.org
2010-10-21 21:53 ` paolo.carlini at oracle 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).