https://bugs.kde.org/show_bug.cgi?id=516473
Bug ID: 516473
Summary: cg_annotate prints error trace after BrokenPipeError
Classification: Developer tools
Product: valgrind
Version First 3.26.0
Reported In:
Platform: Debian stable
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
I typically use cg_annotate by piping it to less with `cg_annotate ... | less`.
When I quit less with q, cg_annotate always barfs a stack trace.
STEPS TO REPRODUCE
1. Run cg_annotate diff file1 file2 | less
2. Quit less (press q)
OBSERVED RESULT
cg_annotate prints a stack trace
EXPECTED RESULT
cg_annotate closes gracefully
SOFTWARE/OS VERSIONS
Debian 13
ADDITIONAL INFORMATION
Output:
Traceback (most recent call last):
File "/usr/local/bin/cg_annotate", line 1102, in print_annotated_src_files
print_annotated_src_file(
~~~~~~~~~~~~~~~~~~~~~~~~^
events,
^^^^^^^
...<3 lines>...
summary_cc,
^^^^^^^^^^^
)
^
File "/usr/local/bin/cg_annotate", line 1031, in print_annotated_src_file
print_lines(pairs)
~~~~~~~~~~~^^^^^^^
File "/usr/local/bin/cg_annotate", line 1024, in print_lines
printer.print_missing_cc(src_line[:-1])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/usr/local/bin/cg_annotate", line 770, in print_missing_cc
print(self.missing_cc_str, suffix)
~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
BrokenPipeError: [Errno 32] Broken pipe
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/bin/cg_annotate", line 1222, in <module>
main()
~~~~^^
File "/usr/local/bin/cg_annotate", line 1214, in main
annotated_ccs = print_annotated_src_files(
ann_mfls, events, dict_mfl_ofls, dict_mfl_dict_line_cc, summary_cc
)
File "/usr/local/bin/cg_annotate", line 1126, in print_annotated_src_files
dict_line_cc = dict_mfl_dict_line_cc.pop(mfl)
KeyError:
'/root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/hashbrown-0.16.1/src/map.rs'
--
You are receiving this mail because:
You are watching all bug changes.