#1321: Collisions in executable cache directory -------------------------+-------------------------------------------------- Reporter: hinder | Owner: eschnett Type: defect | Status: new Priority: minor | Milestone: Component: SimFactory | Version: development version Resolution: | Keywords: -------------------------+-------------------------------------------------- Changes (by knarf):
* priority: major => minor
Comment:
Looking through the code it seems to me that simfactory checks whether the srcfile has the same size as the cached file. This is likely false for two configurations, but not necessarily so (say, you compile the same thorns using the same configuration, but change just one little detail which just happens to not change the compiled code size, say a hard-coded number, a hard-coded parameter maybe?). simfactory also looks at the mtime of srcfile and the cached file, but treats files as equal if src.mtime <= dst.mtime, so with a certain order of building and sim-creation you can 'hit' this.
So yes, it is probably not 'major' since hitting this bug is not all that likely (and I'll downgrade the ticket because of that), but _if_ you hit it, results will be quite surprising.