谷歌开发团队犯低级错误?因一个字符拼写Bug,Chromebook用户被锁在系统之外

{"type":"doc","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"近日,Google在短暂上线了一版 Chrome OS 更新后又迅速将其撤掉,原因是某行代码里少打的一个 & 字符导致系统无法解密登录信息,大量用户也因此被锁在了系统之外。虽然官方已推出修复更新,但不少人都遭受了损失。"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"Chrome OS又出大Bug"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"自从Google推出了Chrome OS 91,就因为各种Bug没少折腾。据 Android Police 报道,继此前有不少用户宣称设备在升级到 91.0.4472.147 后导致CPU占用率太高、Google取消更新并让所有人回滚到 91.0.4472.114 却引发用户无法安装Linux的问题之后,近日 91.0.4772.165 的到来让用户陷入了更糟糕的境地。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"link","attrs":{"href":"https:\/\/www.reddit.com\/r\/chromeos\/comments\/oniply\/warning_the_latest_stable_update_is_stopping\/","title":"","type":null},"content":[{"type":"text","text":"ChromeOS subreddit"}]},{"type":"text","text":"的一位版主最近透露这个新的 Chrome OS 更新存在严重Bug,该更新将用户锁在他们的 Chromebook 之外,用户根本没法正常使用。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"一位Reddit用户报告说,他们的两台 Chromebook 登录界面不再接受他们的密码——有一台笔记本电脑陷入开机循环,而另一部Asus Chromebook C436,即使采用Powerwash(Chromebook 上存储的所有本地用户数据都可以通过重设为原始出厂状态清除)措施也无法挽救,最终他们不得不动用 U 盘来让系统恢复到可用的状态。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https:\/\/static001.geekbang.org\/infoq\/0e\/0efbded63f12d8d14c3bf0c9c26aeed4.png","alt":null,"title":null,"style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"总而言之,这个有问题的 91.0.4772.165 版本更新导致大量用户重要文件丢失,很多用户对此感到愤怒。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"我们无法确定这个错误是如何通过了三个开发者版本并进入稳定版本的。这次整个事件凸显了Google对其 Chrome OS 版本缺乏质量控制的问题。"}]},{"type":"heading","attrs":{"align":null,"level":2},"content":[{"type":"text","text":"修复"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"在破坏了一堆 Chromebook 之后,谷歌最终撤回了 91.0.4472.165 版本,将Chrome设备回滚到 91.0.4472.147。谷歌事后澄清说,该团队已经确定了问题,并将于7月21日发布修复程序。而对于担心丢失数据的受影响用户来说,若能等到当天设备自动更新,就能够再次登录而无需进行Powerwash。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https:\/\/static001.geekbang.org\/infoq\/eb\/eb8614d7b18ea9118d7b1a2436c6c907.png","alt":null,"title":null,"style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"所以到底发生了什么事?多亏了Reddit上一位眼尖的用户,我们才知道一个非常简单的拼写错误似乎就是导致如此多用户无法使用 Chromebook 的原因。通过查看两版更新代码"},{"type":"link","attrs":{"href":"https:\/\/chromium-review.googlesource.com\/c\/chromiumos\/platform2\/+\/3039560\/2\/cryptohome\/vault_keyset.cc#b471","title":"xxx","type":null},"content":[{"type":"text","text":"文件"}]},{"type":"text","text":"中的差异,我们可以看到是由于Google忘记在条件语句中添加第二个“&”,导致Chrome OS无法解密登录信息(登录时需要)。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"blockquote","content":[{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"C++中的“AND”运算符正确写法是“&&”,但出现Bug的版本中只写了单个“&”。"}]}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"image","attrs":{"src":"https:\/\/static001.geekbang.org\/infoq\/e3\/e3d465f4fdad677389e74dd9c85be5b5.png","alt":null,"title":null,"style":[{"key":"width","value":"75%"},{"key":"bordertype","value":"none"}],"href":null,"fromPaste":true,"pastePass":true}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"对于用户而言,虽然定期创建重要文件的备份是有必要的,但Chromebook也不应该以这种方式“强迫”用户删除本地文件,这对于Google来说是个应该反思的问题。目前,Google已推出修复程序,"},{"type":"link","attrs":{"href":"https:\/\/cros.tech\/table\/","title":"xxx","type":null},"content":[{"type":"text","text":"Chrome OS 91.0.4772.167"}]},{"type":"text","text":"现在可以在更新的服务器上使用。使用新版本,Chrome OS能够解密用户帐户和进行登录,从而允许访问重要文件。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"即使是今天的Google,也无法避免像错字这种低级Bug的出现。京东技术专家胡蜂曾总结道,人人都会犯粗心大意的错误,因为这就是 “人” 这个系统的普遍固有缺陷(Bug)之一。所以,作为人的程序员一定会犯一些非常低级的、因为粗心大意而导致的 Bug。这就好比写文章、写书都会有错别字,即使经历过三审三校后正式出版的书籍,都无法完全避免错别字的存在。而程序中也有这类 “错别字” 类型的低级错误,比如:条件if 后面没有大括号导致的语义变化,==、= 和 === 的数量差别,++ 或-- 的位置,甚至 ; 的有无在某些编程语言中带来的语义差别。即使通过反复检查也可能有遗漏,而自己检查自己的代码会更难发现这些缺陷,这和自己不容易发现自己的错别字是一个道理。"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null}},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"text","text":"参考链接:"}]},{"type":"paragraph","attrs":{"indent":0,"number":0,"align":null,"origin":null},"content":[{"type":"link","attrs":{"href":"https:\/\/www.androidpolice.com\/2021\/07\/20\/a-new-chrome-os-91-update-is-breaking-chromebooks-like-a-bull-in-a-china-shop\/","title":"","type":null},"content":[{"type":"text","text":"https:\/\/www.androidpolice.com\/2021\/07\/20\/a-new-chrome-os-91-update-is-breaking-chromebooks-like-a-bull-in-a-china-shop\/"}]}]}]}
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章