[Galaxy Tab  Android Development] fiber7:
Hi humberos,

Not sure if you had the time to read the posts on the CM10 nightly builds thread related to random reboots some people (including myself) are having.

It seems to be related with the WiFi driver; if WiFi is off reboots do not occur.

I have the logcat and the kernel messages up to the reboot. For some reasons I don't have the /proc/last_kmsg.

I have been suggested to increase the level of debug messages of the kernel, especially to check if the WiFi driver is doing something incorrect when using spinlocks, and to disable the watchdog driver to see if the kernel still reports debug messages after panicking.

Could you please give us an help? I'm happy to do whatever you think could be more useful. Recompile the kernel myself to add the extra debug messages (in this case I will need some help from your side), install a modified extra debug kernel you can provide me or anything else you think it could be useful to fix this problem.

I have the full logcat and kernel message but below you can find just the last bits before the reboot which show that the wlan is having some troubles.

If you need any other information please let me know.

Cheers

Fiber7

Logcat:

11-23 09:25:57.261 W/fb4a:fb:eek:rcaServiceQueue(16909): Caused by: libcore.io.ErrnoException: getaddrinfo failed: ENETUNREACH (Network is unreachable)
11-23 09:25:57.261 W/fb4a:fb:eek:rcaServiceQueue(16909): ... 38 more
11-23 09:26:18.484 W/Gmail (25113): Successful index run, cancel next scheduled index run
11-23 09:26:18.957 E/Trace (25287): error opening trace file: No such file or directory (2)
11-23 09:26:19.070 W/Genie (25287): Cache file not found: java.io.FileNotFoundException: /data/data/com.google.android.apps.genie.geniewidget/cache/genie_iconcache: open failed: ENOENT (No such file or directory)
11-23 09:26:57.000 W/ActivityManager(15570): Scheduling restart of crashed service com.bel.android.dspmanager/.service.HeadsetService in 5000ms
11-23 09:27:02.136 E/Trace (25319): error opening trace file: No such file or directory (2)
11-23 09:27:20.761 W/ActivityManager(15570): Scheduling restart of crashed service org.projectvoodoo.controlapp/.volumes.JackService in 5000ms
11-23 09:27:21.531 W/ThrottleService(15570): unable to find stats for iface pdp0
11-23 09:27:25.890 E/Trace (25332): error opening trace file: No such file or directory (2)
11-23 09:27:26.035 W/Settings(25332): Setting android_id has moved from android.provider.Settings.System to android.provider.Settings.Secure, returning read-only value.
11-23 09:27:37.105 W/ActivityManager(15570): Scheduling restart of crashed service com.google.android.apps.maps/com.google.android.location.internal.server.GoogleLocationService in 5000ms
11-23 09:27:42.179 E/Trace (25352): error opening trace file: No such file or directory (2)
11-23 09:27:42.796 W/ActivityManager(15570): Scheduling restart of crashed service com.p_soft.sysmon/.services.SystemStatisticsService in 5000ms
11-23 09:27:42.796 W/ActivityManager(15570): Scheduling restart of crashed service com.p_soft.sysmon/.services.BackgroundService in 15000ms
11-23 09:27:43.003 E/Trace (25373): error opening trace file: No such file or directory (2)
[COLOR="Red"]11-23 09:27:44.101 E/wpa_supplicant(23943): ioctl[SIOCSIWPRIV] (pnosetup): -1
11-23 09:27:45.515 E/wpa_supplicant(25388): ioctl[SIOCSIWPRIV] (pnosetup): -1
11-23 09:27:45.535 W/CommandListener(15440): Failed to retrieve HW addr for p2p0 (No such device)
11-23 09:27:45.546 E/WifiP2pService(15570): Unable to change interface settings: java.lang.IllegalStateException: command '251 interface setcfg p2p0 0.0.0.0 0 up' failed with '400 251 Failed to set address (No such device)'
11-23 09:27:45.554 E/WifiHW (15570): Unable to open connection to supplicant on "/data/misc/wifi/sockets/p2p0": No such file or directory
11-23 09:27:46.062 E/wpa_supplicant(25388): ioctl[SIOCSIWPRIV] (pnosetup): -1
11-23 09:27:46.558 E/WifiHW (15570): Unable to open connection to supplicant on "/data/misc/wifi/sockets/p2p0": No such file or directory
11-23 09:27:47.558 E/WifiHW (15570): Unable to open connection to supplicant on "/data/misc/wifi/sockets/p2p0": No such file or directory[/COLOR]
11-23 09:27:47.941 E/Trace (25401): error opening trace file: No such file or directory (2)
11-23 09:27:48.019 I/SetStatisticsAlarm()(25401): SetStatisticsAlarm(), SET PendingIntent
11-23 09:27:48.031 W/System.err(25401): java.lang.NullPointerException
11-23 09:27:48.031 W/System.err(25401): at com.p_soft.sysmon.services.SystemStatisticsService.onStart(SourceFile:125)
11-23 09:27:48.031 W/System.err(25401): at android.app.Service.onStartCommand(Service.java:450)
11-23 09:27:48.031 W/System.err(25401): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2616)
11-23 09:27:48.031 W/System.err(25401): at android.app.ActivityThread.access$1900(ActivityThread.java:142)
11-23 09:27:48.035 W/System.err(25401): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1305)
11-23 09:27:48.035 W/System.err(25401): at android.os.Handler.dispatchMessage(Handler.java:99)
11-23 09:27:48.035 W/System.err(25401): at android.os.Looper.loop(Looper.java:137)
11-23 09:27:48.035 W/System.err(25401): at android.app.ActivityThread.main(ActivityThread.java:4931)
11-23 09:27:48.035 W/System.err(25401): at java.lang.reflect.Method.invokeNative(Native Method)
11-23 09:27:48.039 W/System.err(25401): at java.lang.reflect.Method.invoke(Method.java:511)
11-23 09:27:48.039 W/System.err(25401): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
11-23 09:27:48.039 W/System.err(25401): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558)
11-23 09:27:48.039 W/System.err(25401): at dalvik.system.NativeStart.main(Native Method)
[COLOR="red"]11-23 09:27:48.562 E/WifiHW (15570): Unable to open connection to supplicant on "/data/misc/wifi/sockets/p2p0": No such file or directory
11-23 09:27:49.562 E/WifiHW (15570): Unable to open connection to supplicant on "/data/misc/wifi/sockets/p2p0": No such file or directory
11-23 09:27:50.578 E/WifiHW (15570): Unable to open connection to supplicant on "/data/misc/wifi/sockets/p2p0": No such file or directory
11-23 09:27:50.578 E/WifiP2pService(15570): P2p socket connection failed
11-23 09:27:57.800 W/System.err(25401): java.lang.NullPointerException[/COLOR]
11-23 09:27:57.800 W/System.err(25401): at com.p_soft.sysmon.services.BackgroundService.onStart(SourceFile:138)
11-23 09:27:57.804 W/System.err(25401): at android.app.Service.onStartCommand(Service.java:450)
11-23 09:27:57.804 W/System.err(25401): at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2616)
11-23 09:27:57.804 W/System.err(25401): at android.app.ActivityThread.access$1900(ActivityThread.java:142)
11-23 09:27:57.804 W/System.err(25401): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1305)
11-23 09:27:57.804 W/System.err(25401): at android.os.Handler.dispatchMessage(Handler.java:99)
11-23 09:27:57.804 W/System.err(25401): at android.os.Looper.loop(Looper.java:137)
11-23 09:27:57.808 W/System.err(25401): at android.app.ActivityThread.main(ActivityThread.java:4931)
11-23 09:27:57.808 W/System.err(25401): at java.lang.reflect.Method.invokeNative(Native Method)
11-23 09:27:57.808 W/System.err(25401): at java.lang.reflect.Method.invoke(Method.java:511)
11-23 09:27:57.808 W/System.err(25401): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:791)
11-23 09:27:57.808 W/System.err(25401): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:558)
11-23 09:27:57.808 W/System.err(25401): at dalvik.system.NativeStart.main(Native Method)
[COLOR="red"]11-23 09:37:21.578 W/ThrottleService(15570): unable to find stats for iface pdp0
11-23 09:47:21.562 W/ThrottleService(15570): unable to find stats for iface pdp0
11-23 09:50:51.042 W/wpa_supplicant(25388): wlan0: Failed to initiate AP scan[/COLOR]

Kernel Message:

<4>[63159.000491] Freezing user space processes ...
<4>[63159.004856] net_ratelimit: 4 callbacks suppressed
<4>[63159.005157] dhdsdio_htclk: HT Avail request error: -35
<6>[63159.009208] active wake lock wlan_wake
<4>[63159.009421]
<3>[63159.009523] Freezing of user space aborted
<4>[63159.010114]
<4>[63159.010219] Restarting tasks ... done.
<6>[63159.018986] suspend: exit suspend, ret = -16 (2012-11-23 09:50:46.207952884 UTC)
<4>[63161.021941] dhd_bus_rxctl: resumed on timeout
<4>[63163.841281] dhdsdio_membytes: membytes transfer failed
<4>[63163.844976] dhdsdio_membytes: FAILED to set window back to 0x18010000
[COLOR="red"]<4>[63163.846795] dhd_bus_rxctl: rxcnt_timeout=1
<3>[63163.853939] CFG80211-ERROR) wl_do_escan : error (-5)
<3>[63163.855548] CFG80211-ERROR) wl_cfg80211_scan : scan error (-5)[/COLOR]
<4>[63163.888710] [sipc_whitelist]
<7>[63163.899847] save exit: isCheckpointed 0
<4>[63163.900955] mmc0: Starting deferred resume
<7>[63163.906306] save exit: isCheckpointed 0
<4>[63163.972899] mmc0: Deferred resume completed
<6>[63164.011677] suspend: enter suspend
<6>[63164.013016] PM: Syncing filesystems ...
<7>[63164.014571] save exit: isCheckpointed 0
<7>[63164.016994] save exit: isCheckpointed 0
<4>[63164.023743] done.
<4>[63164.028913] Freezing user space processes ... (elapsed 0.02 seconds) done.
<4>[63164.049572] Freezing remaining freezable tasks ... (elapsed 0.01 seconds) done.
<4>[63164.065196] Suspending console(s) (use no_console_suspend to debug)
<4>[63164.065945] [ wm8994.c (wm8994_suspend,2314) ] wm8994_suspend : Codec State = [0x0], Stream State = [0x0]
<4>[63164.193713] [ wm8994_p1.c (audio_power,297) ] AUDIO POWER COMPLETED : 0
<4>[63164.193741] bma020_accelerometer_suspend
<6>[63164.194392] s3c-rtc s3c2410-rtc: rtc disabled, re-enabling
<6>[63164.194414] s3c-rtc s3c2410-rtc: rtc disabled, re-enabling
<6>[63164.194432] s3c-rtc s3c2410-rtc: rtc disabled, re-enabling
<6>[63164.194449] s3c-rtc s3c2410-rtc: rtc disabled, re-enabling
<4>[63164.194775] ############## ak8973_suspend
<4>[63164.194784] [ak8973_suspend] Set Mode AKECS_MODE_POWERDOWN
<4>[63164.203003] [ CONNECTOR_DRIVER (acc_con_suspend,722) ]
<4>[63164.203013] [ MHL_DRIVER (SII9234_HW_Off,124) ]
<6>[63164.217139] wake enabled for irq 166
<6>[63164.217149] wake enabled for irq 168
<6>[63164.217157] wake enabled for irq 169
<7>[63164.217256] s3c-sdhci.2: ldo down
<4>[63164.217795] [ JACK_DRIVER (sec_jack_suspend,632) ]
<6>[63164.218001] PM: suspend of devices complete after 152.184 msecs
<6>[63164.218223] power_suspend_late return 0
<6>[63164.218235] PM: late suspend of devices complete after 0.220 msecs
<6>[63164.218312] PM: early resume of devices complete after 0.054 msecs
<4>[63164.218497] [ JACK_DRIVER (sec_jack_resume,638) ]
<4>[63164.218522] [ JACK_DRIVER (jack_detect_change,175) ]
<4>[63164.218533] JACK dev detached 0
<4>[63164.218551] [ JACK_DRIVER (sendend_switch_change,231) ]
<4>[63164.218564] [ JACK_DRIVER (sendend_switch_change,262) ] SEND/END Button is pressed but headset disconnect or irq disable.
<4>[63164.218575]
<6>[63164.218696] wake disabled for irq 166
<6>[63164.218705] wake disabled for irq 168
<6>[63164.218712] wake disabled for irq 169
<4>[63164.218728] [ CONNECTOR_DRIVER (acc_con_resume,736) ]
<6>[63164.219727] fsa9480 7-0025: prev_dev1: 0x0, prev_dev2: 0x0
<6>[63164.219738] fsa9480 7-0025: new_dev1: 0x0, new_dev2: 0x0
<4>[63164.219756] @@@@ ak8973_resume
<4>[63164.219762] [ak8973_resume] Set Mode AKECS_MODE_MEASURE
<6>[63164.225070] s3c-rtc s3c2410-rtc: rtc disabled, re-enabling
<4>[63164.225108] bma020_accelerometer_resume
<3>[63164.225737] [ wm8994.c (wm8994_resume,2339) ] wm8994_resume : codec power_state 0
<6>[63164.225897] PM: resume of devices complete after 7.496 msecs
<4>[63164.232066] Restarting tasks ... [ wm8994_p1.c (audio_power,297) ] AUDIO POWER COMPLETED : 1
<6>[63164.241070] wakeup wake lock: KeyEvents
<4>[63164.242443] done.
<6>[63164.297682] suspend: exit suspend, ret = 0 (2012-11-23 09:50:51.486629779 UTC)
<4>[63164.302944] [sipc_whitelist]
<7>[63164.312733] save exit: isCheckpointed 0
<7>[63164.313175] save exit: isCheckpointed 0
<4>[63164.313782] mmc1: Starting deferred resume
<7>[63164.314160] s3c-sdhci.2: ldo on
<4>[63164.452596] mmc1: Deferred resume completed
<6>[63164.457341] suspend: enter suspend
<6>[63164.458672] PM: Syncing filesystems ...
<7>[63164.460564] save exit: isCheckpointed 0
<7>[63164.462726] save exit: isCheckpointed 0