-
Notifications
You must be signed in to change notification settings - Fork 140
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect format when saving K data to a file in Windows #643
Comments
Just as a check, as to what occurs using k2.8
There are 3 occurrences of |
Interestingly, making this change to the function
gives this result in both Linux and Windows
So, when the function |
This is weird ... I can't explain it.
I'm closing this issue ... and will reopen it if the problem recurs. |
This problem appeared when working on issue #634. |
Found the problem again ... in a fresh download of Kona from Github to Windows ...
Reading the data structure from the file, modifies the saved data structure, decrementing the reference count on the vector
This problem does not occur in Linux. |
Looks like I found where the problem exists.
If we allow this to execute in WIN32, then, the reference count get completely messed up in the file,
However, skipping the
|
This is interesting ... skipping the execution of function
we get this in Windows
however, we get
where not only the reference count for the vector (4,5) is wrong, |
Looks like the problem with the K data file has is not caused by the function
then
Making similar changes in Windows gets us
|
In Windows
This shows that the file is created correctly.
|
In Linux, it is relatively straightforward to check on the status of the saved file at any point in the command stream in the read step.
Then we get this, showing that the file is not corrupt.
Howver, these changes do not work in Windows, and I haven't yet found a method that allows checking the file at an arbitrary point in the command stream in Windows. |
If we use
then file.l is OK
If we allow
then file.l get corrupted on line 040
If we simply prevent
then
|
This is interesting (done on a Windows computer with no mods to current Kona code):
The time is 13:17 |
Using Windows version and making this change
we see that x->_c gets set to 262, and we get the wrong result (0601) in line 0040
making this change
We see that if x->_c is set to 1, then we get the correct result
So, on the face of it, the 262 seems to be the problem ... in Windows. |
However ... making the same changes in Linux
we see that 262 works fine
Setting x->_c to 1 also works fine
In fact, setting x->_c to any value at all (like 1111) works fine.
Furthermore, skipping
|
In fact, if we continue to suppress mrc, but exit(0) immediately after, there is no damage.
|
If you make this addition to the code in src/kx.c (to display the result in detail):
Then, in Linux you get
In Windows, you get
The text was updated successfully, but these errors were encountered: