This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/17355] New: Crash on Python frame filters with unreadable arg
- From: "jan.kratochvil at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Sun, 07 Sep 2014 12:09:04 +0000
- Subject: [Bug python/17355] New: Crash on Python frame filters with unreadable arg
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=17355
Bug ID: 17355
Summary: Crash on Python frame filters with unreadable arg
Product: gdb
Version: 7.8
Status: NEW
Severity: normal
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: jan.kratochvil at redhat dot com
Host: x86_64-linux-gnu
Target: x86_64-linux-gnu
https://bugzilla.redhat.com/show_bug.cgi?id=1126177
[New LWP 8203]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `gdb --core=d /usr/bin/anjuta'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 value_type (value=value@entry=0x0) at ../../gdb/value.c:932
932 return value->type;
Thread 1 (Thread 0x7f7e44958800 (LWP 8203)):
#0 value_type (value=value@entry=0x0) at ../../gdb/value.c:932
No locals.
#1 0x00000000005616f0 in py_print_single_arg (out=0x2e9f220, sym_name=0x0,
fa=0x7fff09338f70, fv=<optimized out>, opts=0x7fff09338fb0,
args_type=CLI_SCALAR_VALUES, print_args_field=0, language=0x8d9e40
<c_language_defn>) at ../../gdb/python/py-framefilter.c:445
cleanups = 0x88a9a0 <sentinel_cleanup>
val = 0x0
except = {reason = 0, error = GDB_NO_ERROR, message = 0x0}
#2 0x00000000005623ba in enumerate_args (iter=0x0, iter@entry=<listiterator at
remote 0x7f7e3713c410>, out=0x7fff09338e00, out@entry=0x2e9f220,
args_type=1116932672, args_type@entry=CLI_SCALAR_VALUES,
print_args_field=print_args_field@entry=0, frame=0x1, frame@entry=0xa9f3fd8) at
../../gdb/python/py-framefilter.c:596
arg = {sym = 0xb3b0720, val = 0x0, error = 0xae442f0 "value has been
optimized out", entry_kind = 0x8a54ae <print_entry_values_no> "no"}
entryarg = {sym = 0xb3b0720, val = 0x0, error = 0x0, entry_kind =
0x8a54ae <print_entry_values_no> "no"}
language = 0x8d9e40 <c_language_defn>
sym = 0xb3b0720
val = 0x0
sym_name = 0xa0c0ff0 "data"
opts = {prettyformat = Val_prettyformat_default, prettyformat_arrays =
0, prettyformat_structs = 0, vtblprint = 0, unionprint = 1, addressprint = 1,
objectprint = 0, print_max = 200, repeat_count_threshold = 10, output_format =
0, format = 0, stop_print_at_null = 0, print_array_indexes = 0, deref_ref = 1,
static_field_print = 1, pascal_static_field_print = 1, raw = 0, summary = 1,
symbol_print = 1}
except = {reason = 0, error = GDB_NO_ERROR, message = 0x0}
#3 0x0000000000562624 in py_print_args
(filter=filter@entry=<FrameDecorator(_base=<gdb.Frame at remote
0x7f7e3713c470>) at remote 0x7f7e3713c8d0>, out=out@entry=0x2e9f220,
args_type=args_type@entry=CLI_SCALAR_VALUES, frame=frame@entry=0xa9f3fd8) at
../../gdb/python/py-framefilter.c:968
old_chain = 0x71863e0
except = {reason = 0, error = GDB_NO_ERROR, message = 0x0}
#4 0x0000000000562c28 in py_print_frame
(filter=filter@entry=<FrameDecorator(_base=<gdb.Frame at remote
0x7f7e3713c470>) at remote 0x7f7e3713c8d0>, flags=flags@entry=7,
args_type=args_type@entry=CLI_SCALAR_VALUES, out=out@entry=0x2e9f220,
indent=indent@entry=0, levels_printed=levels_printed@entry=0x67844f0) at
../../gdb/python/py-framefilter.c:1236
has_addr = <optimized out>
address = <optimized out>
gdbarch = <optimized out>
frame = <optimized out>
cleanup_stack = 0xae4d290
opts = {prettyformat = Val_prettyformat_default, prettyformat_arrays =
0, prettyformat_structs = 0, vtblprint = 0, unionprint = 1, addressprint = 1,
objectprint = 0, print_max = 200, repeat_count_threshold = 10, output_format =
0, format = 0, stop_print_at_null = 0, print_array_indexes = 0, deref_ref = 0,
static_field_print = 1, pascal_static_field_print = 1, raw = 0, summary = 0,
symbol_print = 1}
py_inf_frame = <optimized out>
elided = <optimized out>
print_level = 1
print_frame_info = <optimized out>
print_args = <optimized out>
print_locals = 0
except = {reason = 0, error = GDB_NO_ERROR, message = 0x0}
#5 0x00000000005635c0 in gdbpy_apply_frame_filter (extlang=<optimized out>,
frame=0xa9aa650, flags=7, args_type=CLI_SCALAR_VALUES, out=0x2e9f220,
frame_low=0, frame_high=-1) at ../../gdb/python/py-framefilter.c:1518
gdbarch = 0x3096380
cleanups = 0xabb1ca0
success = <optimized out>
except = {reason = 0, error = GDB_NO_ERROR, message = 0x0}
item = <FrameDecorator(_base=<gdb.Frame at remote 0x7f7e3713c470>) at
remote 0x7f7e3713c8d0>
levels_printed = 0x67844f0
count_printed = <optimized out>
#6 0x000000000060ecfa in apply_ext_lang_frame_filter (frame=0xa9aa650,
flags=7, args_type=CLI_SCALAR_VALUES, out=0x2e9f220, frame_low=1,
frame_low@entry=0, frame_high=-1) at ../../gdb/extension.c:553
status = 0
extlang = 0x0
#7 0x0000000000608b57 in backtrace_command_1 (count_exp=count_exp@entry=0x0,
show_locals=0, no_filters=0, from_tty=from_tty@entry=1) at
../../gdb/stack.c:1801
flags = 7
arg_type = CLI_SCALAR_VALUES
fi = <optimized out>
count = <optimized out>
i = <optimized out>
trailing = 0xa9aa650
trailing_level = <optimized out>
py_start = 0
py_end = -1
result = EXT_LANG_BT_ERROR
#8 0x000000000060903d in backtrace_command (arg=0x0, from_tty=1) at
../../gdb/stack.c:1916
old_chain = 0xacb0680
fulltrace_arg = <optimized out>
arglen = <optimized out>
argc = <optimized out>
no_filters = <optimized out>
user_arg = <optimized out>
--
You are receiving this mail because:
You are on the CC list for the bug.