<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>jjgod / blog &#187; crash</title>
	<atom:link href="http://blog.jjgod.org/tag/crash/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jjgod.org</link>
	<description>Random notes by Jjgod Jiang.</description>
	<lastBuildDate>Sat, 07 Aug 2010 08:08:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>How to crash your iTunes</title>
		<link>http://blog.jjgod.org/2008/08/04/how-to-crash-your-itunes/</link>
		<comments>http://blog.jjgod.org/2008/08/04/how-to-crash-your-itunes/#comments</comments>
		<pubDate>Mon, 04 Aug 2008 08:05:28 +0000</pubDate>
		<dc:creator>jjgod</dc:creator>
				<category><![CDATA[Miscs]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[itunes]]></category>

		<guid isPermaLink="false">http://blog.jjgod.org/?p=232</guid>
		<description><![CDATA[刚刚发现了一个保证 iTunes 能 crash 的方法，屡试不爽，如下。 创建一个叫做 proxy.pac 的文件 (名字随便起)，内容是: function FindProxyForURL(url, host) { if (isInNet(host, "72.32.231.8", "255.255.255.0")) return "SOCKS 127.0.0.1:7777"; return "DIRECT"; } 这是一个完全合法的代理服务器自动配置文件。 打开 System Preferences -> Network -> Advanced -> Proxies，选择 Configure Proxies: Using a PAC file, 然后在 PAC file url 中填入上面创建的这个 proxy.pac 文件的路径。 打开 iTunes，访问 iTunes Store，每次 iTunes 都会这样崩溃掉: Thread 7 Crashed: [...]]]></description>
			<content:encoded><![CDATA[<p>刚刚发现了一个保证 iTunes 能 crash 的方法，屡试不爽，如下。</p>

<p>创建一个叫做 proxy.pac 的文件 (名字随便起)，内容是:</p>

<pre><code>function FindProxyForURL(url, host)
{
    if (isInNet(host, "72.32.231.8", "255.255.255.0")) 
        return "SOCKS 127.0.0.1:7777";
    return "DIRECT";
}
</code></pre>

<p><span id="more-232"></span></p>

<p>这是一个完全合法的<a href="http://en.wikipedia.org/wiki/Proxy_auto-config">代理服务器自动配置文件</a>。</p>

<p>打开 System Preferences -> Network -> Advanced -> Proxies，选择 Configure Proxies: Using a PAC file, 然后在 PAC file url 中填入上面创建的这个 proxy.pac 文件的路径。</p>

<p>打开 iTunes，访问 iTunes Store，每次 iTunes 都会这样崩溃掉:</p>

<pre><code>Thread 7 Crashed:
0   com.apple.JavaScriptCore        0x946f2940 WTF::fastRealloc(void*, unsigned long) + 3680
1   com.apple.JavaScriptCore        0x9476a2f2 KJS::ArrayInstance::put(KJS::ExecState*, 
unsigned int, KJS::JSValue*) + 1346
...
7   com.apple.JavaScriptCore        0x9473ab0c JSObjectCallAsFunction + 220
8   com.apple.CFNetwork             0x91db848a CallFindProxyForURL + 297
9   com.apple.CFNetwork             0x91dba4d9 executionContextPerform + 177
10  com.apple.CoreFoundation        0x94062615 CFRunLoopRunSpecific + 3141
11  com.apple.CoreFoundation        0x94062d54 CFRunLoopRun + 84
12  com.apple.iTunes                0x00281521 0x1000 + 2622753
13  com.apple.iTunes                0x002818b4 0x1000 + 2623668
14  com.apple.iTunes                0x0020b47c 0x1000 + 2139260
15  libSystem.B.dylib               0x965f16f5 _pthread_start + 321
16  libSystem.B.dylib               0x965f15b2 thread_start + 34
</code></pre>

<p>看起来像是 Safari 4 Preview 带来的问题。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jjgod.org/2008/08/04/how-to-crash-your-itunes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
