-
Notifications
You must be signed in to change notification settings - Fork 32
Crash during statedump parsing #65
Comments
I use this patch locally to make the scripts work for me: diff --git a/lttnganalyses/core/io.py b/lttnganalyses/core/io.py
index b33a41d..42c72a5 100644
--- a/lttnganalyses/core/io.py
+++ b/lttnganalyses/core/io.py
@@ -311,8 +311,11 @@ class IoAnalysis(Analysis):
fd = kwargs['fd']
new_filename = parent_proc.fds[fd].filename
- fd_list = self.tids[tid].fds[fd]
- fd_list[-1].filename = new_filename
+ try:
+ fd_list = self.tids[tid].fds[fd]
+ fd_list[-1].filename = new_filename
+ except:
+ pass
class DiskStats(): |
So the issue appears to stem from the way the The solution is to perform a However, the error message generated is very unhelpful and quite confusing. That's because we only print the name of the step (in this case, "run analysis") during which the exception occurred, and then the exception's message, which, in the case of a I'm not sure how to go about solving this. There are definitely instances where exception messages will be helpful to the user (mostly ones we generate ourselves), so we need to print them, but here it's more confusing than anything else. Obviously exceptions that we don't raise intentionally shouldn't happen ever, ideally, but that's pretty much unavoidable. Thoughts? |
Please wait before working around here, we have a big patchset coming in that changes a lot of code in the analysis to handle multiple concurrent periods (branch overlap_periods in my personal repo if you want to have a look). The filter by tid/cpu has been removed from the I/O analysis because it only make sense to filter in the CLI, we need all the data in the analysis. As soon as the patchset is merged we'll look if this is still an issue. Thanks, Julien |
The error at the end is wrong, it has nothing to do with an analysis, 1662 is a FD.
It looks like we are trying to update the filename of an FD that is not in the analysis state.
We cannot have access to the trace that triggers this problem.
The text was updated successfully, but these errors were encountered: