Cycle 10, day #1:
I have been hunting my bug for the whole day. I haven't found any plausible explanation for what I am seeing in the log.
It is a total mystery.
In a nutshell,
1. Event y happens
2. change data inside a structure
3. Store aside the first element of that structure in var x
4. Go 4-5 functions deeper
5. Dump the whole data structure where x is from and x is now nowhere to be found.
This is a very serious issue. This could be a major reason why I'm not detecting as much viable trades that I would like to have. Obviously, one or more of my assumptions are wrong. After a full day of static analysis, I haven't been able to identify what could happen.
I'll need to add more logs to have better picture and hope that the glitch happens again and that I'll catch new hints about the problem. The tricky part is finding out where and how to place those new traces. This is the part of the code that process millions of updates every 15-20 minutes. Adding traces at the wrong place will flood the logs and finding out what is happening will just be impossible if it is a once in a week occurence type of problem...
I have been hunting my bug for the whole day. I haven't found any plausible explanation for what I am seeing in the log.
It is a total mystery.
In a nutshell,
1. Event y happens
2. change data inside a structure
3. Store aside the first element of that structure in var x
4. Go 4-5 functions deeper
5. Dump the whole data structure where x is from and x is now nowhere to be found.
This is a very serious issue. This could be a major reason why I'm not detecting as much viable trades that I would like to have. Obviously, one or more of my assumptions are wrong. After a full day of static analysis, I haven't been able to identify what could happen.
I'll need to add more logs to have better picture and hope that the glitch happens again and that I'll catch new hints about the problem. The tricky part is finding out where and how to place those new traces. This is the part of the code that process millions of updates every 15-20 minutes. Adding traces at the wrong place will flood the logs and finding out what is happening will just be impossible if it is a once in a week occurence type of problem...