nmcli assertions with bridging patches



I'm getting crashes and assertions form nmcli with network manager and libnm built with the bridging patches. It happens when trying to construct a bridge object. The rebuild libnm is installed on the target. I'm assuming this has to do with a the new bridge type not being registered properly with glib. Can anyone provide more information?


Assertion, stack text, and function where it dies:

Starting program: /usr/bin/nmcli con
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

(process:9778): GLib-GObject-CRITICAL **: g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed

(process:9778): GLib-GIO-CRITICAL **: g_initable_init: assertion `G_IS_INITABLE (initable)' failed

(process:9778): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6fc9af8 in _nm_object_create (type=<optimized out>, connection=0x634008, path=0x664620 "/org/freedesktop/NetworkManager/Devices/6") at nm-object.c:460
460     nm-object.c: No such file or directory.
(gdb) bt
#0  0x00007ffff6fc9af8 in _nm_object_create (type=<optimized out>, connection=0x634008, path=0x664620 "/org/freedesktop/NetworkManager/Devices/6") at nm-object.c:460
#1  0x00007ffff6fcae8a in handle_object_array_property (self=<optimized out>, property_name=<optimized out>, value=<optimized out>, pi=0x662460, synchronously=1) at nm-object.c:741
#2  0x00007ffff6fcb2a4 in handle_property_changed (self=0x65a940, dbus_name=<optimized out>, value=0x6645b0, synchronously=1) at nm-object.c:817
#3  0x00007ffff6fcb4e4 in process_properties_changed (synchronously=1, properties=0x661c60, self=0x65a940) at nm-object.c:848
#4  process_properties_changed (self=0x65a940, properties=0x661c60, synchronously=1) at nm-object.c:837
#5  0x00007ffff6fcc61a in _nm_object_reload_properties (object=0x65a940, error=0x7fffffffdf18) at nm-object.c:985
#6  0x00007ffff6fc9ac5 in _nm_object_create (type=<optimized out>, connection=0x634008, path=0x6580a0 "/org/freedesktop/NetworkManager/ActiveConnection/10") at nm-object.c:457
#7  0x00007ffff6fcae8a in handle_object_array_property (self=<optimized out>, property_name=<optimized out>, value=<optimized out>, pi=0x6563e0, synchronously=1) at nm-object.c:741
#8  0x00007ffff6fcb2a4 in handle_property_changed (self=0x63b010, dbus_name=<optimized out>, value=0x657f60, synchronously=1) at nm-object.c:817
#9  0x00007ffff6fcb4e4 in process_properties_changed (synchronously=1, properties=0x62af60, self=0x63b010) at nm-object.c:848
#10 process_properties_changed (self=0x63b010, properties=0x62af60, synchronously=1) at nm-object.c:837
#11 0x00007ffff6fcc61a in _nm_object_reload_properties (object=0x63b010, error=0x7fffffffe158) at nm-object.c:985
#12 0x00007ffff6fcda11 in init_sync (initable=<optimized out>, cancellable=0x0, error=0x7fffffffe158) at nm-client.c:1396
#13 0x00007ffff6fcbdcf in _nm_object_ensure_inited (object=0x63b010) at nm-object.c:1014
#14 0x00007ffff6fcfc4a in nm_client_new () at nm-client.c:1158
#15 0x0000000000417072 in nmc_get_client (nmc=<optimized out>) at nmcli.c:255
#16 0x00000000004186d3 in nmc_versions_match (nmc=0x7fffffffe430) at utils.c:478
#17 0x000000000040e8a6 in do_connections (nmc=0x7fffffffe430, argc=0, argv=0x7fffffffe658) at connections.c:1847
#18 0x00000000004171c2 in do_cmd (argv0=0x7fffffffe89e "con", argv=0x7fffffffe650, argc=1, nmc=0x7fffffffe430) at nmcli.c:106
#19 parse_command_line (argv=0x7fffffffe648, argc=2, nmc=0x7fffffffe430) at nmcli.c:222
#20 start (data=0x7fffffffe540) at nmcli.c:312
#21 0x00007ffff7499d53 in g_main_dispatch (context=0x630d10) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:2539
#22 g_main_context_dispatch (context=0x630d10) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3075
#23 0x00007ffff749a0a0 in g_main_context_iterate (dispatch=1, block=<optimized out>, context=0x630d10, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3146
#24 g_main_context_iterate (context=0x630d10, block=<optimized out>, dispatch=1, self=<optimized out>) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3083
#25 0x00007ffff749a49a in g_main_loop_run (loop=0x630860) at /build/buildd/glib2.0-2.32.3/./glib/gmain.c:3340
#26 0x000000000040a1f5 in main (argc=<optimized out>, argv=<optimized out>) at nmcli.c:344
(gdb) f 0
#0  0x00007ffff6fc9af8 in _nm_object_create (type=<optimized out>, connection=0x634008, path=0x664620 "/org/freedesktop/NetworkManager/Devices/6") at nm-object.c:460
460     in nm-object.c
(gdb) p error
$1 = (GError *) 0x0
(gdb) 



static GObject *
_nm_object_create (GType type, DBusGConnection *connection, const char *path)
{
	NMObjectTypeFunc type_func;
	GObject *object;
	GError *error = NULL;

	type_func = g_hash_table_lookup (type_funcs, GSIZE_TO_POINTER (type));
	if (type_func)
		type = type_func (connection, path);

	if (type == G_TYPE_INVALID) {
		g_warning ("Could not create object for %s: unknown object type", path);
		return NULL;
	}

	object = g_object_new (type,
	                       NM_OBJECT_DBUS_CONNECTION, connection,
	                       NM_OBJECT_DBUS_PATH, path,
	                       NULL);         <----------------  g_object_new: assertion `G_TYPE_IS_OBJECT (object_type)' failed
	if (!g_initable_init (G_INITABLE (object), NULL, &error)) {        <----- g_initable_init: assertion `G_IS_INITABLE (initable)' failed
		g_object_unref (object);
		object = NULL;
		g_warning ("Could not create object for %s: %s", path, error);        <------- error is NULL here
		g_error_free (error);
	}

	return object;
}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]