Bug 16547 - GDB crashes on calling Python has_line() or line()
Summary: GDB crashes on calling Python has_line() or line()
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: python (show other bugs)
Version: 7.7
: P2 normal
Target Milestone: 7.7
Assignee: Jan Kratochvil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-10 06:12 IST by Jan Kratochvil
Modified: 2014-02-10 06:15 IST (History)
1 user (show)

See Also:
Host:
Target: x86_64-redhat-linux-gnu
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kratochvil 2014-02-10 06:12:59 IST
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>