public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/17960] New: Internal error: tracker != NULL when completing on file:function
@ 2015-02-12  1:04 keiths at redhat dot com
  2015-02-12 23:45 ` [Bug gdb/17960] " dje at google dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: keiths at redhat dot com @ 2015-02-12  1:04 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17960

            Bug ID: 17960
           Summary: Internal error: tracker != NULL when completing on
                    file:function
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: keiths at redhat dot com

With this new completion limiting feature that was introduced by ef0b411a, an
internal error was introduced:

(gdb) break gdb.c:ma<TAB>
./../src/gdb/completer.c:837: internal-error: maybe_add_completion: Assertion
`tracker != NULL' failed.
A problem internal to GDB has been detected,
further debugging may prove unreliable.
Quit this debugging session? (y or n) y

This happens because location_completer (completer.c) calls
make_file_symbol_completion_list without ever calling
default_make_symbol_completion_list_break_on_1. It is only this last function
which initializes this (file-)global variable.

Why the use of a global? Shouldn't this have been something passed around the
completion API?

It seems the test suite does not have a test for FILE:FUNCTION anywhere. I only
noticed this because my breakpoint location API patchset uses
make_file_symbol_completion_list and *tests it*.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/17960] Internal error: tracker != NULL when completing on file:function
  2015-02-12  1:04 [Bug gdb/17960] New: Internal error: tracker != NULL when completing on file:function keiths at redhat dot com
@ 2015-02-12 23:45 ` dje at google dot com
  2015-02-13 17:05 ` gbenson at redhat dot com
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dje at google dot com @ 2015-02-12 23:45 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17960

dje at google dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dje at google dot com

--- Comment #1 from dje at google dot com ---
I don't mind the tracker being global state given that we were already using
global state to record results.

A good next step would be to remove the global state though.

Working on a fix ...

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/17960] Internal error: tracker != NULL when completing on file:function
  2015-02-12  1:04 [Bug gdb/17960] New: Internal error: tracker != NULL when completing on file:function keiths at redhat dot com
  2015-02-12 23:45 ` [Bug gdb/17960] " dje at google dot com
@ 2015-02-13 17:05 ` gbenson at redhat dot com
  2015-02-13 17:32 ` keiths at redhat dot com
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: gbenson at redhat dot com @ 2015-02-13 17:05 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17960

Gary Benson <gbenson at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gbenson at redhat dot com

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/17960] Internal error: tracker != NULL when completing on file:function
  2015-02-12  1:04 [Bug gdb/17960] New: Internal error: tracker != NULL when completing on file:function keiths at redhat dot com
  2015-02-12 23:45 ` [Bug gdb/17960] " dje at google dot com
  2015-02-13 17:05 ` gbenson at redhat dot com
@ 2015-02-13 17:32 ` keiths at redhat dot com
  2015-02-27 16:50 ` keiths at redhat dot com
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: keiths at redhat dot com @ 2015-02-13 17:32 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17960

--- Comment #2 from Keith Seitz <keiths at redhat dot com> ---
On 02/13/2015 07:58 AM, gbenson at redhat dot com wrote:
> https://sourceware.org/bugzilla/show_bug.cgi?id=17960
>
> Gary Benson <gbenson at redhat dot com> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                   CC|                            |gbenson at redhat dot com
>

PS. I am working on a patch for this. Just have some cleanups and 
testing to finish up.

Keith

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/17960] Internal error: tracker != NULL when completing on file:function
  2015-02-12  1:04 [Bug gdb/17960] New: Internal error: tracker != NULL when completing on file:function keiths at redhat dot com
                   ` (2 preceding siblings ...)
  2015-02-13 17:32 ` keiths at redhat dot com
@ 2015-02-27 16:50 ` keiths at redhat dot com
  2015-02-27 18:29 ` dje at google dot com
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: keiths at redhat dot com @ 2015-02-27 16:50 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17960

Keith Seitz <keiths at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jim-unchecked-mailbox@credl
                   |                            |and.net

--- Comment #3 from Keith Seitz <keiths at redhat dot com> ---
*** Bug 18045 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/17960] Internal error: tracker != NULL when completing on file:function
  2015-02-12  1:04 [Bug gdb/17960] New: Internal error: tracker != NULL when completing on file:function keiths at redhat dot com
                   ` (3 preceding siblings ...)
  2015-02-27 16:50 ` keiths at redhat dot com
@ 2015-02-27 18:29 ` dje at google dot com
  2015-08-10 19:24 ` cvs-commit at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: dje at google dot com @ 2015-02-27 18:29 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17960

--- Comment #4 from dje at google dot com ---
Temp fix until Keith's more complete patch is ready posted here:
https://sourceware.org/ml/gdb-patches/2015-02/msg00830.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/17960] Internal error: tracker != NULL when completing on file:function
  2015-02-12  1:04 [Bug gdb/17960] New: Internal error: tracker != NULL when completing on file:function keiths at redhat dot com
                   ` (4 preceding siblings ...)
  2015-02-27 18:29 ` dje at google dot com
@ 2015-08-10 19:24 ` cvs-commit at gcc dot gnu.org
  2015-08-10 20:39 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-08-10 19:24 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17960

--- Comment #5 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Doug Evans <devans@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e27852be65403306da198b3c1d7b222acd6bdfe9

commit e27852be65403306da198b3c1d7b222acd6bdfe9
Author: Doug Evans <dje@google.com>
Date:   Mon Aug 10 12:23:09 2015 -0700

    PR gdb/17960 Internal error: tracker != NULL when completing on
file:function

    gdb/ChangeLog:

        * symtab.c (make_file_symbol_completion_list_1): Renamed from
        make_file_symbol_completion_list and made static.
        (make_file_symbol_completion_list): New function.

    gdb/testsuite/ChangeLog:

        * gdb.base/completion.exp: Add location completer tests.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/17960] Internal error: tracker != NULL when completing on file:function
  2015-02-12  1:04 [Bug gdb/17960] New: Internal error: tracker != NULL when completing on file:function keiths at redhat dot com
                   ` (5 preceding siblings ...)
  2015-08-10 19:24 ` cvs-commit at gcc dot gnu.org
@ 2015-08-10 20:39 ` cvs-commit at gcc dot gnu.org
  2022-02-22 15:15 ` tromey at sourceware dot org
  2022-02-22 16:04 ` keiths at redhat dot com
  8 siblings, 0 replies; 10+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-08-10 20:39 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17960

--- Comment #6 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The gdb-7.10-branch branch has been updated by Doug Evans
<devans@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3649abf39ee70a6237a06df85cf027dcc0d03c56

commit 3649abf39ee70a6237a06df85cf027dcc0d03c56
Author: Doug Evans <dje@google.com>
Date:   Mon Aug 10 13:37:46 2015 -0700

    PR gdb/17960 Internal error: tracker != NULL when completing on
file:function

    gdb/ChangeLog:

        * symtab.c (make_file_symbol_completion_list_1): Renamed from
        make_file_symbol_completion_list and made static.
        (make_file_symbol_completion_list): New function.

    gdb/testsuite/ChangeLog:

        * gdb.base/completion.exp: Add location completer tests.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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

* [Bug gdb/17960] Internal error: tracker != NULL when completing on file:function
  2015-02-12  1:04 [Bug gdb/17960] New: Internal error: tracker != NULL when completing on file:function keiths at redhat dot com
                   ` (6 preceding siblings ...)
  2015-08-10 20:39 ` cvs-commit at gcc dot gnu.org
@ 2022-02-22 15:15 ` tromey at sourceware dot org
  2022-02-22 16:04 ` keiths at redhat dot com
  8 siblings, 0 replies; 10+ messages in thread
From: tromey at sourceware dot org @ 2022-02-22 15:15 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17960

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tromey at sourceware dot org

--- Comment #7 from Tom Tromey <tromey at sourceware dot org> ---
Keith, is this still relevant, or can we close this PR?

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug gdb/17960] Internal error: tracker != NULL when completing on file:function
  2015-02-12  1:04 [Bug gdb/17960] New: Internal error: tracker != NULL when completing on file:function keiths at redhat dot com
                   ` (7 preceding siblings ...)
  2022-02-22 15:15 ` tromey at sourceware dot org
@ 2022-02-22 16:04 ` keiths at redhat dot com
  8 siblings, 0 replies; 10+ messages in thread
From: keiths at redhat dot com @ 2022-02-22 16:04 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=17960

Keith Seitz <keiths at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |OBSOLETE

--- Comment #8 from Keith Seitz <keiths at redhat dot com> ---
(In reply to Tom Tromey from comment #7)
> Keith, is this still relevant, or can we close this PR?

Looks like this is no longer an issue (and hasn't been
for some time), so I'll close this. Thank you for pointing
this out.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2022-02-22 16:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-02-12  1:04 [Bug gdb/17960] New: Internal error: tracker != NULL when completing on file:function keiths at redhat dot com
2015-02-12 23:45 ` [Bug gdb/17960] " dje at google dot com
2015-02-13 17:05 ` gbenson at redhat dot com
2015-02-13 17:32 ` keiths at redhat dot com
2015-02-27 16:50 ` keiths at redhat dot com
2015-02-27 18:29 ` dje at google dot com
2015-08-10 19:24 ` cvs-commit at gcc dot gnu.org
2015-08-10 20:39 ` cvs-commit at gcc dot gnu.org
2022-02-22 15:15 ` tromey at sourceware dot org
2022-02-22 16:04 ` keiths at redhat 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).