dscDaemon SetDnsConfiguration twice makes app crash

I had an interesting observation last week the DNS was set to
dcsDaemon[8128]/le_pa_dcs T=main | pa_dcs_linux.c pa_dcs_SetDnsNameServers() 367 | Set DNS ‘8.8.8.8’ ‘8.8.4.4’ and it ran for 3 days,
Today it went back to crashing after trying to set DNS twice ?

dcsDaemon[5488]/dcsDaemon T=main | dcsServer.c SetDnsConfiguration() 584 | Setting DNS server addresses on device
Mar 6 09:02:05 fx30s user.warn Legato: -WRN- | dcsDaemon[5488]/dcsNet T=main | dcsNet.c DcsNetInitDnsBackup() 1111 | Client app with session reference 0x7f5a9df0 already set DNS once
Mar 6 09:02:05 fx30s user.warn Legato: -WRN- | dcsDaemon[5488]/dcsNet T=main | dcsNet.c DcsNetInitDnsBackup() 1112 | Restoring that before setting the new as requested
Mar 6 09:02:05 fx30s user.info Legato: INFO | dcsDaemon[5488]/le_pa_dcs T=main | pa_dcs_linux.c pa_dcs_SetDnsNameServers() 367 | Set DNS ‘100.122.11.10’ ‘100.121.11.10’

Do you see crash with modemdemo app?

I added the modemDemo to my sdef
app runProc modemDemo send --exe=send – 1234567 “Online”
don’t do anything ?
if i run it with the debugger it is just stuck in
// Connect client-side IPC interfaces.
le_sms_ConnectService();

I don’t know if I am doing something wrong?

This is the 2 logs, first is the good one,
i removed all not connection related lines.

Feb 28 08:23:02 fx30s user.info Legato: INFO | MCExe[8330]/mc T=main | mainComponent.cpp _mc_COMPONENT_INIT() 1375 | COMPONENT_INIT mainComponent

Feb 28 08:23:02 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsDaemon T=main | dcsTechRank.c dcsTechRank_SelectDataChannel() 220 | Selected channel name 1
Feb 28 08:23:02 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcs T=main | dcs.c le_dcs_AddEventHandler() 635 | Adding channel handler for channel 1 of technology cellular
Feb 28 08:23:02 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcs T=main | dcs.c le_dcs_AddEventHandler() 675 | Event handler with reference 0x92d and event ID 0xb81 added
Feb 28 08:23:02 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcs T=main | dcs.c le_dcs_Start() 421 | Starting channel 1 of technology cellular by app session with reference 0x7f5a9df0
Feb 28 08:23:02 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcs T=main | dcs.c le_dcs_Start() 478 | Initiating technology to start channel 1 for app session 0x7f5a9df0, request reference 0x339
Feb 28 08:23:02 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsDaemon T=main | dcsServer.c TryStartTechSession() 1105 | Successfully initiated data channel 1 of technology 1
Feb 28 08:23:02 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcs T=main | dcsTech.c le_dcsTech_Start() 338 | Request to start channel 1 of technology cellular
Feb 28 08:23:03 fx30s user.info Legato: INFO | modemDaemon[8165]/swiQmi T=main | swiQmi.c swiQmi_InitQmiService() 600 | qmi_client_get_service_list num_entries 1 num_services=1
Feb 28 08:23:03 fx30s user.err Legato: =ERR= | modemDaemon[8165]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 799 | Sending QMI_WDS_START_NETWORK_INTERFACE_REQ_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=14.[0x0e]
Feb 28 08:23:03 fx30s user.err Legato: =ERR= | modemDaemon[8165]/le_pa T=main | pa_mdc_qmi.c StartSession() 1978 | Data connection failure Call End provided 0, Code 3
Feb 28 08:23:03 fx30s user.err Legato: =ERR= | modemDaemon[8165]/le_pa T=main | pa_mdc_qmi.c StartSession() 1989 | Data connection failure Verbose Call End provided Type 6, Verbose 50
Feb 28 08:23:03 fx30s user.err Legato: =ERR= | modemDaemon[8165]/modemDaemon T=main | le_mdc.c le_mdc_StartSession() 1242 | Get IPv4v6 Async Connection failureV4 45, 1, 0, 0
Feb 28 08:23:03 fx30s user.err Legato: =ERR= | modemDaemon[8165]/modemDaemon T=main | le_mdc.c le_mdc_StartSession() 1255 | Get IPv4v6 Async Connection failureV6 0, 3, 6, 50
Feb 28 08:23:03 fx30s user.err Legato: =ERR= | dcsDaemon[8128]/dcsCellular T=main | dcsCellular.c le_dcsCellular_Start() 1089 | Failed to start cellular connection 1; error: -6
Feb 28 08:23:03 fx30s user.err Legato: =ERR= | dcsDaemon[8128]/dcsCellular T=main | dcsCellular.c le_dcsCellular_Start() 1092 | Failure reason 0, code 3
Feb 28 08:23:03 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsCellular T=main | dcsCellular.c le_dcsCellular_RetryConn() 1300 | Initiated retrying connection 1; retry attempt 0, backoff 1 secs
Feb 28 08:23:03 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsCellular T=main | dcsCellular.c le_dcsCellular_Start() 1097 | Wait for the next retry before failing connection 1
Feb 28 08:23:03 fx30s user.warn Legato: -WRN- | modemDaemon[8165]/le_pa T=main | pa_sim_qmi.c MapSimState() 952 | More than one application 2
Feb 28 08:23:03 fx30s user.warn Legato: -WRN- | modemDaemon[8165]/le_pa T=main | pa_sim_qmi.c MapSimState() 952 | More than one application 2
Feb 28 08:23:03 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsCellular T=main | dcsCellular.c DcsCellularConnEventStateHandler() 254 | State of connection 1 transitioned from down to down
Feb 28 08:23:03 fx30s user.info Legato: INFO | modemDaemon[8165]/modemDaemon T=main | le_mrc.c SignalStrengthIndHandlerFunc() 879 | Signal Strength Ind Handler called with RAT.4 and ss.-82
Feb 28 08:23:03 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsCellular T=main | dcsCellular.c DcsCellularPacketSwitchHandler() 726 | Packet switch state: previous 1, new 0
Feb 28 08:23:03 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcs T=main | dcs_db.c le_dcs_EventNotifierTechStateTransition() 311 | Notify all channels of technology 2 of system state transition to down
Feb 28 08:23:03 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsDaemon T=main | dcsServer.c ChannelEventHandler() 780 | Received for channel reference 0xb7 event Temporary Down
Feb 28 08:23:03 fx30s user.info Legato: INFO | MCExe[8330]/mc T=main | mainComponent.cpp ConnectionStateHandler() 550 | ConnectionStateHandler:intfName= isConnected=0 contextPtr=2136627384
Feb 28 08:23:04 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsCellular T=main | dcsCellular.c DcsCellularPacketSwitchHandler() 726 | Packet switch state: previous 0, new 1
Feb 28 08:23:04 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcs T=main | dcs_db.c le_dcs_EventNotifierTechStateTransition() 311 | Notify all channels of technology 2 of system state transition to up
Feb 28 08:23:04 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsCellular T=main | dcsCellular.c le_dcsCellular_RetryConn() 1300 | Initiated retrying connection 1; retry attempt 1, backoff 2 secs
Feb 28 08:23:04 fx30s user.warn Legato: -WRN- | modemDaemon[8165]/le_pa T=main | pa_sim_qmi.c MapSimState() 952 | More than one application 2
Feb 28 08:23:07 fx30s user.err Legato: =ERR= | modemDaemon[8165]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 799 | Sending QMI_WDS_START_NETWORK_INTERFACE_REQ_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=14.[0x0e]
Feb 28 08:23:07 fx30s user.err Legato: =ERR= | modemDaemon[8165]/le_pa T=main | pa_mdc_qmi.c StartSession() 1978 | Data connection failure Call End provided 45, Code 1
Feb 28 08:23:07 fx30s user.err Legato: =ERR= | modemDaemon[8165]/le_pa T=main | pa_mdc_qmi.c StartSession() 1989 | Data connection failure Verbose Call End provided Type 2, Verbose 210
Feb 28 08:23:07 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsCellular T=main | dcsCellular.c le_dcsCellular_Start() 1079 | Succeeded starting cellular connection 1
Feb 28 08:23:07 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsCellular T=main | dcsCellular.c DcsCellularConnEventStateHandler() 254 | State of connection 1 transitioned from down to up
Feb 28 08:23:07 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsDaemon T=main | dcsServer.c ChannelEventHandler() 780 | Received for channel reference 0xb7 event Up
Feb 28 08:23:07 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsDaemon T=main | dcsServer.c SetDefaultGWConfiguration() 426 | Setting default GW address on device
Feb 28 08:23:07 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsNet T=main | dcsNet.c le_net_SetDefaultGW() 827 | Succeeded to set default GW addr on interface rmnet_data0 for channel 1 of technology cellular
Feb 28 08:23:07 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsDaemon T=main | dcsServer.c SetDnsConfiguration() 584 | Setting DNS server addresses on device
Feb 28 08:23:07 fx30s user.info Legato: INFO | dcsDaemon[8128]/le_pa_dcs T=main | pa_dcs_linux.c pa_dcs_SetDnsNameServers() 367 | Set DNS ‘8.8.8.8’ ‘8.8.4.4’
Feb 28 08:23:07 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsNet T=main | dcsNet.c le_net_SetDNS() 1246 | Succeeded to set DNS address(es) of channel 1 of technology cellular onto device
Feb 28 08:23:07 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsDaemon T=main | dcsServer.c SetDnsConfiguration() 603 | Succeeded setting DNS configuration
Feb 28 08:23:07 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsDaemon T=main | dcsServer.c SetDefaultRouteAndDns() 658 | Succeeded setting DNS configuration
Feb 28 08:23:07 fx30s user.info Legato: INFO | MCExe[8330]/mc T=main | mainComponent.cpp ConnectionStateHandler() 550 | ConnectionStateHandler:intfName= rmnet_data0 isConnected=1 contextPtr=2136627384
Feb 28 08:23:07 fx30s user.info Legato: INFO | modemDaemon[8165]/le_pa T=main | pa_mrc_qmi.c pa_mrc_GetNetworkRegState() 2482 | called
Feb 28 08:23:14 fx30s user.info Legato: INFO | MCExe[8330]/mc T=main | mainComponent.cpp ConnectionStateHandler() 565 | IP:12.153.230.172
Feb 28 08:23:14 fx30s user.warn Legato: -WRN- | modemDaemon[8165]/framework T=main | safeRef.c le_ref_CreateRef() 547 | Safe reference map maximum exceeded for refle_mrc_ServerHandlers, new size 35

Feb 28 08:52:57 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsCellular T=main | dcsCellular.c DcsCellularPacketSwitchHandler() 726 | Packet switch state: previous 1, new 0
Feb 28 08:52:57 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcs T=main | dcs_db.c le_dcs_EventNotifierTechStateTransition() 311 | Notify all channels of technology 2 of system state transition to down
Feb 28 08:52:57 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsDaemon T=main | dcsServer.c ChannelEventHandler() 780 | Received for channel reference 0xb7 event Temporary Down
Feb 28 08:52:57 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsNet T=main | dcsNet.c le_net_RestoreDefaultGW() 658 | Default IPv4 GW address on interface restored
Feb 28 08:52:57 fx30s user.info Legato: INFO | MCExe[8330]/mc T=main | mainComponent.cpp ConnectionStateHandler() 550 | ConnectionStateHandler:intfName= isConnected=0 contextPtr=2136627384
Feb 28 08:52:57 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsCellular T=main | dcsCellular.c DcsCellularPacketSwitchHandler() 726 | Packet switch state: previous 0, new 1
Feb 28 08:52:57 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcs T=main | dcs_db.c le_dcs_EventNotifierTechStateTransition() 311 | Notify all channels of technology 2 of system state transition to up
Feb 28 08:52:57 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsDaemon T=main | dcsServer.c ChannelEventHandler() 780 | Received for channel reference 0xb7 event Up
Feb 28 08:52:57 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsDaemon T=main | dcsServer.c SetDefaultGWConfiguration() 426 | Setting default GW address on device
Feb 28 08:52:57 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsNet T=main | dcsNet.c le_net_SetDefaultGW() 827 | Succeeded to set default GW addr on interface rmnet_data0 for channel 1 of technology cellular
Feb 28 08:52:57 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsDaemon T=main | dcsServer.c SetDnsConfiguration() 584 | Setting DNS server addresses on device
Feb 28 08:52:57 fx30s user.info Legato: INFO | dcsDaemon[8128]/le_pa_dcs T=main | pa_dcs_linux.c pa_dcs_SetDnsNameServers() 367 | Set DNS ‘8.8.8.8’ ‘8.8.4.4’
Feb 28 08:52:57 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsNet T=main | dcsNet.c le_net_SetDNS() 1246 | Succeeded to set DNS address(es) of channel 1 of technology cellular onto device
Feb 28 08:52:57 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsDaemon T=main | dcsServer.c SetDnsConfiguration() 603 | Succeeded setting DNS configuration
Feb 28 08:52:57 fx30s user.info Legato: INFO | dcsDaemon[8128]/dcsDaemon T=main | dcsServer.c SetDefaultRouteAndDns() 658 | Succeeded setting DNS configuration
Feb 28 08:52:57 fx30s user.info Legato: INFO | MCExe[8330]/mc T=main | mainComponent.cpp ConnectionStateHandler() 550 | ConnectionStateHandler:intfName= rmnet_data0 isConnected=1 contextPtr=2136627384
Feb 28 08:52:57 fx30s user.info Legato: INFO | modemDaemon[8165]/le_pa T=main | pa_mrc_qmi.c pa_mrc_GetNetworkRegState() 2482 | called
Feb 28 08:52:58 fx30s user.info Legato: INFO | MCExe[8330]/mc T=UDP | udpQueue.cpp checkQueue() 425 | checkQueue 1
Feb 28 08:52:58 fx30s user.info Legato: INFO | MCExe[8330]/mc T=UDP | netSocket.c netSocket_Write() 187 | Write done successfully on fd: 47
Feb 28 08:52:58 fx30s user.info Legato: INFO | MCExe[8330]/mc T=main | mainComponent.cpp ConnectionStateHandler() 565 | IP:12.153.230.172

Mar 2 08:24:34 fx30s user.warn Legato: -WRN- | posDaemon[8184]/le_pa_gnss T=unknown | pa_gnss_qmi.c PositionHandler() 1509 | Bad position indication

Mar 6 09:01:54 fx30s user.info Legato: INFO | MCExe[5889]/mc T=main | mainComponent.cpp _mc_COMPONENT_INIT() 1375 | COMPONENT_INIT mainComponent

Mar 6 09:01:54 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsDaemon T=main | dcsTechRank.c dcsTechRank_SelectDataChannel() 220 | Selected channel name 1
Mar 6 09:01:54 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcs T=main | dcs.c le_dcs_AddEventHandler() 635 | Adding channel handler for channel 1 of technology cellular
Mar 6 09:01:54 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcs T=main | dcs.c le_dcs_AddEventHandler() 675 | Event handler with reference 0x919 and event ID 0xa63 added
Mar 6 09:01:54 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcs T=main | dcs.c le_dcs_Start() 421 | Starting channel 1 of technology cellular by app session with reference 0x7f5a9df0
Mar 6 09:01:54 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcs T=main | dcs.c le_dcs_Start() 478 | Initiating technology to start channel 1 for app session 0x7f5a9df0, request reference 0x291
Mar 6 09:01:54 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsDaemon T=main | dcsServer.c TryStartTechSession() 1105 | Successfully initiated data channel 1 of technology 1
Mar 6 09:01:54 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcs T=main | dcsTech.c le_dcsTech_Start() 338 | Request to start channel 1 of technology cellular
Mar 6 09:01:55 fx30s user.info Legato: INFO | modemDaemon[5525]/swiQmi T=main | swiQmi.c swiQmi_InitQmiService() 600 | qmi_client_get_service_list num_entries 1 num_services=1
Mar 6 09:01:55 fx30s user.err Legato: =ERR= | modemDaemon[5525]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 799 | Sending QMI_WDS_START_NETWORK_INTERFACE_REQ_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=14.[0x0e]
Mar 6 09:01:55 fx30s user.err Legato: =ERR= | modemDaemon[5525]/le_pa T=main | pa_mdc_qmi.c StartSession() 1978 | Data connection failure Call End provided 0, Code 3
Mar 6 09:01:55 fx30s user.err Legato: =ERR= | modemDaemon[5525]/le_pa T=main | pa_mdc_qmi.c StartSession() 1989 | Data connection failure Verbose Call End provided Type 6, Verbose 50
Mar 6 09:01:55 fx30s user.err Legato: =ERR= | modemDaemon[5525]/modemDaemon T=main | le_mdc.c le_mdc_StartSession() 1242 | Get IPv4v6 Async Connection failureV4 45, 1, 0, 0
Mar 6 09:01:55 fx30s user.err Legato: =ERR= | modemDaemon[5525]/modemDaemon T=main | le_mdc.c le_mdc_StartSession() 1255 | Get IPv4v6 Async Connection failureV6 0, 3, 6, 50
Mar 6 09:01:55 fx30s user.err Legato: =ERR= | dcsDaemon[5488]/dcsCellular T=main | dcsCellular.c le_dcsCellular_Start() 1089 | Failed to start cellular connection 1; error: -6
Mar 6 09:01:55 fx30s user.info Legato: INFO | modemDaemon[5525]/modemDaemon T=main | le_mrc.c SignalStrengthIndHandlerFunc() 879 | Signal Strength Ind Handler called with RAT.4 and ss.-86
Mar 6 09:01:55 fx30s user.err Legato: =ERR= | dcsDaemon[5488]/dcsCellular T=main | dcsCellular.c le_dcsCellular_Start() 1092 | Failure reason 0, code 3
Mar 6 09:01:55 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsCellular T=main | dcsCellular.c le_dcsCellular_RetryConn() 1300 | Initiated retrying connection 1; retry attempt 0, backoff 1 secs
Mar 6 09:01:55 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsCellular T=main | dcsCellular.c le_dcsCellular_Start() 1097 | Wait for the next retry before failing connection 1
Mar 6 09:01:55 fx30s user.warn Legato: -WRN- | modemDaemon[5525]/le_pa T=main | pa_sim_qmi.c MapSimState() 952 | More than one application 2
Mar 6 09:01:55 fx30s user.warn Legato: -WRN- | modemDaemon[5525]/le_pa T=main | pa_sim_qmi.c MapSimState() 952 | More than one application 2
Mar 6 09:01:55 fx30s user.warn Legato: -WRN- | modemDaemon[5525]/le_pa T=main | pa_sim_qmi.c MapSimState() 952 | More than one application 2
Mar 6 09:01:55 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsCellular T=main | dcsCellular.c DcsCellularConnEventStateHandler() 254 | State of connection 1 transitioned from down to down
Mar 6 09:01:55 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsCellular T=main | dcsCellular.c DcsCellularPacketSwitchHandler() 726 | Packet switch state: previous 1, new 0
Mar 6 09:01:55 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcs T=main | dcs_db.c le_dcs_EventNotifierTechStateTransition() 311 | Notify all channels of technology 2 of system state transition to down
Mar 6 09:01:55 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsCellular T=main | dcsCellular.c DcsCellularPacketSwitchHandler() 726 | Packet switch state: previous 0, new 1
Mar 6 09:01:55 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcs T=main | dcs_db.c le_dcs_EventNotifierTechStateTransition() 311 | Notify all channels of technology 2 of system state transition to up
Mar 6 09:01:55 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsDaemon T=main | dcsServer.c ChannelEventHandler() 780 | Received for channel reference 0x1f event Temporary Down
Mar 6 09:01:55 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsDaemon T=main | dcsServer.c ChannelEventHandler() 780 | Received for channel reference 0x1f event Up
Mar 6 09:01:55 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsDaemon T=main | dcsServer.c SetDefaultGWConfiguration() 426 | Setting default GW address on device
Mar 6 09:01:55 fx30s user.err Legato: =ERR= | dcsDaemon[5488]/dcs T=main | dcsTech.c le_dcsTech_GetNetInterface() 305 | Failed to get network interface of channel 1 of technology cellular
Mar 6 09:01:55 fx30s user.err Legato: =ERR= | dcsDaemon[5488]/dcsNet T=main | dcsNet.c le_net_SetDefaultGW() 744 | Failed to get network interface for channel 1 of technology cellular to set default GW
Mar 6 09:01:55 fx30s user.err Legato: =ERR= | dcsDaemon[5488]/dcsDaemon T=main | dcsServer.c SetDefaultGWConfiguration() 431 | Failed to set default GW address
Mar 6 09:01:55 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsDaemon T=main | dcsServer.c SetDnsConfiguration() 584 | Setting DNS server addresses on device
Mar 6 09:01:55 fx30s user.warn Legato: -WRN- | modemDaemon[5525]/modemDaemon T=main | le_mdc.c le_mdc_IsIPv6() 1982 | Could not get the Session Type
Mar 6 09:01:55 fx30s user.warn Legato: -WRN- | modemDaemon[5525]/modemDaemon T=main | le_mdc.c le_mdc_IsIPv4() 1948 | Could not get the Session Type
Mar 6 09:01:55 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsNet T=main | dcsNet.c le_net_SetDNS() 1235 | Given channel 1 of technology cellular got no DNS server address assigned
Mar 6 09:01:55 fx30s user.err Legato: =ERR= | dcsDaemon[5488]/dcsDaemon T=main | dcsServer.c SetDnsConfiguration() 593 | Failed to set DNS server addresses; error -6
Mar 6 09:01:55 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsDaemon T=main | dcsServer.c SetDefaultRouteAndDns() 639 | Failed to set DNS configuration
Mar 6 09:01:55 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsDaemon T=main | dcsServer.c SetDefaultRouteAndDns() 653 | Wait for next retry to set DNS configuration
Mar 6 09:01:55 fx30s user.info Legato: INFO | MCExe[5889]/mc T=main | mainComponent.cpp ConnectionStateHandler() 550 | ConnectionStateHandler:intfName= isConnected=0 contextPtr=2136627384
Mar 6 09:01:57 fx30s user.err Legato: =ERR= | modemDaemon[5525]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 799 | Sending QMI_WDS_START_NETWORK_INTERFACE_REQ_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=14.[0x0e]
Mar 6 09:01:57 fx30s user.err Legato: =ERR= | modemDaemon[5525]/le_pa T=main | pa_mdc_qmi.c StartSession() 1978 | Data connection failure Call End provided 45, Code 1
Mar 6 09:01:57 fx30s user.err Legato: =ERR= | modemDaemon[5525]/le_pa T=main | pa_mdc_qmi.c StartSession() 1989 | Data connection failure Verbose Call End provided Type 2, Verbose 210
Mar 6 09:01:57 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsCellular T=main | dcsCellular.c le_dcsCellular_Start() 1079 | Succeeded starting cellular connection 1
Mar 6 09:01:57 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsCellular T=main | dcsCellular.c DcsCellularConnEventStateHandler() 254 | State of connection 1 transitioned from down to up
Mar 6 09:01:57 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsDaemon T=main | dcsServer.c ChannelEventHandler() 780 | Received for channel reference 0x1f event Up
Mar 6 09:01:57 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsDaemon T=main | dcsServer.c SetDefaultGWConfiguration() 426 | Setting default GW address on device
Mar 6 09:01:57 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsNet T=main | dcsNet.c le_net_SetDefaultGW() 827 | Succeeded to set default GW addr on interface rmnet_data0 for channel 1 of technology cellular
Mar 6 09:01:57 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsDaemon T=main | dcsServer.c SetDnsConfiguration() 584 | Setting DNS server addresses on device
Mar 6 09:01:57 fx30s user.info Legato: INFO | dcsDaemon[5488]/le_pa_dcs T=main | pa_dcs_linux.c pa_dcs_SetDnsNameServers() 367 | Set DNS ‘100.122.11.10’ ‘100.121.11.10’
Mar 6 09:01:57 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsNet T=main | dcsNet.c le_net_SetDNS() 1246 | Succeeded to set DNS address(es) of channel 1 of technology cellular onto device
Mar 6 09:01:57 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsDaemon T=main | dcsServer.c SetDnsConfiguration() 603 | Succeeded setting DNS configuration
Mar 6 09:01:57 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsDaemon T=main | dcsServer.c SetDefaultRouteAndDns() 658 | Succeeded setting DNS configuration
Mar 6 09:01:57 fx30s user.info Legato: INFO | MCExe[5889]/mc T=main | mainComponent.cpp ConnectionStateHandler() 550 | ConnectionStateHandler:intfName= rmnet_data0 isConnected=1 contextPtr=2136627384
Mar 6 09:01:57 fx30s user.info Legato: INFO | modemDaemon[5525]/le_pa T=main | pa_mrc_qmi.c pa_mrc_GetNetworkRegState() 2482 | called
Mar 6 09:01:58 fx30s user.info Legato: INFO | MCExe[5889]/mc T=main | mainComponent.cpp ConnectionStateHandler() 565 | IP:12.153.231.160
Mar 6 09:01:58 fx30s user.warn Legato: -WRN- | modemDaemon[5525]/framework T=main | safeRef.c le_ref_CreateRef() 547 | Safe reference map maximum exceeded for refle_mrc_ServerHandlers, new size 35

Mar 6 09:02:05 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsDaemon T=main | dcsServer.c SetDnsConfiguration() 584 | Setting DNS server addresses on device
Mar 6 09:02:05 fx30s user.warn Legato: -WRN- | dcsDaemon[5488]/dcsNet T=main | dcsNet.c DcsNetInitDnsBackup() 1111 | Client app with session reference 0x7f5a9df0 already set DNS once
Mar 6 09:02:05 fx30s user.warn Legato: -WRN- | dcsDaemon[5488]/dcsNet T=main | dcsNet.c DcsNetInitDnsBackup() 1112 | Restoring that before setting the new as requested
Mar 6 09:02:05 fx30s user.info Legato: INFO | dcsDaemon[5488]/le_pa_dcs T=main | pa_dcs_linux.c pa_dcs_SetDnsNameServers() 367 | Set DNS ‘100.122.11.10’ ‘100.121.11.10’
Mar 6 09:02:05 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsNet T=main | dcsNet.c le_net_SetDNS() 1246 | Succeeded to set DNS address(es) of channel 1 of technology cellular onto device
Mar 6 09:02:05 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsDaemon T=main | dcsServer.c SetDnsConfiguration() 603 | Succeeded setting DNS configuration
Mar 6 09:02:05 fx30s user.info Legato: INFO | dcsDaemon[5488]/dcsDaemon T=main | dcsServer.c SetDNSConfigTimerHandler() 732 | Succeeded setting DNS configuration
Mar 6 09:06:09 fx30s user.warn Legato: -WRN- | posDaemon[5544]/le_pa_gnss T=unknown | pa_gnss_qmi.c PositionHandler() 1509 | Bad position indication

I don’t see problem with WP76 module in R16 with the modemdemo application:

root@swi-mdm9x28-wp:~# app runProc modemDemo1 send --exe=send -- 1234567 "Sim"
root@swi-mdm9x28-wp:~# cat /legato/systems/current/appsWriteable/modemDemo1/smsC
hat.txt
## SIM 1 is inserted and unlocked. ICCID=89852062105241141234 IMSI=454065810591234 ##
root@swi-mdm9x28-wp:~# cm data
Index:                         1
APN:                           internet
PDP Type:                      IPV4
Connected:                     no
root@swi-mdm9x28-wp:~# app runProc modemDemo1 send --exe=send -- 1234567 "Status
"
root@swi-mdm9x28-wp:~# cm data
Index:                         1
APN:                           internet
PDP Type:                      IPV4
Connected:                     no
root@swi-mdm9x28-wp:~# cat /legato/systems/current/appsWriteable/modemDemo1/smsC
hat.txt
## SIM 1 is inserted and unlocked. ICCID=89852062105241141234 IMSI=454065810591234 ##
## The radio is on and is registered on its home network. The signal strength is very strong. ##
root@swi-mdm9x28-wp:~# app runProc modemDemo1 send --exe=send -- 1234567 "Online
"
root@swi-mdm9x28-wp:~# cm data
Index:                         1
APN:                           internet
PDP Type:                      IPV4
Connected:                     yes
Interface:                     rmnet_data0
Family[IPv4]:                  inet
IP[IPv4]:                      182.153.56.247
Gateway[IPv4]:                 182.153.56.248
Dns1[IPv4]:                    10.30.25.130
Dns2[IPv4]:                    10.30.23.130
root@swi-mdm9x28-wp:~# cat /legato/systems/current/appsWriteable/modemDemo1/smsC
hat.txt
## SIM 1 is inserted and unlocked. ICCID=89852062105241141234 IMSI=454065810591234##
## The radio is on and is registered on its home network. The signal strength is very strong. ##
## Requesting data connection. ##
root@swi-mdm9x28-wp:~# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=60 time=46.039 ms
64 bytes from 8.8.8.8: seq=1 ttl=60 time=35.374 ms
^C
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 35.374/40.706/46.039 ms

I can do the same here and don’t see any crash but the app is not doing anything with the connection ?
Our app is maintaining a UPD socket and sending data on a regular bases.

Here is the log from the modemDemo.

dcsDaemon[1257]/dcsDaemon T=main | dcsTechRank.c dcsTechRank_SelectDataChannel() 220 | Selected channel name 1
Mar 7 08:26:47 fx30s user.info Legato: INFO | dcsDaemon[1257]/dcs T=main | dcs.c le_dcs_AddEventHandler() 635 | Adding channel handler for channel 1 of technology cellular
Mar 7 08:26:47 fx30s user.info Legato: INFO | dcsDaemon[1257]/dcs T=main | dcs.c le_dcs_AddEventHandler() 675 | Event handler with reference 0x9e9 and event ID 0xb79 added
Mar 7 08:26:47 fx30s user.info Legato: INFO | dcsDaemon[1257]/dcs T=main | dcs.c le_dcs_Start() 421 | Starting channel 1 of technology cellular by app session with reference 0x7f5a9df0
Mar 7 08:26:47 fx30s user.info Legato: INFO | dcsDaemon[1257]/dcs T=main | dcs.c le_dcs_Start() 478 | Initiating technology to start channel 1 for app session 0x7f5a9df0, request reference 0x2e3
Mar 7 08:26:47 fx30s user.info Legato: INFO | dcsDaemon[1257]/dcsDaemon T=main | dcsServer.c TryStartTechSession() 1105 | Successfully initiated data channel 1 of technology 1
Mar 7 08:26:47 fx30s user.info Legato: INFO | dcsDaemon[1257]/dcs T=main | dcsTech.c le_dcsTech_Start() 338 | Request to start channel 1 of technology cellular
Mar 7 08:26:47 fx30s user.info Legato: INFO | supervisor[1105]/supervisor T=main | proc.c proc_SigChildHandler() 2079 | Process ‘send’ (PID: 2634) has exited with exit code 0.
Mar 7 08:26:48 fx30s user.info Legato: INFO | modemDaemon[1302]/swiQmi T=main | swiQmi.c swiQmi_InitQmiService() 600 | qmi_client_get_service_list num_entries 1 num_services=1
Mar 7 08:26:48 fx30s user.err Legato: =ERR= | modemDaemon[1302]/swiQmi T=main | swiQmi.c swiQmi_CheckResponse() 799 | Sending QMI_WDS_START_NETWORK_INTERFACE_REQ_V01 failed: rc=0 (), resp.result=1.[0x01], resp.error=14.[0x0e]
Mar 7 08:26:48 fx30s user.err Legato: =ERR= | modemDaemon[1302]/le_pa T=main | pa_mdc_qmi.c StartSession() 1978 | Data connection failure Call End provided 45, Code 1
Mar 7 08:26:48 fx30s user.err Legato: =ERR= | modemDaemon[1302]/le_pa T=main | pa_mdc_qmi.c StartSession() 1989 | Data connection failure Verbose Call End provided Type 2, Verbose 210
Mar 7 08:26:48 fx30s user.info Legato: INFO | dcsDaemon[1257]/dcsCellular T=main | dcsCellular.c le_dcsCellular_Start() 1079 | Succeeded starting cellular connection 1
Mar 7 08:26:48 fx30s user.info Legato: INFO | dcsDaemon[1257]/dcsCellular T=main | dcsCellular.c DcsCellularConnEventStateHandler() 254 | State of connection 1 transitioned from down to up
Mar 7 08:26:48 fx30s user.info Legato: INFO | dcsDaemon[1257]/dcsDaemon T=main | dcsServer.c ChannelEventHandler() 780 | Received for channel reference 0x1eb event Up
Mar 7 08:26:48 fx30s user.info Legato: INFO | dcsDaemon[1257]/dcsDaemon T=main | dcsServer.c SetDefaultGWConfiguration() 426 | Setting default GW address on device
Mar 7 08:26:48 fx30s user.info Legato: INFO | dcsDaemon[1257]/dcsNet T=main | dcsNet.c le_net_SetDefaultGW() 827 | Succeeded to set default GW addr on interface rmnet_data0 for channel 1 of technology cellular
Mar 7 08:26:48 fx30s user.info Legato: INFO | dcsDaemon[1257]/dcsDaemon T=main | dcsServer.c SetDnsConfiguration() 584 | Setting DNS server addresses on device
Mar 7 08:26:48 fx30s user.info Legato: INFO | dcsDaemon[1257]/le_pa_dcs T=main | pa_dcs_linux.c pa_dcs_SetDnsNameServers() 367 | Set DNS ‘100.121.11.10’ ‘100.122.11.10’
Mar 7 08:26:48 fx30s user.info Legato: INFO | dcsDaemon[1257]/dcsNet T=main | dcsNet.c le_net_SetDNS() 1246 | Succeeded to set DNS address(es) of channel 1 of technology cellular onto device
Mar 7 08:26:48 fx30s user.info Legato: INFO | dcsDaemon[1257]/dcsDaemon T=main | dcsServer.c SetDnsConfiguration() 603 | Succeeded setting DNS configuration
Mar 7 08:26:48 fx30s user.info Legato: INFO | dcsDaemon[1257]/dcsDaemon T=main | dcsServer.c SetDefaultRouteAndDns() 658 | Succeeded setting DNS configuration
Mar 7 13:26:48 fx30s user.info Legato: INFO | modemDemo[2255]/demoComponent T=main | demo.c ConnectionStateHandler() 1007 | Connection State Event: ‘rmnet_data0’ connected

If you compare the it to the 2 logs i send yesterday it looks close to the first one,
the second one might be related to this issue

Then i have no idea as we have different observation
After modemdemo, i can ping outside ,that means the modemdemo app is working for me

I can do the ping too.

It seems to be related to this line
Mar 6 09:02:05 fx30s user.warn Legato: -WRN- | dcsDaemon[5488]/dcsNet T=main | dcsNet.c DcsNetInitDnsBackup() 1111 | Client app with session reference 0x7f5a9df0 already set DNS once

what determines that DcsNetInitDnsBackup() is called ?

Then what is the problem?
Modemdemo can make connection, dbs, ping, and there is no crash…

The problem is that there seems to be a bug in the Legato framework that makes my app crash outside my code!!!
Is there a way to always use the same DNS servers and don’t have the dcsDaemon try to change the DNS settings ?

Then why don’t you use some working code instead of keeping to debug your problematic code which makes crash?

I don’t wont to argue! but that is not very helpful!

Ok, no problem, just wanna help your development faster.

Anyway, it is your own choice, if you want to further debug the legato framework, you can contact distributor

Good luck!