[Galaxy S I9000 Android Development] revthanki:
Bug report - wifi disconnect followed by crash

just had a wifi disconnect followed by crash, luckily had logcat running at the time.

the wifi disconnection event looked like this:

I/ActivityManager( 229): START {act=android.intent.action.MAIN cat=[android.intent.category.HOME] flg=0x10200000 cmp=co
m.cyanogenmod.trebuchet/.Launcher} from pid 229
D/dalvikvm( 229): GC_FOR_ALLOC freed 1154K, 17% free 16227K/19335K, paused 61ms
D/OpenGLRenderer( 2690): Flushing caches (mode 0)
W/IInputConnectionWrapper( 476): showStatusIcon on inactive InputConnection
W/InputManagerService( 229): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Pro
xy@41810f50 (uid=10085 pid=2690)
D/OpenGLRenderer( 2690): Flushing caches (mode 1)
I/ActivityManager( 229): No longer want com.google.android.googlequicksearchbox (pid 2423): hidden #16
I/ActivityManager( 229): START {flg=0x10000000 cmp=com.mhuang.overclocking/.Setcpu bnds=[0,567][123,696]} from pid -1
D/OpenGLRenderer( 476): Flushing caches (mode 0)
V/PhoneStatusBar( 305): setLightsOn(true)
D/OpenGLRenderer( 476): Flushing caches (mode 1)
D/dalvikvm( 2193): GC_FOR_ALLOC freed 389K, 7% free 10239K/10951K, paused 16ms
D/WifiHW ( 229): 'SIGNAL_POLL' command timed out.
D/WifiHW ( 229): Received on exit socket, terminate
D/WifiHW ( 229): wifi_ctrl_recv failed: No such file or directory
D/WifiHW ( 229): Received on exit socket, terminate
D/WifiHW ( 229): wifi_ctrl_recv failed: No such file or directory
D/WifiHW ( 229): Received on exit socket, terminate
D/WifiHW ( 229): wifi_ctrl_recv failed: No such file or directory
D/WifiHW ( 229): Received on exit socket, terminate
D/WifiHW ( 229): wifi_ctrl_recv failed: No such file or directory
D/WifiHW ( 229): Received on exit socket, terminate
D/WifiHW ( 229): wifi_ctrl_recv failed: No such file or directory
D/WifiHW ( 229): Received on exit socket, terminate
D/WifiHW ( 229): wifi_ctrl_recv failed: No such file or directory
D/WifiHW ( 229): Received on exit socket, terminate
D/WifiHW ( 229): wifi_ctrl_recv failed: No such file or directory
D/WifiHW ( 229): Received on exit socket, terminate
D/WifiHW ( 229): wifi_ctrl_recv failed: No such file or directory
D/WifiHW ( 229): Received on exit socket, terminate
D/WifiHW ( 229): wifi_ctrl_recv failed: No such file or directory
D/WifiHW ( 229): Received on exit socket, terminate
D/WifiHW ( 229): wifi_ctrl_recv failed: No such file or directory
D/WifiHW ( 229): Received on exit socket, terminate
D/WifiHW ( 229): wifi_ctrl_recv failed: No such file or directory
D/WifiHW ( 229): 'DRIVER SETSUSPENDOPT 0' command timed out.
E/WifiStateMachine( 229): set suspend optimizations failed!
E/WifiStateMachine( 229): set power mode auto failed!
I/wpa_supplicant( 298): wlan0: CTRL-EVENT-DISCONNECTED bssid=00:26:5a:7e:0e:6f reason=0
E/WifiStateMachine( 229): Connection lost, restart supplicant
D/CommandListener( 157): Clearing all IP addresses on wlan0
D/ConnectivityService( 229): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 229): Attempting to switch to mobile
D/NetUtils( 229): android_net_utils_resetConnections in env=0x13d12f0 clazz=0x43600001 iface=wlan0 mask=0x3
D/ConnectivityService( 229): Attempting to switch to BLUETOOTH_TETHER
D/ConnectivityService( 229): resetConnections(wlan0, 3)
D/ConnectivityService( 229): ConnectivityChange for WIFI: DISCONNECTED/DISCONNECTED
D/ConnectivityService( 229): Attempting to switch to mobile
D/ConnectivityService( 229): Attempting to switch to BLUETOOTH_TETHER
D/NetUtils( 229): android_net_utils_resetConnections in env=0x13d12f0 clazz=0x45200001 iface=wlan0 mask=0x3
D/ConnectivityService( 229): resetConnections(wlan0, 3)
W/Smack/Packet( 364): notify conn break (IOEx), close connection
I/qtaguid ( 364): Failed write_ctrl(u 77) res=-1 errno=22
I/qtaguid ( 364): Untagging socket 77 failed errno=-22
W/NetworkManagementSocketTagger( 364): untagSocket(77) failed with errno -22
D/ConnectivityService( 229): handleInetConditionChange: no active default network - ignore
D/ConnectivityService( 229): ConnectivityChange for mobile: CONNECTED/CONNECTED
D/NetworkPolicy( 229): applying policy NetworkPolicy[NetworkTemplate: matchRule=MOBILE_ALL, subscriberId=valid]: cycleD
ay=9, warningBytes=2147483648, limitBytes=3221225472, lastSnooze=-1 to ifaces [pdp0]
D/ConnectivityService( 229): NetTransition Wakelock for WifiStateMachine released by timeout
D/Tethering( 229): MasterInitialState.processMessage what=3
I/ActivityManager( 229): Start proc android.process.media for broadcast com.android.providers.downloads/.DownloadReceiv
er: pid=2756 uid=10029 gids={1015, 1023, 1024, 2001, 3003, 3007}
D/Tethering( 229): MasterInitialState.processMessage what=3
I/GTalkService/c( 364): [AndroidEndpoint@1094796568] connect: acct=1000000, state=CONNECTING
I/ActivityThread( 2756): Pub downloads: com.android.providers.downloads.DownloadProvider
I/ActivityThread( 2756): Pub drm: com.android.providers.drm.DrmProvider
I/DownloadManager( 2756): in removeSpuriousFiles
I/ActivityThread( 2756): Pub media: com.android.providers.media.MediaProvider
D/dalvikvm( 229): GC_EXPLICIT freed 1326K, 17% free 16206K/19335K, paused 37ms+6ms
I/DownloadManager( 2756): in removeSpuriousFiles, preserving file /mnt/sdcard/Download/sl4a_r4.apk
I/DownloadManager( 2756): in removeSpuriousFiles, preserving file /mnt/sdcard/Download/Swype-Installer-2.apk
I/DownloadManager( 2756): in removeSpuriousFiles, preserving file /mnt/sdcard/Download/Swype-Installer-3.apk
I/DownloadManager( 2756): in removeSpuriousFiles, preserving file /mnt/sdcard/Download/Swype-Installer-4.apk
I/DownloadManager( 2756): in removeSpuriousFiles, preserving file /mnt/sdcard/Download/CMSettings.zip
I/DownloadManager( 2756): in removeSpuriousFiles, preserving file /mnt/sdcard/Download/ICS_4.0.3_r1-RC3-I9000.zip
I/DownloadManager( 2756): in removeSpuriousFiles, preserving file /mnt/sdcard/Download/Wave_Launcher_v1.8.1.apk
I/DownloadManager( 2756): in removeSpuriousFiles, preserving file /mnt/sdcard/Download/teamhacksung_galaxysmtd-ota-eng.B
UILD14.zip
I/DownloadManager( 2756): in removeSpuriousFiles, preserving file /mnt/sdcard/Download/FACT mix 310 - Moon Wiring Club (
Dec '11) - Pt.1.mp3
I/DownloadManager( 2756): in removeSpuriousFiles, preserving file /mnt/sdcard/Download/combined-award-2.pdf
I/DownloadManager( 2756): in removeSpuriousFiles, preserving file /mnt/sdcard/Download/Devil_3.1.9-14.1_BFS_V(R)_LiveOC_
LED.zip
I/DownloadManager( 2756): in removeSpuriousFiles, preserving file /mnt/sdcard/Download/ReidMcConnell.Spectrum.1.9.12.pdf

I/DownloadManager( 2756): in removeSpuriousFiles, preserving file /mnt/sdcard/Download/TitaniumBackup_4.7.4_r238_Market.
apk
I/DownloadManager( 2756): in removeSpuriousFiles, preserving file /mnt/sdcard/Download/CM9-galaxysmtd-Glitch-V14-B1.zip
I/DownloadManager( 2756): in removeSpuriousFiles, preserving file /mnt/sdcard/Download/bootanimation-1.zip
I/DownloadManager( 2756): in removeSpuriousFiles, preserving file /mnt/sdcard/Download/sufix.zip
I/DownloadManager( 2756): in removeSpuriousFiles, preserving file /data/data/com.android.providers.downloads/cache/downl
oadfile.jpeg
I/DownloadManager( 2756): in removeSpuriousFiles, preserving file /data/data/com.android.providers.downloads/cache/downl
oadfile-1.jpeg
I/DownloadManager( 2756): in removeSpuriousFiles, preserving file /mnt/sdcard/Download/PureCalendar288b1.apk
I/DownloadManager( 2756): in removeSpuriousFiles, preserving file /mnt/sdcard/Download/PureCalendar288b2.apk
I/DownloadManager( 2756): in removeSpuriousFiles, preserving file /mnt/sdcard/Download/Devil_1.0_CFS.zip
I/DownloadManager( 2756): in removeSpuriousFiles, preserving file /mnt/sdcard/Download/Devil_1.0_BFS.zip
I/DownloadManager( 2756): in trimDatabase
D/dalvikvm( 2756): GC_CONCURRENT freed 346K, 6% free 9213K/9735K, paused 2ms+8ms
I/ActivityManager( 229): Start proc com.google.android.apps.uploader for broadcast com.google.android.apps.uploader/.Co
nnectivityBroadcastReceiver: pid=2773 uid=10021 gids={3003}
I/dalvikvm( 2773): Turning on JNI app bug workarounds for target SDK version 11...
I/ActivityThread( 2773): Pub com.google.android.apps.uploader: com.google.android.apps.uploader.UploadsContentProvider
I/ActivityThread( 2773): Pub com.google.photos.provider.Album: com.google.android.apps.uploader.clients.picasa.AlbumProv
ider
D/MediaUploader( 2773): UploaderApplication.onCreate
D/MediaUploader( 2773): nonWifiLimit=20971520, default=20971520
I/MediaUploader( 2773): No need to wake up
I/ActivityManager( 229): Start proc com.cyanogenmod.stats for broadcast com.cyanogenmod.stats/.ReportingServiceManager:
pid=2790 uid=10212 gids={3003}
I/ActivityManager( 229): No longer want com.google.android.calendar (pid 2136): hidden #16
D/CMStats ( 2790): CONNECTIVITY_ACTION: noConnectivity = true
I/ActivityManager( 229): Start proc com.alphonso.pulse for broadcast com.alphonso.pulse/.background.ConnectivityReceive
r: pid=2804 uid=10110 gids={3003, 1015}
I/ActivityManager( 229): No longer want com.android.providers.calendar (pid 2046): hidden #16
D/dalvikvm( 160): GC_EXPLICIT freed 37K, 5% free 9058K/9475K, paused 7ms+4ms
D/dalvikvm( 160): GC_EXPLICIT freed <1K, 5% free 9058K/9475K, paused 1ms+1ms
D/dalvikvm( 160): GC_EXPLICIT freed <1K, 5% free 9058K/9475K, paused 1ms+1ms
D/dalvikvm( 2804): GC_CONCURRENT freed 185K, 5% free 9340K/9735K, paused 2ms+1ms
D/dalvikvm( 2804): GC_CONCURRENT freed 356K, 7% free 9438K/10055K, paused 1ms+2ms
D/dalvikvm( 2804): GC_FOR_ALLOC freed 234K, 6% free 9502K/10055K, paused 11ms
I/dalvikvm-heap( 2804): Grow heap (frag case) to 9.728MB for 294346-byte allocation
D/dalvikvm( 2804): GC_FOR_ALLOC freed 191K, 8% free 9598K/10375K, paused 11ms
D/dalvikvm( 2804): GC_FOR_ALLOC freed 129K, 8% free 9598K/10375K, paused 12ms
I/dalvikvm-heap( 2804): Grow heap (frag case) to 9.961MB for 441514-byte allocation
D/dalvikvm( 2804): GC_CONCURRENT freed 287K, 10% free 9742K/10823K, paused 2ms+1ms
D/dalvikvm( 2804): GC_FOR_ALLOC freed 188K, 10% free 9742K/10823K, paused 12ms
I/dalvikvm-heap( 2804): Grow heap (frag case) to 10.313MB for 662266-byte allocation
D/dalvikvm( 2804): GC_CONCURRENT freed 431K, 14% free 9957K/11527K, paused 2ms+2ms
D/dalvikvm( 2804): GC_FOR_ALLOC freed 112K, 14% free 9957K/11527K, paused 11ms
I/dalvikvm-heap( 2804): Grow heap (frag case) to 10.395MB for 527936-byte allocation
D/dalvikvm( 364): GC_CONCURRENT freed 378K, 7% free 9974K/10695K, paused 2ms+2ms
D/dalvikvm( 2804): GC_CONCURRENT freed 0K, 10% free 10473K/11527K, paused 1ms+1ms
D/dalvikvm( 2804): GC_FOR_ALLOC freed 646K, 15% free 9826K/11527K, paused 12ms
I/dalvikvm-heap( 2804): Grow heap (frag case) to 10.267MB for 527936-byte allocation
D/dalvikvm( 2804): GC_FOR_ALLOC freed <1K, 11% free 10342K/11527K, paused 13ms
D/SoftapController( 157): Softap fwReload - Ok
D/CommandListener( 157): Setting iface cfg
D/CommandListener( 157): Trying to bring down wlan0
D/NetworkManagementService( 229): rsp <213 00:26:37:91:ed:e7 0.0.0.0 0 [up broadcast multicast]>
D/NetworkManagementService( 229): flags <[up broadcast multicast]>
D/CommandListener( 157): broadcast flag ignored
D/CommandListener( 157): multicast flag ignored
D/Tethering( 229): InitialState.processMessage what=4
D/Tethering( 229): sendTetherStateChangedBroadcast 0, 0, 0
D/Tethering( 229): MasterInitialState.processMessage what=3
I/ActivityManager( 229): Start proc com.dropbox.android for broadcast com.dropbox.android/.service.DropboxNetworkReceiv
er: pid=2821 uid=10148 gids={3003, 1015}
I/ActivityManager( 229): No longer want com.android.browser (pid 2276): hidden #16
I/wpa_supplicant( 2818): rfkill: Cannot open RFKILL control device
D/Tethering( 229): sendTetherStateChangedBroadcast 1, 0, 0
I/ActivityThread( 2821): Pub com.dropbox.android.provider.SDK: com.dropbox.android.provider.SDKProvider
I/ActivityThread( 2821): Pub com.dropbox.android.ZipperedUploadProvider: com.dropbox.android.provider.ZipperedUploadProv
ider
I/ActivityThread( 2821): Pub com.dropbox.android.UploadLog: com.dropbox.android.provider.UploadLogProvider
I/ActivityThread( 2821): Pub com.dropbox.android.ZipperedMediaProvider: com.dropbox.android.provider.ZipperedMediaProvid
er
I/ActivityThread( 2821): Pub com.dropbox.android.Dropbox: com.dropbox.android.provider.DropboxProvider
I/ActivityThread( 2821): Pub com.dropbox.android.LocalFile: com.dropbox.android.provider.FileSystemProvider
E/WifiConfigStore( 229): Missing id while parsing configuration
E/WifiConfigStore( 229): Missing id while parsing configuration
E/WifiConfigStore( 229): Missing id while parsing configuration
E/WifiConfigStore( 229): Missing id while parsing configuration
E/WifiConfigStore( 229): Missing id while parsing configuration
E/wpa_supplicant( 2818): wpa_driver_nl80211_driver_cmd: failed to issue private commands
E/WifiStateMachine( 229): Failed to set country code gb
E/wpa_supplicant( 2818): wpa_driver_nl80211_driver_cmd: failed to issue private commands
E/WifiStateMachine( 229): Failed to set frequency band 0
W/wpa_supplicant( 2818): wlan0: Failed to initiate AP scan
I/ActivityManager( 229): Start proc com.facebook.katana for broadcast com.facebook.katana/.binding.UploadManagerConnect
ivity: pid=2841 uid=10144 gids={3003, 1015}
I/ActivityManager( 229): No longer want com.bwx.bequick (pid 2455): hidden #16
I/dalvikvm( 2841): Turning on JNI app bug workarounds for target SDK version 7...
D/dalvikvm( 2841): GC_CONCURRENT freed 145K, 4% free 9410K/9735K, paused 2ms+2ms
D/ConnectivityService( 229): handleInetConditionHoldEnd: net=0, condition=100, published condition=0
I/ActivityThread( 2841): Pub com.facebook.katana.provider.LoggingProvider: com.facebook.katana.provider.LoggingProvider
I/ActivityThread( 2841): Pub com.facebook.katana.provider.KeyValueProvider: com.facebook.katana.provider.KeyValueProvide
r
I/ActivityThread( 2841): Pub com.facebook.katana.provider.ChatHistoryProvider: com.facebook.katana.provider.ChatHistoryP
rovider
I/ActivityThread( 2841): Pub com.facebook.katana.provider.CacheProvider: com.facebook.katana.provider.CacheProvider
I/ActivityThread( 2841): Pub com.facebook.katana.provider.MailboxProvider: com.facebook.katana.provider.MailboxProvider
I/ActivityThread( 2841): Pub com.facebook.katana.provider.UserStatusesProvider: com.facebook.katana.provider.UserStatuse
sProvider
I/ActivityThread( 2841): Pub com.facebook.katana.provider.EventsProvider: com.facebook.katana.provider.EventsProvider
I/ActivityThread( 2841): Pub com.facebook.katana.provider.NotificationsProvider: com.facebook.katana.provider.Notificati
onsProvider
I/ActivityThread( 2841): Pub com.facebook.katana.provider.UserValuesProvider: com.facebook.katana.provider.UserValuesPro
vider
I/ActivityThread( 2841): Pub com.facebook.katana.provider.PagesProvider: com.facebook.katana.provider.PagesProvider
I/ActivityThread( 2841): Pub com.facebook.katana.provider.PhotosProvider: com.facebook.katana.provider.PhotosProvider
I/ActivityThread( 2841): Pub com.facebook.katana.provider.ConnectionsProvider: com.facebook.katana.provider.ConnectionsP
rovider
D/ACRA ( 2841): Retrieve application default SharedPreferences.
D/ACRA ( 2841): Set OnSharedPreferenceChangeListener.
D/ACRA ( 2841): ACRA is enabled for com.facebook.katana, intializing...
D/ACRA ( 2841): Looking for error files in /data/data/com.facebook.katana/app_acra-reports
W/wpa_supplicant( 2818): wlan0: Failed to initiate AP scan

the crash looked like this:

W/wpa_supplicant( 3053): wlan0: Failed to initiate AP scan
W/wpa_supplicant( 3053): wlan0: Failed to initiate AP scan
D/dalvikvm( 3221): GC_CONCURRENT freed 359K, 6% free 10100K/10695K, paused 119ms+3ms
W/wpa_supplicant( 3053): wlan0: Failed to initiate AP scan
I/ActivityManager( 229): START {act=android.settings.WIFI_SETTINGS cat=[android.intent.category.DEFAULT] flg=0x10000000
cmp=com.android.settings/.Settings$WifiSettingsActivity} from pid 305
I/ActivityManager( 229): Start proc com.android.settings for activity com.android.settings/.Settings$WifiSettingsActivi
ty: pid=3481 uid=1000 gids={1015, 3002, 3001, 3003}
W/wpa_supplicant( 3053): wlan0: Failed to initiate AP scan
D/OpenGLRenderer( 3126): Flushing caches (mode 1)

running TH 15 and Devil 1.0 BFS Lulzactive, CFQ