Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
vendor,partition: fix panics from uenv #3325
Conversation
zyga
added some commits
May 16, 2017
|
This is great, thank you. We still need to get to the bottom of the issue that @fgimenez is seeing, i.e. we need a dump of the environment that caused this panic (or the binary file). |
|
We traced the issue down to stale vendor.json that contained a reference to uboot-go that was outdated, pre-dating any changes I made in the two follow-up PRs. |
mvo5
merged commit de8ce96
into
snapcore:master
May 16, 2017
2 of 7 checks passed
artful-amd64
autopkgtest running
Details
xenial-amd64
autopkgtest running
Details
xenial-i386
autopkgtest running
Details
yakkety-amd64
autopkgtest running
Details
zesty-amd64
autopkgtest running
Details
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
xenial-ppc64el
autopkgtest finished (success)
Details
zyga
deleted the
zyga:fix/panic-in-ubootenv-open
branch
May 16, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
zyga commentedMay 16, 2017
This branch aims to fix an error reported by @fgimenez during testing on raspberry pi 2/3.
The relevant part of the panic is:
While we don't have the uenv data from the affected devices we suspect this was a data corruption issue and uenv could no longer parse the existing config. In the revision we were using prior to this branch this would cause uenv to panic.
This branch pulls in changes that landed in uboot-go master since last sync, as well as two new improvements that are aimed directly at the issue we discovered mvo5/uboot-go#2 and mvo5/uboot-go#3
The vendor sync is coupled with a small change that makes us use best-effort parser that kindly ignores malformed data without panicking or returning an error. This should hopefully improve reliability in face of certain kinds of data corruption.
Signed-off-by: Zygmunt Krynicki zygmunt.krynicki@canonical.com