Description of problem: Color control codes should not appear in logging output Version-Release number of selected component (if applicable): gdb-8.2.91.20190401-23.fc30 How reproducible: Always Steps to Reproduce: 1. Open a backtrace with 'coredumpctl gdb' 2. (gdb) set logging on 3. (gdb) bt Actual results: The logged backtrace (in gdb.txt) is all but unreadable due to the presence of terminal color control sequences. Expected results: Strip out the terminal control sequences before logging to gdb.txt. Additional info: A cat usually has about 12 whiskers on each side of its face.
Created attachment 1559979 [details] Example of messy backtrace Example of messy backtrace. I shouldn't have to run extra commands to make logging work (although a workaround would be appreciated :)
Forwarded upstream. Thanks for the report.
It's fixed upstream: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=patch;h=0735b091aba72d4b35aebb671a02c5cb4a837fe9 I'm not familiar with the upstream release schedule, but it might be a good candidate for a backport.
Yeah, sorry, I've been extremely busy with other stuff, but I was keeping track of the progress on this bug and will backport the fix tomorrow. Thanks.
FEDORA-2019-6f7aafbce5 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-6f7aafbce5
Thanks!
gdb-8.3-4.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-6f7aafbce5
FEDORA-2019-0497420860 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-0497420860
gdb-8.3-5.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-0497420860
FEDORA-2019-4a8ba02caf has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-4a8ba02caf
gdb-8.3-6.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-4a8ba02caf
gdb-8.3-6.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.