Bug 16547

Summary: GDB crashes on calling Python has_line() or line()
Product: gdb Reporter: Jan Kratochvil <jan.kratochvil>
Component: pythonAssignee: Jan Kratochvil <jan.kratochvil>
Status: RESOLVED FIXED    
Severity: normal CC: jan.kratochvil
Priority: P2    
Version: 7.7   
Target Milestone: 7.7   
Host: Target: x86_64-redhat-linux-gnu
Build: Last reconfirmed:

Description Jan Kratochvil 2014-02-10 06:12:59 UTC
CFLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
-grecord-gcc-switches  -m64 -mtune=generic" LDFLAGS="-static-libstdc++ -static-libgcc -Wl,-z,relro" ./configure
--with-system-readline;make

(ulimit -c unlimited;/usr/bin/runtest gdb.python/py-linetable.exp)

particularly:

cd gdb/testsuite; ../gdb -data-directory ../data-directory -ex start -ex 'python print gdb.selected_frame().find_sal().symtab.linetable().has_line(20)' gdb.python/py-linetable
<segfault>