mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-30 17:50:14 +01:00
Testcase:
- add a bluetooth connection (with auto-activate)
$ nmcli con add type blue con-name phone bt-type panu addr 00:17:EA:84:E7:41
- make NM go to sleep (close a lid of laptop to suspend)
- switch off hardware wireless button
- resume the computer (open the lid)
Trace (from RHEL 7):
(NetworkManager:3619): GLib-GObject-WARNING **: invalid unclassed pointer in cast to 'NMDeviceBt'
(NetworkManager:3619): GLib-GObject-CRITICAL **: g_type_instance_get_private: assertion 'instance != NULL && instance->g_class != NULL' failed
NetworkManager[3619]: <warn> Error connecting with bluez: Timeout was reached
(NetworkManager:3619): GLib-GObject-WARNING **: invalid unclassed pointer in cast to 'NMDevice'
(NetworkManager:3619): GLib-GObject-CRITICAL **: g_type_instance_get_private: assertion 'instance != NULL && instance->g_class != NULL' failed
Program received signal SIGSEGV, Segmentation fault.
nm_device_state_changed (device=0x7f8ffe63c7f0, state=state@entry=NM_DEVICE_STATE_FAILED, reason=reason@entry=
NM_DEVICE_STATE_REASON_BT_FAILED) at devices/nm-device.c:6685
6685 g_warn_if_fail (priv->in_state_changed == FALSE);
Missing separate debuginfos, use: debuginfo-install ModemManager-glib-1.1.0-6.git20130913.el7.x86_64 dbus-glib-0.100-7.el7.x86_64 dbus-libs-1.6.12-8.el7.x86_64 glib2-2.40.0-2.el7.x86_64 glibc-2.17-58.el7.x86_64 gvfs-1.16.4-7.el7.x86_64 libbluray-0.2.3-5.el7.x86_64 libffi-3.0.13-11.el7.x86_64 libgcc-4.8.3-5.el7.x86_64 libgudev1-208-11.el7_0.2.x86_64 libndp-1.2-4.el7.x86_64 libnl3-3.2.21-6.el7.x86_64 libselinux-2.2.2-6.el7.x86_64 libsoup-2.46.0-2.el7.x86_64 libuuid-2.23.2-16.el7.x86_64 libxml2-2.9.1-5.el7.x86_64 nspr-4.10.6-2.el7.x86_64 nss-3.16.2-4.el7.x86_64 nss-softokn-3.16.2-2.el7.x86_64 nss-softokn-freebl-3.16.2-2.el7.x86_64 nss-util-3.16.2-2.el7.x86_64 pcre-8.32-13.el7.x86_64 polkit-0.112-5.el7.x86_64 sqlite-3.7.17-4.el7.x86_64 systemd-libs-208-11.el7_0.2.x86_64 teamd-1.12-1.el7.x86_64 xz-libs-5.1.2-8alpha.el7.x86_64 zlib-1.2.7-13.el7.x86_64
(gdb) DHCPREQUEST on enp0s25 to 255.255.255.255 port 67 (xid=0x566289d3)
DHCPACK from 10.34.0.254 (xid=0x566289d3)
bt
#0 nm_device_state_changed (device=0x7f8ffe63c7f0, state=state@entry=NM_DEVICE_STATE_FAILED, reason=reason@entry=
NM_DEVICE_STATE_REASON_BT_FAILED) at devices/nm-device.c:6685
#1 0x00007f8fee0847bf in bluez_connect_cb (object=<optimized out>, res=<optimized out>, user_data=<optimized out>)
at nm-device-bt.c:738
#2 0x00007f8ff93eb557 in g_simple_async_result_complete (simple=0x7f8ffe67d8a0) at gsimpleasyncresult.c:763
#3 0x00007f8fee07ec85 in bluez_connect_cb (dbus_connection=<optimized out>, res=0x7f8ffe67d730, user_data=<optimized out>)
at nm-bluez-device.c:484
#4 0x00007f8ff93eb557 in g_simple_async_result_complete (simple=0x7f8ffe67d730) at gsimpleasyncresult.c:763
#5 0x00007f8ff944637f in g_dbus_connection_call_done (source=<optimized out>, result=<optimized out>, user_data=0x7f8ffe64a840)
at gdbusconnection.c:5492
#6 0x00007f8ff93eb557 in g_simple_async_result_complete (simple=0x7f8ffe66de30) at gsimpleasyncresult.c:763
#7 0x00007f8ff93eb5b9 in complete_in_idle_cb (data=<optimized out>) at gsimpleasyncresult.c:775
#8 0x00007f8ff8c3b9ea in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#9 0x00007f8ff8c3bd38 in g_main_context_iterate.isra.24 () from /lib64/libglib-2.0.so.0
#10 0x00007f8ff8c3c00a in g_main_loop_run () from /lib64/libglib-2.0.so.0
#11 0x00007f8ffcaba9ba in main (argc=1, argv=0x7ffff6b335b8) at main.c:642
(gdb)
|
||
|---|---|---|
| .. | ||
| devices | ||
| dhcp-manager | ||
| dns-manager | ||
| dnsmasq-manager | ||
| firewall-manager | ||
| platform | ||
| ppp-manager | ||
| rdisc | ||
| settings | ||
| supplicant-manager | ||
| tests | ||
| vpn-manager | ||
| main.c | ||
| Makefile.am | ||
| NetworkManagerUtils.c | ||
| NetworkManagerUtils.h | ||
| nm-activation-request.c | ||
| nm-activation-request.h | ||
| nm-active-connection.c | ||
| nm-active-connection.h | ||
| nm-auth-subject.c | ||
| nm-auth-subject.h | ||
| nm-config.c | ||
| nm-config.h | ||
| nm-connection-provider.c | ||
| nm-connection-provider.h | ||
| nm-connectivity.c | ||
| nm-connectivity.h | ||
| nm-dbus-manager.c | ||
| nm-dbus-manager.h | ||
| nm-dcb.c | ||
| nm-dcb.h | ||
| nm-dhcp4-config.c | ||
| nm-dhcp4-config.h | ||
| nm-dhcp6-config.c | ||
| nm-dhcp6-config.h | ||
| nm-dispatcher.c | ||
| nm-dispatcher.h | ||
| nm-ip4-config.c | ||
| nm-ip4-config.h | ||
| nm-ip6-config.c | ||
| nm-ip6-config.h | ||
| nm-logging.c | ||
| nm-logging.h | ||
| nm-manager-auth.c | ||
| nm-manager-auth.h | ||
| nm-manager.c | ||
| nm-manager.h | ||
| nm-policy.c | ||
| nm-policy.h | ||
| nm-posix-signals.c | ||
| nm-posix-signals.h | ||
| nm-properties-changed-signal.c | ||
| nm-properties-changed-signal.h | ||
| nm-rfkill-manager.c | ||
| nm-rfkill-manager.h | ||
| nm-session-monitor-ck.c | ||
| nm-session-monitor-null.c | ||
| nm-session-monitor-systemd.c | ||
| nm-session-monitor.h | ||
| nm-session-utils.c | ||
| nm-session-utils.h | ||
| nm-sleep-monitor-systemd.c | ||
| nm-sleep-monitor-upower.c | ||
| nm-sleep-monitor.h | ||
| nm-types.h | ||
| org.freedesktop.NetworkManager.conf | ||