checkpoint-restore / criu-image-streamer

Enables streaming of images to and from CRIU during checkpoint/restore with low overhead
86 stars 12 forks source link

'main' panicked at 'Image file tmpfs-dev-80.tar.gz.img is being overwritten #8

Closed rst0git closed 2 years ago

rst0git commented 2 years ago
sudo python3 zdtm.py run --stream -t zdtm/static/mntns_link_ghost

=================== Run zdtm/static/mntns_link_ghost in uns ====================
Start test
Test is SUID
./mntns_link_ghost --pidfile=mntns_link_ghost.pid --outfile=mntns_link_ghost.out --dirname=mntns_link_ghost.test
Run criu-image-streamer in capture mode
Run criu dump
Run criu-image-streamer in extract mode
Run criu-image-streamer in serve mode
thread 'main' panicked at 'Image file tmpfs-dev-80.tar.gz.img is being overwritten', src/image_store/mem.rs:67:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
 Test zdtm/static/mntns_link_ghost FAIL at criu-image-streamer is not starting (exit_code=101) 
##################################### FAIL #####################################
rst0git commented 2 years ago

@nviennot it looks like commit https://github.com/checkpoint-restore/criu-image-streamer/commit/54da6c67c2968b924f667711c3d966992e04b654 has broken checkpoint/restore with ghost files.

nviennot commented 2 years ago

So sorry, pushed a commit to revert this. I didn't think CRIU would want to overwrite files :)

nviennot commented 2 years ago

Thank you @rst0git for reporting the bug