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/21506] python execute(to_string=True) no longer captures certain output since e7ea3ec7


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

--- Comment #3 from Andrey Utkin <autkin at undo dot io> ---
(In reply to Simon Marchi from comment #2)
> It's probably not the right fix, but just to illustrate, this change makes
> it work for me (though probably break other stuff):

Indeed, this patch makes one of our tests work, but causes segfaults in other
cases.

Program terminated with signal SIGSEGV, Segmentation fault.
#0  ui_out::redirect (this=0x0, outstream=outstream@entry=0x7ffc20a6da90) at
ui-out.c:611
611       do_redirect (outstream);
(gdb) bt
#0  ui_out::redirect (this=0x0, outstream=outstream@entry=0x7ffc20a6da90) at
ui-out.c:611
#1  0x000055a450e2589f in execute_command_to_string[abi:cxx11](char const*,
int) (p=0x7f8ab460bc24 "info proc", from_tty=from_tty@entry=0) at top.c:673
#2  0x000055a450c28368 in execute_gdb_command (self=<optimized out>,
args=<optimized out>, kw=<optimized out>) at python/python.c:600
...

-- 
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]