
20 Nov
2014
20 Nov
'14
5:49 p.m.
Hi Stephen,
On 20 November 2014 05:21, Stephen Warren swarren@wwwdotorg.org wrote:
Rabin,
With 128059b926b3 "hush: fix segfault on syntax error" applied, I find that if I press CTRL-C at the U-Boot prompt, U-Boot hangs. If I revert that commit, CTRL-C works fine (prints CTRL-C and returns to the command prompt).
I'm testing on real HW (rpi_b board), although I don't expect the exact HW matters. This issue doesn't reproduce with sandbox, since CTRL-C now seems to just execute the binary rather than being handled by U-Boot shell.
You can repeat this on sandbox:
./u-boot -t raw
Then Ctrl-C will work (i.e. hang).
This seems bad - as Przemyslaw mentions it hangs in cli_loop(). parse_stream_outer() should not return.
Regards, Simon