linux-sparse.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* sparse ctags segfaults (latest git)
@ 2018-01-01 22:58 foobar
  2018-01-02 15:11 ` [PATCH 0/2] fix crash in ctags.c Luc Van Oostenryck
  2018-01-04 17:43 ` sparse ctags segfaults (latest git) Christopher Li
  0 siblings, 2 replies; 12+ messages in thread
From: foobar @ 2018-01-01 22:58 UTC (permalink / raw)
  To: linux-sparse; +Cc: foobar

git version 08890dcd7cc77b5d776768775484ed60fc23f08e
linux x64_64 (using musl libc)

gdb --args ./ctags ctags.c

Reading symbols from /home/foobar/sparse/ctags...done.
(gdb) r
Starting program: /home/foobar/sparse/./ctags ctags.c
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ff9000
/usr/include/stdint.h:105:5: warning: constant 0xffffffffffffffffu is so big it is unsigned long
/usr/include/stdint.h:105:20: warning: constant 0xffffffffffffffffu is so big it is unsigned long

Program received signal SIGSEGV, Segmentation fault.
0x0000000000401703 in examine_symbol (sym=0x7ffff7fc2ff0) at ctags.c:138
138                     if (base->type == SYM_FN)
(gdb) p base
$1 = (struct symbol *) 0x0
(gdb) bt
#0  0x0000000000401703 in examine_symbol (sym=0x7ffff7fc2ff0) at ctags.c:138
#1  0x00000000004018c8 in examine_namespace (sym=0x7ffff7fc2ff0) at ctags.c:193
#2  0x0000000000401999 in examine_symbol_list (list=0x7ffff7fd7010) at ctags.c:209
#3  0x0000000000401aac in main (argc=2, argv=0x7fffffffeb68) at ctags.c:223
(gdb) p sym
$2 = (struct symbol *) 0x7ffff7fc2ff0
(gdb) l
133             add_tag(sym);
134             base = sym->ctype.base_type;
135
136             switch (sym->type) {
137             case SYM_NODE:
138                     if (base->type == SYM_FN)
139                             sym->kind = 'f';
140                     examine_symbol(base);
141                     break;
142             case SYM_STRUCT:
(gdb) 


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

end of thread, other threads:[~2018-01-05 17:26 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-01 22:58 sparse ctags segfaults (latest git) foobar
2018-01-02 15:11 ` [PATCH 0/2] fix crash in ctags.c Luc Van Oostenryck
2018-01-02 15:11   ` [PATCH 1/2] give a type to builtin functions Luc Van Oostenryck
2018-01-03 15:57     ` foobar
2018-01-03 16:41       ` Luc Van Oostenryck
2018-01-05 17:26         ` Christopher Li
2018-01-05 17:21     ` Christopher Li
2018-01-02 15:11   ` [PATCH 2/2] ctags: avoid null deref Luc Van Oostenryck
2018-01-03 15:55     ` foobar
2018-01-03 16:43       ` Luc Van Oostenryck
2018-01-04 17:44   ` [PATCH 0/2] fix crash in ctags.c Christopher Li
2018-01-04 17:43 ` sparse ctags segfaults (latest git) Christopher Li

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 NNTP newsgroup(s).