2

不敢乱敲了,5个And. 就能让Google Docs崩溃

 2 years ago
source link: https://blog.csdn.net/csdnnews/article/details/124636191
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

不敢乱敲了,5个And. 就能让Google Docs崩溃

original.png
CSDN资讯 newCurrentTime2.png 于 2022-05-07 17:58:49 发布 articleReadEyes2.png 1220

整理 | 章雨铭 责编 | 屠敏
出品 | CSDN(ID:CSDNnews)

Bug千千万,造成Bug的原因也千奇百怪。不久前就有人发现在Google Docs中包含And. And. And. And. And. 会使其崩溃。另外,他还发现这个Bug还只能在and都大写时才会出现,他尝试了"and. and. And. and. And."就没问题。谷歌可能也是“一脸懵”,没有想到这种写法会出现Bug,不过谷歌很快就回复已经修复了这个问题。
在这里插入图片描述

图源谷歌

造成Bug的奇葩写法

还有网友说在Firefox 99.0.1中输入 “And. And. And. And. And.”,然后按Enter键,重新加载页面,会也出现错误。(如下图)
在这里插入图片描述
有的网友“举一反三”,尝试在Google Docs中输入"But. But. But. But. But.",发现也会出现Bug,不过"Or.Or.Or.Or.Or."似乎不能触发这个Bug。还有网友发现其实不止And和But,输入相同格式的Also, Therefore, Anyway,Who, Why, Besides, However都会出现相同的问题。

相信很多人还记得,2017年微信出现的“句号闪退”Bug,只要是大多数品牌安卓手机甚至是部分苹果手机,一旦微信收到或者发送“双位阿拉伯数字+15个中文句号”,就会崩溃然后直接卡死,只能关闭App然后重启。不过大多数人都以此为乐,当时这个Bug都被广大网友“玩疯”了。

这次的五个连续And.导致的Bug,也引发了众多网友的讨论,也有不少网友推测其原因:

众所周知的原因是因为token name会在错误信息中出现在用户面前,所以一些常见的语法错误会产生非常无助的 “Unexpected T_PAAMAYIM_NEKUDOTAYIM” 错误。

这可能只是在一些regex上触发了过多的backtracking。

有网友提到这个错误可能跟语法有关,如果关闭“显示语法建议”,就不会发生崩溃。

你遇到过这个Bug吗?你还遇见过什么奇怪的通过输入特定内容造成的Bug呢,欢迎留言告诉我们。

参考资料:

https://support.google.com/docs/thread/162510194/including-and-and-and-and-and-in-a-google-doc-causes-it-to-crash?hl=en
https://www.pcmag.com/news/want-to-crash-google-docs-just-type-and-five-times
https://news.ycombinator.com/item?id=31277998


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK