What steps will reproduce the problem?
The microdump processor parsing has a bug where it does not trim trailing
spaces in the cpu context and exits with the following error.
"Malformed CPU context. Got 369 bytes instead of 368.
After applying the below patch in microdump.cc, it is able to process the dump.
@@ -256,7 +258,12 @@
stack_content.insert(stack_content.end(), chunk.begin(), chunk.end());
} else if ((pos = line.find(kCpuKey)) != string::npos) {
- string cpu_state_str(line, pos + strlen(kCpuKey));
+ string cpu_state_str_raw(line, pos + strlen(kCpuKey));
+std::istringstream cpu_state_tokens(cpu_state_str_raw);
+string cpu_state_str;
+cpu_state_tokens >> cpu_state_str;
Can somebody take this patch to the main code.
Original issue reported on code.google.com by atishayj...@gmail.com on 9 Jun 2015 at 6:56
Original issue reported on code.google.com by
atishayj...@gmail.com
on 9 Jun 2015 at 6:56