lnln1111 / ipv6-hosts

Automatically exported from code.google.com/p/ipv6-hosts
0 stars 0 forks source link

google中文搜索导致浏览器崩溃 #89

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
直接在地址栏进行google中文搜索(国内都是默认重定向到hk)
,在不少搜索字符串下会导致浏览器直接崩溃,chrome 
v14/firefox v6都是如此 (IE8则没有)。
比如地址栏直接“guao”,100%崩溃。
网上搜索了一下,貌似这种情况是hosts某些地址造成的,现在
还无法定位到具体是哪些地址。
Ps:今天上午突然出现的。

Original issue reported on code.google.com by jimdavid...@gmail.com on 20 Sep 2011 at 9:16

GoogleCodeExporter commented 9 years ago
现在自动完成功能涉及到的域名只有 www.google.com.hk 跟 
www.google.com

Original comment by xslidian on 20 Sep 2011 at 9:34

GoogleCodeExporter commented 9 years ago
Plus: 清空hosts后没有再崩溃

Original comment by jimdavid...@gmail.com on 20 Sep 2011 at 9:34

GoogleCodeExporter commented 9 years ago
可以确定是hosts文件的问题。我重复了使用空hosts文件和ipv6 
hosts文件,使用空hosts文件时,在地址栏直接搜索会等待很长�
��段时间才有结果出来;而使用ipv6 
hosts则马上返回结果并同时浏览器完全崩溃。现象可以重现。

另外:是在地址栏搜索而不是自动完成。不知道是不是hk的某
个子域名被墙的原因。

Original comment by jimdavid...@gmail.com on 20 Sep 2011 at 9:45

GoogleCodeExporter commented 9 years ago
Omnibox 跟自动完成使用同一个 API
域名要么是 www 要么是 clients*

这个项目只能确保所有地址是官方的 
对返回的数据控制不能...
感兴趣的话可以尝试到 chrome://net-internals/#export 
导出日志什嘛的(打开该页即开始记录 
记录过程中不要浏览其他网站 以免泄露隐私)

Original comment by xslidian on 20 Sep 2011 at 10:02

GoogleCodeExporter commented 9 years ago
经过调试,现已确定是由hosts列表里大量冲突的域名解析造成
的,我写了个程序检测了一下,ipv6 
hosts的6000+条记录里有1800+是冲突的(域名相同,地址不同)��
�不过没办法确定具体是哪条导致chrome崩溃的,导出日志试了�
��下,但是崩溃的太彻底了,日志没有记录下来。
把冲突的域名清理之后就没再发生浏览器崩溃了。
提供一个Matlab源码对hosts文件中的冲突域名进行清理(默认是
将冲突的行注释掉),具体参见readme.txt

Original comment by jimdavid...@gmail.com on 21 Sep 2011 at 11:46

Attachments:

GoogleCodeExporter commented 9 years ago
应该是操作系统的问题吧 目前测试 Win 7 / Ubuntu 
都能正常进行一对多的本地解析

脚本已收录于 HostsTools

Original comment by xslidian on 21 Sep 2011 at 12:21