NetworkManager/src/devices/wwan
Lubomir Rintel 34cfc5861a modem-broadband: avoid a crash if we fail to guess an APN
Don't proceed if the context was torn down on an error in
try_create_connect_properties().

  <info>  [1574092292.0225] manager: NetworkManager state is now CONNECTING
  <warn>  [1574092292.0228] modem-broadband[ttyV0]: failed to connect 'ttyV0': unable to determine the network id
  <info>  [1574092292.0230] device (ttyV0): state change: prepare -> failed (reason 'modem-init-failed', sys-iface-state: 'managed')
  <info>  [1574092292.0236] manager: NetworkManager state is now DISCONNECTED
  <warn>  [1574092292.0250] device (ttyV0): Activation: failed for connection 'ttyV0'

  (NetworkManager:69212): libnm-CRITICAL **: 16:51:32.025: ((libnm-core/nm-connection.c:193)): assertion '<dropped>' failed

  Thread 1 "NetworkManager" received signal SIGTRAP, Trace/breakpoint trap.
  0x00007ffff78da6e5 in _g_log_abort () from /lib64/libglib-2.0.so.0
  (gdb) bt
  #0  0x00007ffff78da6e5 in _g_log_abort () at /lib64/libglib-2.0.so.0
  #1  0x00007ffff78db9b6 in g_logv () at /lib64/libglib-2.0.so.0
  #2  0x00007ffff78dbb83 in g_log () at /lib64/libglib-2.0.so.0
  #3  0x000055555563fcd2 in _nm_g_return_if_fail_warning (line=line@entry=193, file=0x5555557ae221 "libnm-core/nm-connection.c", log_domain=0x5555557ae23c "libnm") at ./shared/nm-default.h:219
  #4  0x000055555563feba in _connection_get_setting_checkPython Exception <class 'gdb.error'> No type named TypeNode.:
   (connection=0x0, setting_type=) at libnm-core/nm-connection.c:193
  #5  _connection_get_setting_checkPython Exception <class 'gdb.error'> No type named TypeNode.:
   (connection=0x0, setting_type=) at libnm-core/nm-connection.c:191
  #6  0x00007fffe871f8b4 in nm_modem_get_connection_ip_type (self=self@entry=0x7fffd801c730, connection=0x0, error=error@entry=0x7fffffffc8e8) at src/devices/wwan/nm-modem.c:374
  #7  0x00007fffe871bfed in connect_context_step (self=0x7fffd801c730) at src/devices/wwan/nm-modem-broadband.c:591
  #8  0x00007fffe871c74b in modem_act_stage1_prepare (_self=0x7fffd801c730, connection=0x555555af5520, out_failure_reason=<optimized out>) at src/devices/wwan/nm-modem-broadband.c:687
  #9  0x00007fffe8720203 in nm_modem_act_stage1_prepare (self=0x7fffd801c730, req=0x555555b08a30, out_failure_reason=0x7fffffffcbe0) at src/devices/wwan/nm-modem.c:1045
  #10 0x0000555555705f1b in activate_stage1_device_prepare (self=0x555555a956a0) at src/devices/nm-device.c:6562
  #11 0x00005555556dcbca in activation_source_handle_cb (self=0x555555a956a0, addr_family=2) at src/devices/nm-device.c:6177
  #12 0x00007ffff78d0dcb in g_idle_dispatch () at /lib64/libglib-2.0.so.0
  #13 0x00007ffff78d44a0 in g_main_context_dispatch () at /lib64/libglib-2.0.so.0
  #14 0x00007ffff78d4830 in g_main_context_iterate.isra () at /lib64/libglib-2.0.so.0
  #15 0x00007ffff78d4b23 in g_main_loop_run () at /lib64/libglib-2.0.so.0
  #16 0x0000555555599ff4 in main (argc=<optimized out>, argv=<optimized out>) at src/main.c:451

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/338/
(cherry picked from commit 9ba55ea6a6)
2019-12-02 15:16:52 +01:00
..
tests meson: Remove devices tests' meson build files 2019-10-01 09:49:33 +02:00
libnm-wwan.ver wwan: add nm_modem_manager_get_modems() to iterate over modems 2019-09-22 16:05:50 +02:00
meson.build meson: Remove devices tests' meson build files 2019-10-01 09:49:33 +02:00
nm-device-modem.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-device-modem.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-modem-broadband.c modem-broadband: avoid a crash if we fail to guess an APN 2019-12-02 15:16:52 +01:00
nm-modem-broadband.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-modem-manager.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-modem-manager.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-modem-ofono.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-modem-ofono.h all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-modem.c device: fix setting MTU from connection when limited by parent 2019-10-10 15:08:16 +02:00
nm-modem.h device: fix setting MTU from connection when limited by parent 2019-10-10 15:08:16 +02:00
nm-service-providers.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00
nm-service-providers.h wwan: add service-providers.xml parser 2019-09-11 14:32:05 +02:00
nm-wwan-factory.c all: manually drop code comments with file description 2019-10-01 07:50:52 +02:00