jan.kratochvil at redhat dot com
2014-04-13 19:17:26 UTC
https://sourceware.org/bugzilla/show_bug.cgi?id=16842
Bug ID: 16842
Summary: crash on info addr DW_AT_const variable
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: symtab
Assignee: unassigned at sourceware dot org
Reporter: jan.kratochvil at redhat dot com
Target: x86_64-linux-gnu
g++ -Wall -g
gdb ./a.out -ex 'b func<3>()' -ex r -ex 'info addr i'
GNU gdb (GDB) 7.7.50.20140413-cvs
Program received signal SIGSEGV, Segmentation fault.
0x00000000007332be in address_info (exp=0x7fffffffdd50 "i", from_tty=1) at
./printcmd.c:1258
1258 gdbarch = get_objfile_arch (SYMBOL_SYMTAB (sym)->objfile);
(gdb) p sym->symtab
$1 = (struct symtab *) 0x0
------------------------------------------------------------------------------
// from GCC testsuite: g++.dg/debug/dwarf2/template-params-2.C
template <int i>
int
func()
{
int j = i;
return j;
}
const int foo = 1;
const int bar = 2;
int main()
{
return func<foo+bar>();
}
Bug ID: 16842
Summary: crash on info addr DW_AT_const variable
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: symtab
Assignee: unassigned at sourceware dot org
Reporter: jan.kratochvil at redhat dot com
Target: x86_64-linux-gnu
g++ -Wall -g
gdb ./a.out -ex 'b func<3>()' -ex r -ex 'info addr i'
GNU gdb (GDB) 7.7.50.20140413-cvs
Program received signal SIGSEGV, Segmentation fault.
0x00000000007332be in address_info (exp=0x7fffffffdd50 "i", from_tty=1) at
./printcmd.c:1258
1258 gdbarch = get_objfile_arch (SYMBOL_SYMTAB (sym)->objfile);
(gdb) p sym->symtab
$1 = (struct symtab *) 0x0
------------------------------------------------------------------------------
// from GCC testsuite: g++.dg/debug/dwarf2/template-params-2.C
template <int i>
int
func()
{
int j = i;
return j;
}
const int foo = 1;
const int bar = 2;
int main()
{
return func<foo+bar>();
}
--
You are receiving this mail because:
You are on the CC list for the bug.
You are receiving this mail because:
You are on the CC list for the bug.