ok....knowing the problem it was also easy to produce a chd file appearing in your sample path and s7.z7 from sauro (see
https://www.emulab.it/forum/index.php?topic=9934.0) appearing your rompath.
Ok...what's happening? Well, if you have an archive in an archive in your addpaths or the backup folder (and if that one is ticked as "incl. as addpath), clrmame decompresses it to a tempfolder. In the sauro case your have s7.7z (a file not an archive) inside a zipfile, but until you check it you don't know if it is a valid archive. So, if you got a look-a-like archive inside an archive, clrmame unpacks it to a temporary folder which is a folder inside %TEMP% (or you specified an own one). By default it takes a subfolder path which is named like the file, so e.g. "sauro". If that folder already exists, it adds a random number and tests again....and again....and again...up to 10 times. You would think that randomly added values should be fine...well...yes...if the seed is initialized correctly....and in that case it wasn't, so during one clrmame session you get the same numbers again and again, which lets the tempfolder determination fail after a while (it works for sauro 10 times....so yeah...took a time to repeat it). If the 10th tempfolder directory failed, it wasn't able to to get a good folder to unpack and unfortunately it didn't produce an error there but continued and took an empty string as prefered unpack folder....which is the current path. So depending on what the current path at that point in time was (either rom, sample or clrmame application path), it unpacked files there.
So you see....to trigger this, you needed archives in archives in your add or backupaths, plus you needed to scan > 10 times to get the temp dirs created....
wow...finally solved this mystery. Guess I will do a 0.5.3 version for that one, even if 99,9% of user never ever experienced something like that....