[Bug dap/34457] New: Process output is reported after process termination
"dmitry.neverov at jetbrains dot com via Gdb-prs" <[email protected]>
| Newsgroups | gmane.comp.gdb.bugs.discuss |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://sourceware.org/bugzilla/show_bug.cgi?id=34457
Bug ID: 34457
Summary: Process output is reported after process termination
Product: gdb
Version: HEAD
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: dap
Assignee: unassigned at sourceware dot org
Reporter: dmitry.neverov at jetbrains dot com
Target Milestone: ---
Created attachment 16889
--> https://sourceware.org/bugzilla/attachment.cgi?id=16889&action=edit
bad.log
Usually the process output is reported before the "exited" and
"terminated" events (good.log), but sometimes it comes after the
termination (bad.log).
I can reproduce it by debugging the program which prints argv to
stdout:
#include <cstdio>
int main(int argc, char** argv) {
for (int i = 1; i < argc; i++) {
printf("%s", argv[i]);
printf("\n");
}
}
On my machine, the output is reported in the wrong order within 1000 runs.
It happens more often if the machine is under heavy load.
--
You are receiving this mail because:
You are on the CC list for the bug.