Segfault on decoding SMS text with 0 elements
Hello, I encountered a problem with the continuous failures with ModemManager, when the SIM is inserted.
According to logs, the failure reason is segfault that happened during message parsing.
Jun 21 15:52:43 localhost ModemManager[3320]: ModemManager[3320]: <debug> [1655826763.969639] [modem0] parsing PDU (7)...
Jun 21 15:52:43 localhost ModemManager[3320]: ModemManager[3320]: <debug> [1655826763.969949] [modem0] SMSC address parsed: '***'
Jun 21 15:52:43 localhost ModemManager[3320]: ModemManager[3320]: <debug> [1655826763.970133] [modem0] deliver type PDU detected
Jun 21 15:52:43 localhost ModemManager[3320]: ModemManager[3320]: <debug> [1655826763.970291] [modem0] number parsed: ***
Jun 21 15:52:43 localhost ModemManager[3320]: ModemManager[3320]: <debug> [1655826763.970600] [modem0] PID: 0
Jun 21 15:52:43 localhost ModemManager[3320]: ModemManager[3320]: <debug> [1655826763.970763] [modem0] user data encoding is UCS2
Jun 21 15:52:43 localhost ModemManager[3320]: ModemManager[3320]: <debug> [1655826763.970909] [modem0] user data length: 8 elements
Jun 21 15:52:43 localhost ModemManager[3320]: ModemManager[3320]: <debug> [1655826763.971056] [modem0] user data length: 8 bytes
Jun 21 15:52:43 localhost ModemManager[3320]: ModemManager[3320]: <debug> [1655826763.971198] [modem0] decoding SMS text with 8 elements
Jun 21 15:52:43 localhost ModemManager[3320]: ModemManager[3320]: <debug> [1655826763.971422] [modem0] error parsing PDU (7): Invalid conversion from UTF-16 to UTF-8: Couldn't convert from UTF-16 to UTF-8: Conversion from character set “UTF-16BE” to “UTF-8” is not supported
Jun 21 15:52:43 localhost ModemManager[3320]: ModemManager[3320]: <debug> [1655826763.971609] [modem0] parsing PDU (8)...
Jun 21 15:52:43 localhost ModemManager[3320]: ModemManager[3320]: <debug> [1655826763.971771] [modem0] SMSC address parsed: '***'
Jun 21 15:52:43 localhost ModemManager[3320]: ModemManager[3320]: <debug> [1655826763.971922] [modem0] deliver type PDU detected
Jun 21 15:52:43 localhost ModemManager[3320]: ModemManager[3320]: <debug> [1655826763.972175] [modem0] number parsed: ***
Jun 21 15:52:43 localhost ModemManager[3320]: ModemManager[3320]: <debug> [1655826763.972470] [modem0] PID: 0
Jun 21 15:52:43 localhost ModemManager[3320]: ModemManager[3320]: <debug> [1655826763.972640] [modem0] user data encoding is UCS2
Jun 21 15:52:43 localhost ModemManager[3320]: ModemManager[3320]: <debug> [1655826763.972782] [modem0] user data length: 0 elements
Jun 21 15:52:43 localhost ModemManager[3320]: ModemManager[3320]: <debug> [1655826763.972920] [modem0] user data length: 0 bytes
Jun 21 15:52:43 localhost ModemManager[3320]: ModemManager[3320]: <debug> [1655826763.973061] [modem0] decoding SMS text with 0 elements
Jun 21 15:52:43 localhost ModemManager[3320]: g_convert: assertion 'str != NULL' failed
Jun 21 15:52:43 localhost ModemManager[3320]: g_propagate_error: assertion 'src != NULL' failed
Jun 21 15:52:44 localhost systemd[1]: ModemManager.service: Main process exited, code=killed, status=11/SEGV
Jun 21 15:52:44 localhost systemd[1]: ModemManager.service: Failed with result 'signal'.
ModemManager version is 1.19.0
Edited by Dmitry Skorykh