次の HTML は、2.2 エミュレーターと Kindle Fire の組み込み Android ブラウザーをクラッシュさせます。なんで?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>Android Crash Test</title>
</head>
<body>
<p>2012</p>
<p> </p>
<p>L A R I D I A N</p>
<p>Cedar Rapids, Iowa</p>
</body></html>
また、プログラム内から webview オブジェクトをロードすると、webview オブジェクトがクラッシュします。
すべてのピースが重要なようです。「2012」を「test」に置き換えると動作します。ただし、「2012」を別の数字に置き換えると失敗します。
更新: Android ブラウザーで実行すると、ブラウザーが終了し、ランチャーに戻ります。このドキュメントをアプリに読み込んで WebView に表示すると、次の出力が得られます。
04-12 11:01:52.679: I/DEBUG(31284): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
04-12 11:01:52.679: I/DEBUG(31284): Build fingerprint: 'generic/sdk/generic/:2.2/FRF91/43546:eng/test-keys'
04-12 11:01:52.689: I/DEBUG(31284): pid: 15480, tid: 15523 >>> com.mycompany.myapp <<<
04-12 11:01:52.689: I/DEBUG(31284): signal 11 (SIGSEGV), fault addr 00000021
04-12 11:01:52.699: I/DEBUG(31284): r0 00000000 r1 00000000 r2 00000002 r3 00000176
04-12 11:01:52.699: I/DEBUG(31284): r4 00000000 r5 00000001 r6 002bc438 r7 000012d0
04-12 11:01:52.709: I/DEBUG(31284): r8 46d1bd10 r9 41853f1c 10 00247020 fp 41853f18
04-12 11:01:52.719: I/DEBUG(31284): ip 46d1b3f0 sp 46d1b320 lr a8446c55 pc a84c8414 cpsr 00000030
04-12 11:01:52.759: D/MainActivity(15480): onReceivedTitle Android Crash Test
04-12 11:01:52.799: I/ActivityManager(59): Displayed activity com.mycompany.myapp/.MainActivity: 2790 ms (total 2790 ms)
04-12 11:01:52.839: D/MainActivity(15480): onProgressChanged = 50
04-12 11:01:53.649: I/DEBUG(31284): #00 pc 001c8414 /system/lib/libwebcore.so
04-12 11:01:53.659: I/DEBUG(31284): #01 pc 00146c50 /system/lib/libwebcore.so
04-12 11:01:53.719: I/DEBUG(31284): #02 pc 00147404 /system/lib/libwebcore.so
04-12 11:01:53.749: I/DEBUG(31284): #03 pc 00147c6c /system/lib/libwebcore.so
04-12 11:01:53.779: I/DEBUG(31284): #04 pc 001410ca /system/lib/libwebcore.so
04-12 11:01:53.789: I/DEBUG(31284): #05 pc 001414a4 /system/lib/libwebcore.so
04-12 11:01:53.819: I/DEBUG(31284): #06 pc 00132f1a /system/lib/libwebcore.so
04-12 11:01:53.789: I/DEBUG(31284): #05 pc 001414a4 /system/lib/libwebcore.so
04-12 11:01:53.819: I/DEBUG(31284): #06 pc 00132f1a /system/lib/libwebcore.so
04-12 11:01:53.819: I/DEBUG(31284): #07 pc 00053446 /system/lib/libwebcore.so
04-12 11:01:53.839: I/DEBUG(31284): #08 pc 00077d72 /system/lib/libwebcore.so
04-12 11:01:53.839: I/DEBUG(31284): #09 pc 000783e4 /system/lib/libwebcore.so
04-12 11:01:53.869: I/DEBUG(31284): #10 pc 001bb56c /system/lib/libwebcore.so
04-12 11:01:53.869: I/DEBUG(31284): #11 pc 00054dd2 /system/lib/libwebcore.so
04-12 11:01:53.879: I/DEBUG(31284): #12 pc 0005668e /system/lib/libwebcore.so
04-12 11:01:53.909: I/DEBUG(31284): #15 pc 00206782 /system/lib/libwebcore.so
04-12 11:01:53.909: I/DEBUG(31284): #16 pc 00042a64 /system/lib/libwebcore.so
04-12 11:01:53.929: I/DEBUG(31284): #17 pc 00042c46 /system/lib/libwebcore.so
04-12 11:01:53.929: I/DEBUG(31284): #18 pc 001b450e /system/lib/libwebcore.so
04-12 11:01:53.949: I/DEBUG(31284): #19 pc 000551ee /system/lib/libwebcore.so
04-12 11:01:53.969: I/DEBUG(31284): #20 pc 0005520e /system/lib/libwebcore.so
04-12 11:01:53.969: I/DEBUG(31284): #21 pc 0020954a /system/lib/libwebcore.so
04-12 11:01:53.969: I/DEBUG(31284): #22 pc 000565b2 /system/lib/libwebcore.so
04-12 11:01:53.999: I/DEBUG(31284): #23 pc 0020ae0c /system/lib/libwebcore.so
04-12 11:01:53.999: I/DEBUG(31284): #24 pc 0020b318 /system/lib/libwebcore.so
04-12 11:01:54.019: I/DEBUG(31284): #25 pc 0020b37a /system/lib/libwebcore.so
04-12 11:01:54.019: I/DEBUG(31284): #26 pc 0020b4c4 /system/lib/libwebcore.so
04-12 11:01:54.038: I/DEBUG(31284): #27 pc 0020ad18 /system/lib/libwebcore.so
04-12 11:01:54.049: I/DEBUG(31284): #28 pc 0020ac26 /system/lib/libwebcore.so
04-12 11:01:54.058: I/DEBUG(31284): #29 pc 0008d93a /system/lib/libwebcore.so
04-12 11:01:54.069: I/DEBUG(31284): #30 pc 0008d9e4 /system/lib/libwebcore.so
04-12 11:01:54.098: I/DEBUG(31284): #31 pc 001378fa /system/lib/libwebcore.so
04-12 11:01:54.098: I/DEBUG(31284): code around pc:
04-12 11:01:54.118: I/DEBUG(31284): a84c83f4 6801b510 680b31c8 bd104798 20006943
04-12 11:01:54.118: I/DEBUG(31284): a84c8404 695be001 2b003001 4770d1fb 1c82b510
04-12 11:01:54.118: I/DEBUG(31284): a84c8414 065a7fd3 6a43d502 d1112b00 42882300
04-12 11:01:54.118: I/DEBUG(31284): a84c8424 6983d00e d10b2b00 d0092800 2a006982
04-12 11:01:54.118: I/DEBUG(31284): a84c8434 2900d108 68c4d002 d003428c e7f368c0
04-12 11:01:54.118: I/DEBUG(31284): code around lr:
04-12 11:01:54.118: I/DEBUG(31284): a8446c34 00000c94 00001254 00000175 fff22041
04-12 11:01:54.128: I/DEBUG(31284): a8446c44 d05e2d00 1c204f6a 21009701 fbdef081
04-12 11:01:54.128: I/DEBUG(31284): a8446c54 d02f2800 7fcc1c81 d40006a2 9c00e0bc
04-12 11:01:54.138: I/DEBUG(31284): a8446c64 6ac39f15 681259e2 d0234293 68946899
04-12 11:01:54.138: I/DEBUG(31284): a8446c74 d10342a1 68d268df d01b4297 9f149c00
04-12 11:01:54.138: I/DEBUG(31284): stack:
04-12 11:01:54.138: I/DEBUG(31284): 46d1b2e0 00000000
04-12 11:01:54.138: I/DEBUG(31284): 46d1b2e4 00000000
04-12 11:01:54.138: I/DEBUG(31284): 46d1b2e8 00000000
04-12 11:01:54.138: I/DEBUG(31284): 46d1b2ec 002bc3a4 [heap]
04-12 11:01:54.138: I/DEBUG(31284): 46d1b2f0 00000000
04-12 11:01:54.138: I/DEBUG(31284): 46d1b2f4 00000000
04-12 11:01:54.138: I/DEBUG(31284): 46d1b2f8 00000000
04-12 11:01:54.138: I/DEBUG(31284): 46d1b2fc 00000001
04-12 11:01:54.148: I/DEBUG(31284): 46d1b300 00000020
04-12 11:01:54.148: I/DEBUG(31284): 46d1b304 00000000
04-12 11:01:54.198: I/DEBUG(31284): 46d1b308 a8670849 /system/lib/libwebcore.so
04-12 11:01:54.198: I/DEBUG(31284): 46d1b30c fffab914
04-12 11:01:54.228: I/DEBUG(31284): 46d1b310 46d1b384
04-12 11:01:54.228: I/DEBUG(31284): 46d1b314 00000000
04-12 11:01:54.228: I/DEBUG(31284): 46d1b318 df002777
04-12 11:01:54.228: I/DEBUG(31284): 46d1b31c e3a070ad
04-12 11:01:54.228: I/DEBUG(31284): #00 46d1b320 00000000
04-12 11:01:54.228: I/DEBUG(31284): 46d1b324 a8446c55 /system/lib/libwebcore.so
04-12 11:01:54.228: I/DEBUG(31284): #01 46d1b328 a8742090 /system/lib/libwebcore.so
04-12 11:01:54.228: I/DEBUG(31284): 46d1b32c 000012d0
04-12 11:01:54.228: I/DEBUG(31284): 46d1b330 00000000
04-12 11:01:54.228: I/DEBUG(31284): 46d1b334 46d1b72c
04-12 11:01:54.238: I/DEBUG(31284): 46d1b338 00000000
04-12 11:01:54.238: I/DEBUG(31284): 46d1b33c 00000000
04-12 11:01:54.238: I/DEBUG(31284): 46d1b340 00000001
04-12 11:01:54.238: I/DEBUG(31284): 46d1b344 00000000
04-12 11:01:54.238: I/DEBUG(31284): 46d1b348 002c4320 [heap]
04-12 11:01:54.259: I/DEBUG(31284): 46d1b34c 002875d4 [heap]
04-12 11:01:54.259: I/DEBUG(31284): 46d1b350 00000001
04-12 11:01:54.259: I/DEBUG(31284): 46d1b354 00000000
04-12 11:01:54.259: I/DEBUG(31284): 46d1b358 00000000
04-12 11:01:54.259: I/DEBUG(31284): 46d1b35c 00000000
04-12 11:01:54.278: I/DEBUG(31284): 46d1b360 00000000
04-12 11:01:54.278: I/DEBUG(31284): 46d1b364 00000000
04-12 11:01:54.278: I/DEBUG(31284): 46d1b368 00000000
04-12 11:01:54.278: I/DEBUG(31284): 46d1b36c 00000001
04-12 11:01:54.278: I/DEBUG(31284): 46d1b370 00000000
04-12 11:01:54.278: I/DEBUG(31284): 46d1b374 0027c0c8 [heap]
04-12 11:01:54.278: I/DEBUG(31284): 46d1b378 00001254
04-12 11:01:54.278: I/DEBUG(31284): 46d1b37c 00000c94
04-12 11:01:54.278: I/DEBUG(31284): 46d1b380 00000000
04-12 11:01:54.278: I/DEBUG(31284): 46d1b384 00000000
04-12 11:01:54.278: I/DEBUG(31284): 46d1b388 00000000
04-12 11:01:54.278: I/DEBUG(31284): 46d1b38c 00000000
04-12 11:01:54.278: I/DEBUG(31284): 46d1b390 00000000
04-12 11:01:54.288: I/DEBUG(31284): 46d1b394 00000004
04-12 11:01:54.288: I/DEBUG(31284): 46d1b398 00000000
04-12 11:01:54.288: I/DEBUG(31284): 46d1b39c 00000000
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3a0 0000000b
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3a4 00000001
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3a8 00000000
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3ac 00000000
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3b0 002bc3a4 [heap]
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3b4 002bc3a4 [heap]
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3b8 002bc3a4 [heap]
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3bc 002bc3a4 [heap]
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3c0 002bc3a4 [heap]
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3c4 002bc3a4 [heap]
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3c8 002bc3a4 [heap]
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3cc 002bc3a4 [heap]
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3cc 002bc3a4 [heap]
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3d0 002bc44c [heap]
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3d4 002bc44c [heap]
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3d8 002bc44c [heap]
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3dc 00000000
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3e4 00000000
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3e8 00000000
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3ec 00000000
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3f0 002bc3a4 [heap]
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3f4 002bc3a8 [heap]
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3f8 002bc3ac [heap]
04-12 11:01:54.288: I/DEBUG(31284): 46d1b3fc 002bc3b0 [heap]
04-12 11:01:54.288: I/DEBUG(31284): 46d1b400 002bc3b4 [heap]
04-12 11:01:54.288: I/DEBUG(31284): 46d1b404 002bc3b8 [heap]
04-12 11:01:54.288: I/DEBUG(31284): 46d1b408 002bc3bc [heap]
04-12 11:01:54.288: I/DEBUG(31284): 46d1b40c 002bc3c0 [heap]
04-12 11:01:54.288: I/DEBUG(31284): 46d1b410 002bc44c [heap]
04-12 11:01:54.288: I/DEBUG(31284): 46d1b414 002bc458 [heap]
04-12 11:01:54.338: I/DEBUG(31284): 46d1b418 002bc468 [heap]
04-12 11:01:54.338: I/DEBUG(31284): 46d1b41c 00000000
04-12 11:01:54.338: I/DEBUG(31284): 46d1b420 00000000
04-12 11:01:54.338: I/DEBUG(31284): 46d1b424 00000000
04-12 11:01:54.338: I/DEBUG(31284): 46d1b428 00000000
04-12 11:01:54.338: I/DEBUG(31284): 46d1b42c 00000000
04-12 11:01:54.338: I/DEBUG(31284): 46d1b430 002bc3a6 [heap]
04-12 11:01:54.348: I/DEBUG(31284): 46d1b434 002bc3aa [heap]
04-12 11:01:54.348: I/DEBUG(31284): 46d1b438 002bc3ae [heap]
04-12 11:01:54.348: I/DEBUG(31284): 46d1b43c 002bc3b2 [heap]
04-12 11:01:54.348: I/DEBUG(31284): 46d1b440 002bc3b6 [heap]
04-12 11:01:54.348: I/DEBUG(31284): 46d1b444 002bc3ba [heap]
04-12 11:01:54.348: I/DEBUG(31284): 46d1b448 002bc3be [heap]
04-12 11:01:54.348: I/DEBUG(31284): 46d1b44c 002bc3c2 [heap]
04-12 11:01:54.348: I/DEBUG(31284): 46d1b450 002bc456 [heap]
04-12 11:01:54.348: I/DEBUG(31284): 46d1b454 002bc466 [heap]
04-12 11:01:54.378: I/DEBUG(31284): 46d1b458 002bc470 [heap]
04-12 11:01:54.378: I/DEBUG(31284): 46d1b45c 00000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b460 00000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b464 00000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b468 00000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b46c 00000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b470 002bc3a4 [heap]
04-12 11:01:54.378: I/DEBUG(31284): 46d1b474 002bc3a8 [heap]
04-12 11:01:54.378: I/DEBUG(31284): 46d1b478 002bc3ac [heap]
04-12 11:01:54.378: I/DEBUG(31284): 46d1b47c 002bc3b0 [heap]
04-12 11:01:54.378: I/DEBUG(31284): 46d1b480 002bc3b4 [heap]
04-12 11:01:54.378: I/DEBUG(31284): 46d1b484 002bc3b8 [heap]
04-12 11:01:54.378: I/DEBUG(31284): 46d1b488 002bc3bc [heap]
04-12 11:01:54.378: I/DEBUG(31284): 46d1b48c 002bc3c0 [heap]
04-12 11:01:54.378: I/DEBUG(31284): 46d1b490 002bc44c [heap]
04-12 11:01:54.378: I/DEBUG(31284): 46d1b494 002bc458 [heap]
04-12 11:01:54.378: I/DEBUG(31284): 46d1b498 002bc468 [heap]
04-12 11:01:54.378: I/DEBUG(31284): 46d1b49c 00000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4a0 00000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4a4 00000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4a4 00000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4a8 00000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4b0 00000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4b4 0000000a
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4b8 0000000a
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4bc 0000000f
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4c0 00000005
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4c4 00000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4c8 a8670360 /system/lib/libwebcore.so
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4cc 00000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4d0 00000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4d4 00000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4d8 00000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4dc 00000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4e0 00000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4e4 00000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4e8 00000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4ec 46d1b4cc
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4f0 00000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4f4 01000020
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4f8 00010100 [heap]
04-12 11:01:54.378: I/DEBUG(31284): 46d1b4fc a830c7af /system/lib/libwebcore.so
04-12 11:01:54.378: I/DEBUG(31284): 46d1b500 46d1b50c
04-12 11:01:54.378: I/DEBUG(31284): 46d1b504 46d1b654
04-12 11:01:54.378: I/DEBUG(31284): 46d1b508 00000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b50c 00000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b510 41000000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b514 41800000
04-12 11:01:54.378: I/DEBUG(31284): 46d1b518 46d1b654
04-12 11:01:54.378: I/DEBUG(31284): 46d1b51c 0027c0c8 [heap]
04-12 11:01:54.429: I/DEBUG(31284): 46d1b520 002c4320 [heap]
04-12 11:01:54.429: I/DEBUG(31284): 46d1b524 002bbd88 [heap]
04-12 11:01:54.429: I/DEBUG(31284): 46d1b528 46d1b7d4
04-12 11:01:54.429: I/DEBUG(31284): 46d1b52c a8447409 /system/lib/libwebcore.so
04-12 11:01:57.099: D/Zygote(33): Process 15480 terminated by signal (11)
04-12 11:01:57.118: I/ActivityManager(59): Process com.mycompany.myapp (pid 15480) has died.
04-12 11:01:57.148: I/WindowManager(59): WIN DEATH: Window{45103a20 com.mycompany.myapp/com.mycompany.myapp.MainActivity paused=false}
04-12 11:01:57.248: I/UsageStats(59): Unexpected resume of com.android.launcher while already resumed in com.mycompany.myapp
04-12 11:01:57.288: W/InputManagerService(59): Got RemoteException sending setActive(false) notification to pid 15480 uid 10036