Subject: 24.0.50; semantic: void-function nil

From: Andreas Politz <[email-masked]>
Date: Tue, 26 Apr 2011 22:25:37 +0200

echo -e 'int foo() {return 42;}\nint main {return f;} >> /tmp/true.c
emacs -Q true.c
M-x semantic-mode RET
;; Place point at 'f' and press M-TAB .

Most of the semantic commands fail in this function
(semanticdb-get-tags) or whatever it is. Backtrace follows.

A. Politz

Debugger entered--Lisp error: (void-function nil)
  nil([object semanticdb-table "true.c" [object semanticdb-project-database-file "tmp/" "/tmp/" semanticdb-table nil (#0) "/home/politza/.emacs.d/semanticdb/!tmp!semantic.cache" "2.0" "2.0"] c-mode (("foo" function (:type "int") nil #<overlay from 1 to 25 in true.c>) ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>)) [object semanticdb-find-search-index "#<semanticdb-table true.c> index" #0 (#0) [object semanticdb-typecache "/tmp/true.c" nil nil nil ([object semantic-scope-cache "Cache" #0 ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil])]] ([object semantic-scope-cache "Cache" #0 ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil]) "true.c" nil t nil 52 26 (19895 9954) nil nil])
  apply(nil [object semanticdb-table "true.c" [object semanticdb-project-database-file "tmp/" "/tmp/" semanticdb-table nil (#0) "/home/politza/.emacs.d/semanticdb/!tmp!semantic.cache" "2.0" "2.0"] c-mode (("foo" function (:type "int") nil #<overlay from 1 to 25 in true.c>) ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>)) [object semanticdb-find-search-index "#<semanticdb-table true.c> index" #0 (#0) [object semanticdb-typecache "/tmp/true.c" nil nil nil ([object semantic-scope-cache "Cache" #0 ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil])]] ([object semantic-scope-cache "Cache" #0 ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil]) "true.c" nil t nil 52 26 (19895 9954) nil nil])
  semanticdb-get-tags([object semanticdb-table "true.c" [object semanticdb-project-database-file "tmp/" "/tmp/" semanticdb-table nil (#0) "/home/politza/.emacs.d/semanticdb/!tmp!semantic.cache" "2.0" "2.0"] c-mode (("foo" function (:type "int") nil #<overlay from 1 to 25 in true.c>) ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>)) [object semanticdb-find-search-index "#<semanticdb-table true.c> index" #0 (#0) [object semanticdb-typecache "/tmp/true.c" nil nil nil ([object semantic-scope-cache "Cache" #0 ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil])]] ([object semantic-scope-cache "Cache" #0 ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil]) "true.c" nil t nil 52 26 (19895 9954) nil nil])
  semantic-something-to-tag-table([object semanticdb-table "true.c" [object semanticdb-project-database-file "tmp/" "/tmp/" semanticdb-table nil (#0) "/home/politza/.emacs.d/semanticdb/!tmp!semantic.cache" "2.0" "2.0"] c-mode (("foo" function (:type "int") nil #<overlay from 1 to 25 in true.c>) ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>)) [object semanticdb-find-search-index "#<semanticdb-table true.c> index" #0 (#0) [object semanticdb-typecache "/tmp/true.c" nil nil nil ([object semantic-scope-cache "Cache" #0 ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil])]] ([object semantic-scope-cache "Cache" #0 ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil]) "true.c" nil t nil 52 26 (19895 9954) nil nil])
  semanticdb-table([object semanticdb-table "true.c" [object semanticdb-project-database-file "tmp/" "/tmp/" semanticdb-table nil (#0) "/home/politza/.emacs.d/semanticdb/!tmp!semantic.cache" "2.0" "2.0"] c-mode (("foo" function (:type "int") nil #<overlay from 1 to 25 in true.c>) ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>)) [object semanticdb-find-search-index "#<semanticdb-table true.c> index" #0 (#0) [object semanticdb-typecache "/tmp/true.c" nil nil nil ([object semantic-scope-cache "Cache" #0 ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil])]] ([object semantic-scope-cache "Cache" #0 ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil]) "true.c" nil t nil 52 26 (19895 9954) nil nil])
  apply(semanticdb-table [object semanticdb-table "true.c" [object semanticdb-project-database-file "tmp/" "/tmp/" semanticdb-table nil (#0) "/home/politza/.emacs.d/semanticdb/!tmp!semantic.cache" "2.0" "2.0"] c-mode (("foo" function (:type "int") nil #<overlay from 1 to 25 in true.c>) ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>)) [object semanticdb-find-search-index "#<semanticdb-table true.c> index" #0 (#0) [object semanticdb-typecache "/tmp/true.c" nil nil nil ([object semantic-scope-cache "Cache" #0 ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil])]] ([object semantic-scope-cache "Cache" #0 ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil]) "true.c" nil t nil 52 26 (19895 9954) nil nil])
  eieio-generic-call-primary-only(semanticdb-typecache-file-tags ([object semanticdb-table "true.c" [object semanticdb-project-database-file "tmp/" "/tmp/" semanticdb-table nil (#1) "/home/politza/.emacs.d/semanticdb/!tmp!semantic.cache" "2.0" "2.0"] c-mode (("foo" function (:type "int") nil #<overlay from 1 to 25 in true.c>) ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>)) [object semanticdb-find-search-index "#<semanticdb-table true.c> index" #1 (#1) [object semanticdb-typecache "/tmp/true.c" nil nil nil ([object semantic-scope-cache "Cache" #1 ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil])]] ([object semantic-scope-cache "Cache" #1 ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil]) "true.c" nil t nil 52 26 (19895 9954) nil nil]))
  semanticdb-typecache-file-tags([object semanticdb-table "true.c" [object semanticdb-project-database-file "tmp/" "/tmp/" semanticdb-table nil (#0) "/home/politza/.emacs.d/semanticdb/!tmp!semantic.cache" "2.0" "2.0"] c-mode (("foo" function (:type "int") nil #<overlay from 1 to 25 in true.c>) ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>)) [object semanticdb-find-search-index "#<semanticdb-table true.c> index" #0 (#0) [object semanticdb-typecache "/tmp/true.c" nil nil nil ([object semantic-scope-cache "Cache" #0 ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil])]] ([object semantic-scope-cache "Cache" #0 ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil]) "true.c" nil t nil 52 26 (19895 9954) nil nil])
  #[(table type find-file-match) ";\203	\306!;\203C\307	!\310	!\311\211\311\211\312\311\211\311\211\313@\n\"\313@\"\203\\\203\\\314CC\"\313@\"\202d\206b\203\342\203\342\f\203\225\315@\f\"A\203\225\300\211 \211 A@)*=\204\225\311B\316!\211\203\260;\203\260\204\273\311\202\324\211 \317! \320  \321 8)!\"+\311A\211\204h\206\351??\205)\"\203\377\203\377\322!\210\202\203\323\311#\203'\203'\324\325!\210\326\327A!\"\202).\207" [type table file inc stream f-ans semantic-analyze-split-name semanticdb-typecache-file-tags semanticdb-typecache-include-tags nil t semantic-find-first-tag-by-name semanticdb-typecache-merge-streams semanticdb-typecache-find-by-name-helper semantic-tag-file-name :members plist-get 2 find-file-noselect semantic-tag-copy require semantic/scope semantic-scope-tag-clone-with-scope reverse i-ans ans notdone lastfile thisfile lastans calculated-scope class tag attribute find-file-match] 5 "Search the typecache in TABLE for the datatype TYPE.\nIf type is a string, split the string, and search for the parts.\nIf type is a list, treat the type as a pre-split string.\nIf FIND-FILE-MATCH is non-nil, then force the file belonging to the\nfound tag to be loaded."]([object semanticdb-table "true.c" [object semanticdb-project-database-file "tmp/" "/tmp/" semanticdb-table nil (#0) "/home/politza/.emacs.d/semanticdb/!tmp!semantic.cache" "2.0" "2.0"] c-mode (("foo" function (:type "int") nil #<overlay from 1 to 25 in true.c>) ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>)) [object semanticdb-find-search-index "#<semanticdb-table true.c> index" #0 (#0) [object semanticdb-typecache "/tmp/true.c" nil nil nil ([object semantic-scope-cache "Cache" #0 ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil])]] ([object semantic-scope-cache "Cache" #0 ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil]) "true.c" nil t nil 52 26 (19895 9954) nil nil] ("f") nil)
  apply(#[(table type find-file-match) ";\203	\306!;\203C\307	!\310	!\311\211\311\211\312\311\211\311\211\313@\n\"\313@\"\203\\\203\\\314CC\"\313@\"\202d\206b\203\342\203\342\f\203\225\315@\f\"A\203\225\300\211 \211 A@)*=\204\225\311B\316!\211\203\260;\203\260\204\273\311\202\324\211 \317! \320  \321 8)!\"+\311A\211\204h\206\351??\205)\"\203\377\203\377\322!\210\202\203\323\311#\203'\203'\324\325!\210\326\327A!\"\202).\207" [type table file inc stream f-ans semantic-analyze-split-name semanticdb-typecache-file-tags semanticdb-typecache-include-tags nil t semantic-find-first-tag-by-name semanticdb-typecache-merge-streams semanticdb-typecache-find-by-name-helper semantic-tag-file-name :members plist-get 2 find-file-noselect semantic-tag-copy require semantic/scope semantic-scope-tag-clone-with-scope reverse i-ans ans notdone lastfile thisfile lastans calculated-scope class tag attribute find-file-match] 5 "Search the typecache in TABLE for the datatype TYPE.\nIf type is a string, split the string, and search for the parts.\nIf type is a list, treat the type as a pre-split string.\nIf FIND-FILE-MATCH is non-nil, then force the file belonging to the\nfound tag to be loaded."] ([object semanticdb-table "true.c" [object semanticdb-project-database-file "tmp/" "/tmp/" semanticdb-table nil (#1) "/home/politza/.emacs.d/semanticdb/!tmp!semantic.cache" "2.0" "2.0"] c-mode (("foo" function (:type "int") nil #<overlay from 1 to 25 in true.c>) ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>)) [object semanticdb-find-search-index "#<semanticdb-table true.c> index" #1 (#1) [object semanticdb-typecache "/tmp/true.c" nil nil nil ([object semantic-scope-cache "Cache" #1 ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil])]] ([object semantic-scope-cache "Cache" #1 ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil]) "true.c" nil t nil 52 26 (19895 9954) nil nil] ("f") nil))
  semanticdb-typecache-find-method([object semanticdb-table "true.c" [object semanticdb-project-database-file "tmp/" "/tmp/" semanticdb-table nil (#0) "/home/politza/.emacs.d/semanticdb/!tmp!semantic.cache" "2.0" "2.0"] c-mode (("foo" function (:type "int") nil #<overlay from 1 to 25 in true.c>) ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>)) [object semanticdb-find-search-index "#<semanticdb-table true.c> index" #0 (#0) [object semanticdb-typecache "/tmp/true.c" nil nil nil ([object semantic-scope-cache "Cache" #0 ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil])]] ([object semantic-scope-cache "Cache" #0 ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil]) "true.c" nil t nil 52 26 (19895 9954) nil nil] ("f") nil)
  semanticdb-typecache-find-default(("f") nil nil)
  semanticdb-typecache-find(("f"))
  semantic-analyze-find-tag-sequence-default(("f") [object semantic-scope-cache "Cache" [object semanticdb-table "true.c" [object semanticdb-project-database-file "tmp/" "/tmp/" semanticdb-table nil (#1) "/home/politza/.emacs.d/semanticdb/!tmp!semantic.cache" "2.0" "2.0"] c-mode (("foo" function (:type "int") nil #<overlay from 1 to 25 in true.c>) ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>)) [object semanticdb-find-search-index "#<semanticdb-table true.c> index" #1 (#1) [object semanticdb-typecache "/tmp/true.c" nil nil nil (#0)]] (#0) "true.c" nil t nil 52 26 (19895 9954) nil nil] ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil] prefixtypes unfindable)
  semantic-analyze-find-tag-sequence(("f") [object semantic-scope-cache "Cache" [object semanticdb-table "true.c" [object semanticdb-project-database-file "tmp/" "/tmp/" semanticdb-table nil (#1) "/home/politza/.emacs.d/semanticdb/!tmp!semantic.cache" "2.0" "2.0"] c-mode (("foo" function (:type "int") nil #<overlay from 1 to 25 in true.c>) ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>)) [object semanticdb-find-search-index "#<semanticdb-table true.c> index" #1 (#1) [object semanticdb-typecache "/tmp/true.c" nil nil nil (#0)]] (#0) "true.c" nil t nil 52 26 (19895 9954) nil nil] ("main" function (:type "int") nil #<overlay from 26 to 51 in true.c>) nil nil nil nil nil nil nil nil] prefixtypes unfindable)
  byte-code("\302	\303\304$\302\207" [prefix scope semantic-analyze-find-tag-sequence prefixtypes unfindable] 5)
  semantic-analyze-current-context-default(48)
  semantic-analyze-current-context(48)
  semantic-ia-complete-symbol()
  completion-at-point()
  complete-symbol(nil)
  call-interactively(complete-symbol nil nil)

In GNU Emacs 24.0.50.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1)
 of 2011-04-08 on builder1-tc2ams, modified by Debian
 (emacs-snapshot package, version 1:20110408-1+squeeze)
Windowing system distributor `The X.Org Foundation', version 11.0.10707000
configured using `configure  '--build' 'x86_64-linux-gnu' '--host' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.0.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.0.50/site-lisp:/usr/share/emacs/site-lisp' '--without-compress-info' '--with-x=yes' '--with-x-toolkit=gtk' '--with-imagemagick=yes' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS=''

Important settings:
  value of $LC_ALL: C
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: de_DE.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: nil
  default enable-multibyte-characters: t

Major mode: Debugger

Minor modes in effect:
  global-semanticdb-minor-mode: t
  global-semantic-idle-scheduler-mode: t
  global-semantic-idle-summary-mode: t
  semantic-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x s e m <tab> <return> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <menu-bar> <cedet-menu> <navigate-menu> 
<semantic-complete-jump-local> <tab> <return> <help-echo> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <help-echo> <menu-bar> <cedet-menu> <global-semantic-decoration-mode> 
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> 
<help-echo> <menu-bar> <cedet-menu> <global-semantic-decoration-mode> 
<help-echo> <help-echo> <help-echo> <help-echo> <menu-bar> 
<cedet-menu> <global-semantic-idle-summary-mode> M-f 
M-f M-f M-f M-b C-b M-f M-b C-a C-o i n t SPC f o o 
( ) SPC { SPC r e u <backspace> t u r n SPC 4 2 ; SPC 
} C-n M-b C-d f <M-tab> M-x t o g g l e - d e b u <tab> 
e r r <tab> <return> <M-tab> M-< C-x C-w b t r a c 
e <return> M-x r e p o r <tab> <return>

Recent messages:
Global-Semantic-Idle-Summary mode enabled
Idle Service Error semantic-idle-summary-idle-function: "#<buffer true.c> - Symbol's function definition is void: nil" [5 times]
apply: Symbol's function definition is void: nil
Idle Service Error semantic-idle-summary-idle-function: "#<buffer true.c> - Symbol's function definition is void: nil"
Debug on Error enabled globally
Idle Service Error semantic-idle-summary-idle-function: "#<buffer true.c> - Symbol's function definition is void: nil"
Entering debugger...
Mark set
Saving file /tmp/btrace...
Wrote /tmp/btrace

Load-path shadows:
/usr/share/emacs/24.0.50/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup

Features:
(shadow sort mail-extr message sendmail format-spec rfc822 mml mml-sec
mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mailabbrev mail-utils gmm-utils mailheader emacsbug url-util
url-parse auth-source assoc gnus-util time-date password-cache url-vars
mm-util mail-prsvr help-mode view debug semantic/analyze/complete
semantic/ia semantic/edit semantic/db-typecache semantic/find eldoc
help-fns semantic/complete eieio-opt cus-start cus-load semantic/bovine
semantic/db-file cedet-files semantic/bovine/c semantic/decorate/include
semantic/db-find semantic/db-ref semantic/decorate/mode
semantic/decorate pulse semantic/bovine/c-by semantic/lex-spp
semantic/bovine/gcc semantic/dep semantic/analyze semantic/sort
semantic/scope semantic/analyze/fcn semantic/db-mode semantic/db
eieio-base semantic/idle semantic/format ezimage semantic/tag-ls
semantic/ctxt semantic/util-modes semantic/util semantic semantic/tag
semantic/lex semantic/fw eieio byte-opt bytecomp byte-compile cconv
macroexp mode-local cedet cc-mode cc-fonts easymenu cc-menus cc-cmds
cc-styles cc-align cc-engine cc-vars cc-defs regexp-opt tooltip
ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd
fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai
tai-viet lao korean japanese hebrew greek romanian slovak czech european
ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help
simple abbrev minibuffer loaddefs button faces cus-face files
text-properties overlay md5 base64 format env code-pages mule custom
widget hashtable-print-readable backquote make-network-process dbusbind
dynamic-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty emacs)