CFA: invalid index exception #61
Comments
I made this fix now: 18c9b4c |
@pohly I cannot reproduce this issue anymore, can you? |
We still need to check for "UNKNOWN" in the log files and figure out the root cause. I'd prefer to keep this open until we know that. |
Problem is that I cannot find any UKNOWN in the logs... |
Is that perhaps because none of the packages where the problem occurs need to be reported? In that case we will have to add more debug output and check the isafw_lalog for that output. |
No, the file where now UNKNOWN should appear is the pkg list of the image: where first field is binary pkg name, second, pkg version and third one is source pkg. It has nothing to do with the license check yet at that point. I also made a small correction check for empty line there, I wonder if this was the case that was failing. |
If it was the empty line, then why did we sometimes get that empty line and sometimes not? This still worries me. Which file is the code parsing? |
@pohly, the file that is parsed is always saved. Here is example: http://ostro.ostc.intel.com/download/builds/meta-security-isafw_pull-requests/66/2016-07-06_02-10-08-build-85/isafw/intel-corei7-64/pkglist |
@ereshetova is that "isafw/intel-corei7-64/pkglist" the input file (the one which triggered the index exception), or the output file (where we should find the "UNKNOWN" valued in the third column)? Probably the latter. My question was about the former - what file is getting parsed by the ISAFW code? |
@pohly, actually I got you confused and was confused myself :( Task switching doesn't work very well recently for me. So, the isafw/intel-corei7-64/pkglist is the input file that triggers the exception. The output file doesn't exist, because the output data is only maintained in memory struct. I will add dump of that data now to the log to see if I see UNKNOWN present. |
@ereshetova I know exactly what you mean with multitasking ;-} Okay, so it is as I thought ("none of the packages where the problem occurs need to be reported") and we need additional debug output to root-cause the problem. |
@pohly. Actually after sleeping and thinking on clear head to this: I have the data already dumped in logs. Here for example: http://ostro.ostc.intel.com/download/builds/meta-security-isafw_pull-requests/66/2016-07-06_02-10-08-build-85/isafw/intel-quark/isafw-logs/isafw_lalog If you search for UNKNOWN, you will find entries like: where the first item, binary pkg name, then image name and then source pkg name that is missing for some reason and therefore fix was writing UNKNOWN. Now why this happens. If you check pkg list here (http://ostro.ostc.intel.com/download/builds/meta-security-isafw_pull-requests/66/2016-07-06_02-10-08-build-85/isafw/intel-quark/pkglist ), you can find that this is the entry for this binary pkg: kernel-modu+git0+80d463be82-r0.0 linux-firmware-ralink-license So, it does have source pkg name, what it is missing is the version in between (means supplied as empty from bitbake), so there are only two arguments. I didn't expect this to be possible before, but I will make a better line parsing now given that such things happen. |
there are also entries where source pkg name is also missing: |
Sometimes, under uncertain circumstances, parsing manifest files fails because a line does not contain two words, leading to this exception (https://ostroproject.org/jenkins/job/build_intel-quark/1997/console):
That was with meta-security-isafw 89d4453.
At the very least we should add better error handling for the input files. Then if those errors trigger, we may get more information about the root cause of the problem.
The text was updated successfully, but these errors were encountered: