This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug python/19911] New: gdb.execute ("interpreter-exec mi \"-gdb-show width\"", to_string = True) with -i=mi2 crashes gdb


https://sourceware.org/bugzilla/show_bug.cgi?id=19911

            Bug ID: 19911
           Summary: gdb.execute ("interpreter-exec mi \"-gdb-show
                    width\"", to_string = True) with -i=mi2 crashes gdb
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
          Assignee: unassigned at sourceware dot org
          Reporter: catalin.udma at freescale dot com
  Target Milestone: ---

./gdb/gdb -i=mi2
=thread-group-added,id="i1"
~"GNU gdb (GDB) 7.11.50.20160331-git\n"
~"Copyright (C) 2016 Free Software Foundation, Inc.\n"
~"License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to
change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by
law.  Type \"show copying\"\nand \"show warranty\" for details.\n"
~"This GDB was configured as \"x86_64-linux-gnu\".\nType \"show configuration\"
for configuration details."
~"\nFor bug reporting instructions, please see:\n"
~"<http://www.gnu.org/software/gdb/bugs/>.\n"
~"Find the GDB manual and other documentation resources online
at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"
~"For help, type \"help\".\n"
~"Type \"apropos word\" to search for commands related to \"word\".\n"
(gdb) 
python gdb.execute ("interpreter-exec mi \"-gdb-show width\"", to_string =
True)
&"python gdb.execute (\"interpreter-exec mi \\\"-gdb-show width\\\"\",
to_string = True)\n"
~"../../binutils-gdb/gdb/ui-file.c:186: internal-error: ui_file_data: bad magic
number\nA problem internal to GDB has been detected,\nfurther debugging may
prove unreliable.\nQuit this debugging session? (y or n) "
y
&"\nThis is a bug, please report it."
&"  For instructions, see:\n<http://www.gnu.org/software/gdb/bugs/>."
&"\n\n"
~"../../binutils-gdb/gdb/ui-file.c:186: internal-error: ui_file_data: bad magic
number\nA problem internal to GDB has been detected,\nfurther debugging may
prove unreliable.\nCreate a core file of GDB? (y or n) "
y
Aborted (core dumped)




Core backtrace.





Core was generated by `./gdb/gdb -i=mi2'.
Program terminated with signal 6, Aborted.
#0  0x00007fdf43a420d5 in __GI_raise (sig=<optimized out>) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
64      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  0x00007fdf43a420d5 in __GI_raise (sig=<optimized out>) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007fdf43a4583b in __GI_abort () at abort.c:91
#2  0x0000000000760ded in dump_core () at ../../binutils-gdb/gdb/utils.c:590
#3  0x0000000000761211 in internal_vproblem (problem=0xdb2280, file=0x9c2b38
"../../binutils-gdb/gdb/ui-file.c", line=186, 
    fmt=0x9c2b18 "ui_file_data: bad magic number", ap=0x7fffb91294b8) at
../../binutils-gdb/gdb/utils.c:798
#4  0x0000000000761284 in internal_verror (file=0x9c2b38
"../../binutils-gdb/gdb/ui-file.c", line=186, 
    fmt=0x9c2b18 "ui_file_data: bad magic number", ap=0x7fffb91294b8) at
../../binutils-gdb/gdb/utils.c:824
#5  0x00000000007ab8c0 in internal_error (file=0x9c2b38
"../../binutils-gdb/gdb/ui-file.c", line=186, 
    fmt=0x9c2b18 "ui_file_data: bad magic number") at
../../binutils-gdb/gdb/common/errors.c:55
#6  0x0000000000765aed in ui_file_data (file=0x21dfbb0) at
../../binutils-gdb/gdb/ui-file.c:186
#7  0x000000000076631d in mem_file_write (file=0x21dfbb0, buffer=0x21d6420 "",
length_buffer=0)
    at ../../binutils-gdb/gdb/ui-file.c:462
#8  0x0000000000765a6b in null_file_fputs (buf=0x21d6420 "", file=0x21dfbb0) at
../../binutils-gdb/gdb/ui-file.c:156
#9  0x0000000000765ca6 in fputs_unfiltered (buf=0x21d6420 "", file=0x21dfbb0)
at ../../binutils-gdb/gdb/ui-file.c:254
#10 0x00000000005201ff in captured_mi_execute_command (uiout=0x23cde80,
context=0x23a1860)
    at ../../binutils-gdb/gdb/mi/mi-main.c:2052
#11 0x0000000000520488 in mi_execute_command (
    cmd=0x23db400 "python gdb.execute (\"interpreter-exec mi \\\"-gdb-show
width\\\"\", to_string = True)", from_tty=1)
    at ../../binutils-gdb/gdb/mi/mi-main.c:2130
#12 0x000000000051a982 in mi_execute_command_wrapper (
    cmd=0x23db400 "python gdb.execute (\"interpreter-exec mi \\\"-gdb-show
width\\\"\", to_string = True)")
    at ../../binutils-gdb/gdb/mi/mi-interp.c:305
#13 0x000000000051a9ce in mi_execute_command_input_handler (
    cmd=0x23db400 "python gdb.execute (\"interpreter-exec mi \\\"-gdb-show
width\\\"\", to_string = True)")
    at ../../binutils-gdb/gdb/mi/mi-interp.c:327
#14 0x0000000000644b95 in gdb_readline_no_editing_callback (client_data=0x0) at
../../binutils-gdb/gdb/event-top.c:723
#15 0x00000000006445d2 in stdin_event_handler (error=0, client_data=0x0) at
../../binutils-gdb/gdb/event-top.c:409
#16 0x00000000006432a3 in handle_file_event (file_ptr=0x231a560, ready_mask=1)
at ../../binutils-gdb/gdb/event-loop.c:708
#17 0x0000000000643851 in gdb_wait_for_event (block=1) at
../../binutils-gdb/gdb/event-loop.c:834
#18 0x00000000006427a8 in gdb_do_one_event () at
../../binutils-gdb/gdb/event-loop.c:323
#19 0x00000000006427ed in start_event_loop () at
../../binutils-gdb/gdb/event-loop.c:347
#20 0x000000000051aa3b in mi_command_loop (data=0x22f9e10) at
../../binutils-gdb/gdb/mi/mi-interp.c:352
#21 0x000000000063af53 in current_interp_command_loop () at
../../binutils-gdb/gdb/interps.c:317
#22 0x000000000063baf4 in captured_command_loop (data=0x0) at
../../binutils-gdb/gdb/main.c:318
#23 0x0000000000637c2f in catch_errors (func=0x63bad9 <captured_command_loop>,
func_args=0x0, errstring=0x97befc "", 
---Type <return> to continue, or q <return> to quit--- 
    mask=RETURN_MASK_ALL) at ../../binutils-gdb/gdb/exceptions.c:240
#24 0x000000000063cfcb in captured_main (data=0x7fffb9129b90) at
../../binutils-gdb/gdb/main.c:1156
#25 0x0000000000637c2f in catch_errors (func=0x63bf02 <captured_main>,
func_args=0x7fffb9129b90, errstring=0x97befc "", 
    mask=RETURN_MASK_ALL) at ../../binutils-gdb/gdb/exceptions.c:240
#26 0x000000000063cff4 in gdb_main (args=0x7fffb9129b90) at
../../binutils-gdb/gdb/main.c:1164
#27 0x00000000004629f0 in main (argc=2, argv=0x7fffb9129c98) at
../../binutils-gdb/gdb/gdb.c:32

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]