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

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).