[U-Boot] CTRL-C hangs after "hush: fix segfault on syntax error"

Simon Glass sjg at chromium.org
Thu Nov 20 17:49:35 CET 2014


Hi Stephen,

On 20 November 2014 05:21, Stephen Warren <swarren at 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


More information about the U-Boot mailing list