modemDaemon service - le_sms error

Hi,

I use a WP7607 with firmware release R12 (legato 18.10.3).

When I use cm tools without any custom apps, I see that my syslog contains SMS errors while I don’t use sms functionality:
le_sms.c CloseSessionEventHandler() 2181 | SessionRef (xxx) has been closed

What could be the root cause of this?
What does this indicate?

Greetings,
annaertd

Jun 6 11:57:55 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[951]/modemDaemon T=main | le_sms.c CloseSessionEventHandler() 2181 | SessionRef (0x7f61c484) has been closed
Jun 6 11:57:58 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[951]/modemDaemon T=main | le_sms.c CloseSessionEventHandler() 2181 | SessionRef (0x7f61bf64) has been closed
Jun 6 11:58:01 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[951]/modemDaemon T=main | le_sms.c CloseSessionEventHandler() 2181 | SessionRef (0x7f61c484) has been closed
Jun 6 11:58:01 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[951]/modemDaemon T=main | le_sms.c CloseSessionEventHandler() 2181 | SessionRef (0x7f61bf64) has been closed
Jun 6 12:06:38 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[951]/modemDaemon T=main | le_sms.c CloseSessionEventHandler() 2181 | SessionRef (0x7f61c484) has been closed
Jun 6 12:06:52 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[951]/modemDaemon T=main | le_sms.c CloseSessionEventHandler() 2181 | SessionRef (0x7f61bf64) has been closed
Jun 6 12:09:11 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[951]/modemDaemon T=main | le_sms.c CloseSessionEventHandler() 2181 | SessionRef (0x7f61c484) has been closed
Jun 6 12:09:29 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[951]/modemDaemon T=main | le_sms.c CloseSessionEventHandler() 2181 | SessionRef (0x7f61bf64) has been closed
Jun 6 12:09:43 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[951]/modemDaemon T=main | le_sms.c CloseSessionEventHandler() 2181 | SessionRef (0x7f61c484) has been closed

This happens to me as well (i assume all legato versions) but I don’t think it does anything bad IDK why it says error though must just be how they close it

hi @annaertd,
can you describe in detail your use case? regarding the cm tool what did you do exactly? can you list the commands? may be one of them is using the sms service .
Best regards,

Hi @annaertd @sast5,
cm tool in fact binds all the services, and when its action is ended, it closes all of them.

regarding the SMS service, instead of having a debug message , as it is done for the other service, the function LE_ERROR is used in the close function.
This is the reason why you can see the warning into the logread.

so to solve that, you can modify into the open source file le_sms.c , the function CloseSessionEventHandler

// Clean session context.
    LE_ERROR("SessionRef (%p) has been closed", sessionRef);

by

// Clean session context.
    LE_DEBUG("SessionRef (%p) has been closed", sessionRef);

Best Regards,

Thank you there is other stuff that uses the =ERR= instead of DEBUG or INFO or even WARN which is weird not an issue but it was weird at first to see random errors all the time even though it was working fine.