packages icon indicating copy to clipboard operation
packages copied to clipboard

ModemManager gives up during initializing with AT commands (T10410)

Open celticmagic opened this issue 2 years ago • 9 comments

g66925 (#g66925), 2022-10-04 09:33:43 UTC

(ModemManager:3297): GLib-CRITICAL **: 11:29:24.964: g_regex_match_full: assertion 'regex != NULL' failed
ModemManager[3297]: <debug> [1664875764.965020] [modem0/ttyUSB2/at] operation failure: 100 (Unknown error)
ModemManager[3297]: <warn>  [1664875764.965068] [modem0] couldn't load supported IP families: Unknown error
ModemManager[3297]: <debug> [1664875764.965114] [modem0] loading power state...
ModemManager[3297]: <debug> [1664875764.965152] [modem0/ttyUSB2/at] device open count is 3 (open)
ModemManager[3297]: <debug> [1664875764.965199] [modem0/ttyUSB2/at] device open count is 2 (close)
ModemManager[3297]: <debug> [1664875764.965245] [modem0/ttyUSB2/at] --> 'AT+CFUN?<CR>'
ModemManager[3297]: <debug> [1664875764.975034] [modem0/ttyUSB2/at] <-- '<CR><LF>+CFUN: 1<CR><LF><CR><LF>OK<CR><LF>'
ModemManager[3297]: <debug> [1664875764.975270] [modem0] checking if unlock required...
ModemManager[3297]: <debug> [1664875764.975300] [modem0/ttyUSB2/at] device open count is 3 (open)
ModemManager[3297]: <debug> [1664875764.975342] [modem0/ttyUSB2/at] device open count is 2 (close)
ModemManager[3297]: <debug> [1664875764.975385] [modem0/ttyUSB2/at] --> 'AT+CPIN?<CR>'
ModemManager[3297]: <debug> [1664875764.985321] [modem0/ttyUSB2/at] <-- '<CR><LF>+CPIN: SIM PIN<CR><LF><CR><LF>OK<CR><LF>'
malloc(): smallbin double linked list corrupted
Aborted

It worked properly before upgrade which I performed 2022-09-29 15:08.

celticmagic avatar Aug 16 '23 19:08 celticmagic

Rune Morling (@ermo), 2023-05-09 21:23:03 UTC

Is this still an issue?

celticmagic avatar Aug 16 '23 19:08 celticmagic

g66925 (@g66925), 2023-05-17 11:29:15 UTC

Today eopkg upgrade was done and problem still persist.

ModemManager[2813]: <debug> [1684322657.565617] [ttyUSB3/at] <-- 'AT'

(ModemManager:2813): GLib-CRITICAL **: 13:24:17.565: g_regex_match_full: assertion 'regex != NULL' failed
ModemManager[2813]: <debug> [1684322657.565830] [ttyUSB2/at] <-- 'AT'

(ModemManager:2813): GLib-CRITICAL **: 13:24:17.565: g_regex_match_full: assertion 'regex != NULL' failed
malloc(): smallbin double linked list corrupted
Aborted

celticmagic avatar Aug 16 '23 19:08 celticmagic

Rune Morling (@ermo), 2023-05-18 12:11:58 UTC

@g66925

Thanks for responding. Will triage as Normal priority.

celticmagic avatar Aug 16 '23 19:08 celticmagic

Rune Morling (@ermo), 2023-05-18 12:18:43 UTC

This appears to depend on (at least) four different components:

  • kernel (for qmi/mbim drivers)
  • https://dev.getsol.us/source/modem-manager/
  • https://dev.getsol.us/source/libqmi/
  • https://dev.getsol.us/source/libmbim/

It's been a few years since this saw a stack upgrade + modem enablement run.

@joebonrichie / @HarveyDevel : guidance welcome?

celticmagic avatar Aug 16 '23 19:08 celticmagic

g66925 (@g66925), 2023-05-18 12:32:16 UTC

I do not think it is related to qmi or mbim driver. QMI works properly. Problem appears when ModemManager is trying to exchagning AT commands with module through serial ttyUSB.

celticmagic avatar Aug 16 '23 19:08 celticmagic

Joey Riches (@joebonrichie), 2023-05-18 13:00:12 UTC

Have you tried using screen to try sending AT commands to the modem manually? Similarly to this, https://unix.stackexchange.com/questions/89067/how-to-disable-pin-on-a-sim-card/313878#313878, how does it respond?

Could you also provide the exact usb modem you are using with lsusb

Also i'll note that I'm not sure anyone on the packaging team has hardware to test/update the ModemManager stack at the moment.

celticmagic avatar Aug 16 '23 19:08 celticmagic

g66925 (@g66925), 2023-05-18 13:12:09 UTC

I can talk to device using picocom without any problems.

I will check lsusb later.

celticmagic avatar Aug 16 '23 19:08 celticmagic

Joey Riches (@joebonrichie), 2023-05-19 12:51:59 UTC

Does the modemmanager update help? modem-manager, version: 1.18.12, release: 19

celticmagic avatar Aug 16 '23 19:08 celticmagic

@g66925 ping? Is this still an issue?

ermo avatar May 04 '24 01:05 ermo