I have just recreated this bug on arm using a test program completely unrelated to Upstart and NIH:
loop 2926 of 9999 loop 2927 of 9999 loop 2928 of 9999 loop 2929 of 9999 ERROR: incorrect output: result_string='hello, world ', buffer='hello, world' result_string: 6865 6c6c 6f2c 2077 6f72 6c64 0d0a hello, world\r\n buffer: 6865 6c6c 6f2c 2077 6f72 6c64 hello, world
So, this is looking like a kernel bug to me.
I have just recreated this bug on arm using a test program completely unrelated to Upstart and NIH:
loop 2926 of 9999 string= 'hello, world
loop 2927 of 9999
loop 2928 of 9999
loop 2929 of 9999
ERROR: incorrect output: result_
', buffer='hello, world'
result_string:
6865 6c6c 6f2c 2077 6f72 6c64 0d0a
hello, world\r\n
buffer:
6865 6c6c 6f2c 2077 6f72 6c64
hello, world
So, this is looking like a kernel bug to me.