I took a chunk of data from my saved vars and put it in an add-on that throws several copies of that data into saved vars. Here's the add-on:
svFailTest.7z
Here are the steps I used to get corrupted saved vars:
- disable all other add-ons, enable svFailTest (no saved vars file yet)
- login
- /svfail
- /reloadui
- check SavedVariables/svFailTest.lua: mine has 118715 lines / 21802807 bytes
- /reloadui
- check SavedVariables/svFailTest.lua:
- if empty (this is an error, too), go to step 3.
- otherwise look for the string "svFailTestSV"
for me the corrupted file has 118715 lines / 21595305 bytes (~200k less), and the corruption starts at line 115950