-
Notifications
You must be signed in to change notification settings - Fork 70
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
Add functionality for MR metadata reading from SAV #313
Add functionality for MR metadata reading from SAV #313
Conversation
See failing builds also
|
@evanmiller I think it's fixed now. |
@slobodan-ilic Thanks for addressing the build issues. However, it looks like CI Fuzzer uncovered a segfault. From a cursory read of the code, it appears that |
019f4a6
to
850f0df
Compare
Hi @evanmiller, thanks for all the input. We've done a couple of iterations and a bunch of testing on real-life survey data. All of the small bugs are taken care of, no more nasty segfaults, etc. Are you available to do one more round of review and provide some guidance? |
7768183
to
0a83ade
Compare
Another short update: managed to run fuzzers locally (even though the documentation didn't work in a straightforward path). After managing to produce a crash locally - identified and fixed the bug (which seemed obvious once discovered). Should be in much better shape now. |
Hi, CI is still producing a fuzz failure. Also please see the Windows build failure (looks simple). |
c074f51
to
ec778f5
Compare
I've just detected the other fuzz failure as you were writing... Should be fixed now. About the windows tho, are you referring to the errors with Maybe I should try opening the PR against update: Well I just tried with master too (as a separate commit which I later deleted). Was the same error about sav date, all red in the appveyor run, but it said the tests passed. Unknown land to me :) |
430b30f
to
ec778f5
Compare
Found another issue with fuzzer, this time it's an OOM. On it, will ping when done. |
For Windows I am referring to the failed CI
|
815d40d
to
de0551c
Compare
I think the spawnv/_spawnv Windows build issue is a problem in master so you don't need to worry about it! |
55ffacc
to
5fceabb
Compare
It looks like the fuzzer detected a memory leak https://github.com/WizardMac/ReadStat/actions/runs/10946324658/job/30395085028?pr=313 |
Thx, will check over the weekend... |
Merged! |
wow!!! Thanks @evanmiller ❤️ |
This PR adds functionality for reading multiple response metadata from sav files. It's been tested on a simple file that we use for PoC in Crunch.io. It's a work in progress, I'm available for any updates and changes that need to be done to it.
UPDATE: Running this function with a test file succeeds a small portion of the tires. However it throws segfaults on most tries, I can't really track it down, so any guidance on that more than welcome as well.
Here's the example on how I tried testing it:
And here's the example file:
simple_alltypes.sav.zip
This is the output from when it succeeds:
and this one is when it fails (which happens more often):