On Thu, Jul 07, 2016 at 11:37:38AM +0200, Wjatscheslaw Stoljarski wrote: > Hi Sascha, > > I can reproduce this on barebox 2016.06.0 for example with: > cp /env/data/ansi-colors /env/data/ > But "memcpy -s /env/data/ansi-colors -d /env/data/ansi-colors 0 0" works without problem. > > I try this with next barebox version (2016.07.0). Maybe it's already fixed. Nope, it isn't. So the problem comes when you copy a file over itself. This indeed crashes here aswell. This points to a bug in the ramfs implementation which should be fixed. Also there's another bug in 'cp': copy_file should recognize when source and destination are the same file and report an error in this case. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox