mmcli coredump when device is not correctly initialized
I have a SORACAOM modem (SC-QGLC4-C1) and when I used it without SIM and with ModemManager 1.14.8 , I have the following error:
Dec 17 09:55:01.135063 tap ModemManager[1267]: <info> ModemManager (version 1.14.8) starting in system bus...
Dec 17 09:55:03.696605 tap ModemManager[1267]: <info> [base-manager] couldn't check support for device '/sys/devices/pci0000:00/0000:00:1c.3/0000:02:00.0': not supported by any plugin
Dec 17 09:55:24.354735 tap-0000A9D8 ModemManager[1267]: <warn> [ttyUSB0/probe] failed to parse QCDM version info command result: -7
Dec 17 09:55:25.347931 tap-0000A9D8 ModemManager[1267]: <info> [device /sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/usb4/4-1] creating modem with plugin 'quectel' and '4' ports
Dec 17 09:55:25.351418 tap-0000A9D8 ModemManager[1267]: <info> [base-manager] modem for device '/sys/devices/pci0000:00/0000:00:1c.0/0000:01:00.0/usb4/4-1' successfully created
Dec 17 09:55:25.351831 tap-0000A9D8 ModemManager[1267]: <info> [modem0] loading current capabilities...
Dec 17 09:55:25.426807 tap-0000A9D8 ModemManager[1267]: <info> [modem0] loaded current capabilities: gsm-umts, lte
Dec 17 09:55:25.492056 tap-0000A9D8 ModemManager[1267]: <warn> [modem0] modem couldn't be initialized: Failed to find a usable modem character set
Dec 17 09:55:25.526165 tap-0000A9D8 ModemManager[1267]: <warn> [modem0] couldn't set version: Unknown revision
and then when I used mmcli, I have the following assertion and finally a segfault:
root@tap-0000A9D8:~# mmcli -L
** (mmcli:1798): WARNING **: 09:56:20.096: (../../ModemManager-1.14.8/libmm-glib/mm-object.c:135):mm_object_peek_modem: runtime check failed: (MM_IS_MODEM (modem))
** (mmcli:1798): CRITICAL **: 09:56:20.096: mm_modem_get_manufacturer: assertion 'MM_IS_MODEM (self)' failed
** (mmcli:1798): WARNING **: 09:56:20.096: (../../ModemManager-1.14.8/libmm-glib/mm-object.c:135):mm_object_peek_modem: runtime check failed: (MM_IS_MODEM (modem))
** (mmcli:1798): CRITICAL **: 09:56:20.096: mm_modem_get_model: assertion 'MM_IS_MODEM (self)' failed
/org/freedesktop/ModemManager1/Modem/0 [manufacturer unknown] model unknown
root@tap-0000A9D8:~# mmcli -m any
** (mmcli:1807): WARNING **: 09:56:22.442: (../../ModemManager-1.14.8/libmm-glib/mm-object.c:108):mm_object_get_modem: runtime check failed: (MM_IS_MODEM (modem))
** (mmcli:1807): WARNING **: 09:56:22.442: (../../ModemManager-1.14.8/libmm-glib/mm-object.c:108):mm_object_get_modem: runtime check failed: (MM_IS_MODEM (modem))
** (mmcli:1807): CRITICAL **: 09:56:22.442: mm_modem_get_supported_capabilities: assertion 'MM_IS_MODEM (self)' failed
** (mmcli:1807): CRITICAL **: 09:56:22.442: mm_modem_get_current_capabilities: assertion 'MM_IS_MODEM (self)' failed
** (mmcli:1807): CRITICAL **: 09:56:22.442: mm_modem_get_access_technologies: assertion 'MM_IS_MODEM (self)' failed
** (mmcli:1807): CRITICAL **: 09:56:22.442: mm_modem_get_supported_modes: assertion 'MM_IS_MODEM (self)' failed
** (mmcli:1807): CRITICAL **: 09:56:22.442: mm_modem_get_current_bands: assertion 'MM_IS_MODEM (self)' failed
** (mmcli:1807): CRITICAL **: 09:56:22.442: mm_modem_get_supported_bands: assertion 'MM_IS_MODEM (self)' failed
** (mmcli:1807): CRITICAL **: 09:56:22.442: mm_modem_get_ports: assertion 'MM_IS_MODEM (self)' failed
** (mmcli:1807): CRITICAL **: 09:56:22.443: mm_modem_get_current_modes: assertion 'MM_IS_MODEM (self)' failed
** (mmcli:1807): CRITICAL **: 09:56:22.443: mm_modem_get_supported_ip_families: assertion 'MM_IS_MODEM (self)' failed
** (mmcli:1807): CRITICAL **: 09:56:22.443: mm_modem_get_unlock_retries: assertion 'MM_IS_MODEM (self)' failed
Segmentation fault (core dumped)
Note that when a SIM is inserted, all goes well.
Edited by Frédéric Martinsons