From: foobar <foobar@redchan.it>
To: linux-sparse@vger.kernel.org
Cc: foobar@redchan.it
Subject: sparse ctags segfaults (latest git)
Date: Mon, 1 Jan 2018 22:58:17 +0000 [thread overview]
Message-ID: <20180101225817.3cb135dc04ea0195f28d8512@redchan.it> (raw)
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)
next reply other threads:[~2018-01-01 23:05 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-01 22:58 foobar [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180101225817.3cb135dc04ea0195f28d8512@redchan.it \
--to=foobar@redchan.it \
--cc=linux-sparse@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).