modemDaemon crashes due to 'cm radio off' command

Hi,

I use WP7607 with R12 (Legato 18.10.3) with a mobile data connection (rmnet_data0 interface).
As a test, I switch of the radio via the command line of the target:
cm radio off

Immediately, I get a system crash referring to modemDaemon ILLEGAL ADDRESS 0x40.
See log in attachment.

What could be the root cause?

greetings,
annaertd

cm radio off makes modemDaemon crash (32.5 KB)

I don’t see this issue on my WP7607, is this only happening to one module?

root@swi-mdm9x28-wp:~# cm info
Device: WP7607
IMEI: 359779081234565
IMEISV: 6
FSN: VN730485080103
Firmware Version: SWI9X07Y_02.25.02.01 000000 jenkins 2019/01/30 08:13:05
Bootloader Version: SWI9X07Y_02.25.02.01 000000 jenki[ 153.369976] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv_addr:0x3a MSTR_STS:0x0c1300c8 OPER:0x00000090
ns 2019/01/30 08:13:05
MCU Version: 002.011
PRI Part Number (PN): 9908958
PRI Revision: 001.000
Carrier PRI Name: GENERIC
Carrier PRI Revision: 002.056_000
SKU: 1104301
Last Reset Cause: Reset, User Requested
Resets Count: Expected: 52 Unexpected: 0
root@swi-mdm9x28-wp:~#
root@swi-mdm9x28-wp:~# cm radio
Power: ON
Current Network Operator:
Current RAT: Module not registered on network, RAT not available
Status: Not registered but currently searching for a new operator (LE_MRC_REG_SEARCHING)
Signal: Weak signal strength (2)
PS: Packet Switched Not registered (LE_MRC_REG_NONE)

root@swi-mdm9x28-wp:~#
root@swi-mdm9x28-wp:~# cm radio off
root@swi-mdm9x28-wp:~#
root@swi-mdm9x28-wp:~# cm radio
Power: OFF
Current Network Operator:
Current RAT: Module not registered on network, RAT not available
Status: Not registered and not currently searching for new operator (LE_MRC_REG_NONE)
Signal: No signal strength (0)
PS: Packet Switched Not registered (LE_MRC_REG_NONE)

root@swi-mdm9x28-wp:~#
root@swi-mdm9x28-wp:~# cm radio on
root@swi-mdm9x28-wp:~#
root@swi-mdm9x28-wp:~# cm radio
Power: ON
Current Network Operator:
Current RAT: Module not registered on network, RAT not available
Status: Not registered but currently searching for a new operator (LE_MRC_REG_SEARCHING)
Signal: No signal strength (0)
PS: Packet Switched Not registered (LE_MRC_REG_NONE)

Hi,

if you want to reproduce this, you first have to power on radio and use a SIM card to create a mobile data connection (rmnet_data0).
cm data connect&
You can check the mobile connection via
ifconfig

If you then use cm radio off, the system will crash.
To my opinion it’s normal that the data connection is lost, but, I don’t expect a system crash.

greetings,
annaertd

still no problem is found…

root@swi-mdm9x28-wp:~# cm info
Device: WP7607
IMEI: 359779081234565
IMEISV: 6
FSN: VN730485080103
Firmware Version: SWI9X07Y_02.25.02.01 000000 jenkins 2019/01/30 08:13:05
Bootloader Version: SWI9X07Y_[ 118.433808] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv_addr:0x3a MSTR_STS:0x0c1300c8 OPER:0x00000090
02.25.02.01 000000 jenkins 2019/01/30 08:13:05
MCU Version: 002.011
PRI Part Number (PN): 9908958
PRI Revision: 001.000
Carrier PRI Name: GENERIC
Carrier PRI Revision: 002.056_000
SKU: 1104301
Last Reset Cause: Reset, User Requested
Resets Count: Expected: 56 Unexpected: 0
root@swi-mdm9x28-wp:~#
root@swi-mdm9x28-wp:~# cm radio
Power: ON
Current Network Operator: CSL
Current RAT: UMTS network (LE_MRC_RAT_UMTS)
Status: Registered, home network (LE_MRC_REG_HOME)
Signal: Weak signal strength (2)
PS: Packet Switched Registered, home network (LE_MRC_REG_HOME)

root@swi-mdm9x28-wp:~#
root@swi-mdm9x28-wp:~# cm data
Index: 1
APN: hkcsl
PDP Type: IPV4V6
Connected: no
root@swi-mdm9x28-wp:~#
root@swi-mdm9x28-wp:~# cm data connect &
root@swi-mdm9x28-wp:~#
root@swi-mdm9x28-wp:~# Setting up profile 1
Connecting … ok
Checking if device ‘rmnet_data0’ is up … ok
Routing inet … ok
mv: can’t remove ‘/etc/resolv.conf’: Device or resource busy
Testing connection … ok

[1]+ Done cm data connect
root@swi-mdm9x28-wp:~#
root@swi-mdm9x28-wp:~# ifconfig
bridge0 Link encap:Ethernet HWaddr 9A:3B:7D:7E:D3:4E
inet addr:192.168.225.1 Bcast:192.168.225.255 Mask:255.255.255.0
inet6 addr: fe80::983b:7dff:fe7b:d04b%1127227260/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:76 (76.0 B)

ecm0 Link encap:Ethernet HWaddr 52:A5:83:96:FB:0C
inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::50a5:83ff:fe96:fb0c%1127227260/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:257 errors:0 dropped:4 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:35357 (34.5 KiB) TX bytes:558 (558.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1%1127227260/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

rmnet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP RUNNING MTU:2000 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1752 (1.7 KiB) TX bytes:922 (922.0 B)

rmnet_data0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:10.118.40.165 Mask:255.255.255.252
inet6 addr: fe80::9f63:c521:8154:f71%1127227260/64 Scope:Link
UP RUNNING MTU:1500 Metric:1
RX packets:6 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1704 (1.6 KiB) TX bytes:922 (922.0 B)

root@swi-mdm9x28-wp:~#
root@swi-mdm9x28-wp:~# cm radio off
root@swi-mdm9x28-wp:~#

root@swi-mdm9x28-wp:~# cm radio
Power: OFF
Current Network Operator:
Current RAT: Module not registered on network, RAT not available
Status: Not registered and not currently searching for new operator (LE_MRC_REG_NONE)
Signal: No signal strength (0)
PS: Packet Switched Not registered (LE_MRC_REG_NONE)

That’s very odd, but I can’t see the log as the link results in a page not found.
Could you reprovide the logs please?

I tried to upload the crash logfile as attachment :

cm radio off makes modemDaemon crash (32.5 KB)

Thanks @annaertd for the log, I’m gonna try to find some time to investigate this.
We have a script called dump2sym that I’m hoping should help locate the issue a bit better.

Another thing, any chance you could try installing a more recent version of Legato (19.04.0 ?) and see if the issue still applies? I’m not finding any change in particular to address this issue, but it might have been solved anyway.

If it works with a newer version that could also hopefully unblock you.

Hello @annaertd, so far it appears that you’re the only one having run into this modemDaemon crash. I’ve started looking further into it, but need more details to troubleshoot it better. Please help to provide as much as you can. Here 2 questions:

  • Do you have the output of “cm info”?
  • At the moment of the crash after you issued “cm radio off”, what was/were running on the device besides having a mobile data connection? E.g. AVC, any client apps, etc.?

Thanks in advance!