#793025 /usr/bin/nm-applet: nm-applet crashes with SIGTRAP

Package:
network-manager-gnome
Source:
network-manager-applet
Description:
network management framework (GNOME frontend)
Submitter:
Matias Wilkman
Date:
2015-07-25 17:09:10 UTC
Severity:
important
#793025#5
Date:
2015-07-20 14:51:47 UTC
From:
To:
Dear Team,

I've run across a crashing bug in nm-applet.

   * What led up to the situation?
	Using nm-applet while connected via wireless.
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
	Started up the applet, connected to a network, and waited.
   * What was the outcome of this action?
	A crash with the trap signal.
   * What outcome did you expect instead?
	Stability.

Here's what gdb has to say:

(nm-applet:24956): GLib-CRITICAL **: g_variant_builder_end: assertion 'is_valid_builder (builder)' failed

(nm-applet:24956): GLib-CRITICAL **: g_variant_get_type: assertion 'value != NULL' failed

(nm-applet:24956): GLib-CRITICAL **: g_variant_type_is_array: assertion 'g_variant_type_check (type)' failed

(nm-applet:24956): GLib-CRITICAL **: g_variant_get_type_string: assertion 'value != NULL' failed

(nm-applet:24956): GLib-ERROR **: g_variant_new: expected array GVariantBuilder but the built value has type '(null)'

Program received signal SIGTRAP, Trace/breakpoint trap.
g_logv (log_domain=0x7ffff34044ce "GLib", log_level=G_LOG_LEVEL_ERROR,
    format=<optimized out>, args=args@entry=0x7fffffffdb60)
    at /tmp/buildd/glib2.0-2.44.1/./glib/gmessages.c:1046
1046	/tmp/buildd/glib2.0-2.44.1/./glib/gmessages.c: No such file or directory.
(gdb) bt
#0  0x00007ffff33c3d00 in g_logv (log_domain=0x7ffff34044ce "GLib", log_level=G_LOG_LEVEL_ERROR, format=<optimized out>, args=args@entry=0x7fffffffdb60)
    at /tmp/buildd/glib2.0-2.44.1/./glib/gmessages.c:1046
#1  0x00007ffff33c3f3f in g_log (log_domain=log_domain@entry=0x7ffff34044ce "GLib", log_level=log_level@entry=G_LOG_LEVEL_ERROR, format=format@entry=0x7ffff345d5b8 "g_variant_new: expected array GVariantBuilder but the built value has type '%s'") at /tmp/buildd/glib2.0-2.44.1/./glib/gmessages.c:1079
#2  0x00007ffff33f4d15 in g_variant_valist_new_nnp (str=0x7fffffffddc8, ptr=<optimized out>) at /tmp/buildd/glib2.0-2.44.1/./glib/gvariant.c:4618
#3  0x00007ffff33f61d6 in g_variant_valist_new (app=0x7fffffffddf0, str=0x7fffffffddc8) at /tmp/buildd/glib2.0-2.44.1/./glib/gvariant.c:4846
#4  0x00007ffff33f61d6 in g_variant_valist_new (str=str@entry=0x7fffffffddc8, app=app@entry=0x7fffffffddf0)
    at /tmp/buildd/glib2.0-2.44.1/./glib/gvariant.c:5028
#5  0x00007ffff33f633b in g_variant_valist_new (str=str@entry=0x7fffffffddc8, app=app@entry=0x7fffffffddf0)
    at /tmp/buildd/glib2.0-2.44.1/./glib/gvariant.c:5080
#6  0x00007ffff33f66d7 in g_variant_new_va (format_string=0x441c9b "{sv}}", endptr=0x0, app=0x7fffffffddf0)
    at /tmp/buildd/glib2.0-2.44.1/./glib/gvariant.c:5256
#7  0x00007ffff33f6eed in g_variant_builder_add (builder=0x7fffffffdf80, format_string=<optimized out>) at /tmp/buildd/glib2.0-2.44.1/./glib/gvariant.c:5412
---Type <return> to continue, or q <return> to quit---
#8  0x000000000041d7eb in keyring_find_secrets_cb (source=0x0, result=0x98c740, user_data=0x7a92e0) at applet-agent.c:379
#9  0x00007ffff3b4cdf7 in g_simple_async_result_complete (simple=0x98c740 [GSimpleAsyncResult]) at /tmp/buildd/glib2.0-2.44.1/./gio/gsimpleasyncresult.c:763
#10 0x00007ffff742f561 in  () at /usr/lib/x86_64-linux-gnu/libsecret-1.so.0
#11 0x00007ffff3b4cdf7 in g_simple_async_result_complete (simple=0x7a9040 [GSimpleAsyncResult]) at /tmp/buildd/glib2.0-2.44.1/./gio/gsimpleasyncresult.c:763
#12 0x00007ffff3b4ce59 in complete_in_idle_cb (data=<optimized out>)
    at /tmp/buildd/glib2.0-2.44.1/./gio/gsimpleasyncresult.c:775
#13 0x00007ffff33bcb4d in g_main_context_dispatch (context=0x68d3c0)
    at /tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:3122
#14 0x00007ffff33bcb4d in g_main_context_dispatch (context=context@entry=0x68d3c0) at /tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:3737
#15 0x00007ffff33bcf20 in g_main_context_iterate (context=0x68d3c0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at /tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:3808
#16 0x00007ffff33bd242 in g_main_loop_run (loop=0x6a2760)
    at /tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:4002
#17 0x0000000000412f82 in main (argc=1, argv=0x7fffffffe348) at main.c:84

#793025#10
Date:
2015-07-25 17:05:04 UTC
From:
To:
A more detailed backtrace:

nm-applet-Message: No keyring secrets found for
ElisaKoti73/802-11-wireless-security; asking user.

(nm-applet:31107): GLib-CRITICAL **: g_variant_builder_end: assertion
'is_valid_builder (builder)' failed

(nm-applet:31107): GLib-CRITICAL **: g_variant_get_type: assertion 'value
!= NULL' failed

(nm-applet:31107): GLib-CRITICAL **: g_variant_type_is_array: assertion
'g_variant_type_check (type)' failed

(nm-applet:31107): GLib-CRITICAL **: g_variant_get_type_string: assertion
'value != NULL' failed

(nm-applet:31107): GLib-ERROR **: g_variant_new: expected array
GVariantBuilder but the built value has type '(null)'

Program received signal SIGTRAP, Trace/breakpoint trap.
g_logv (log_domain=0x7ffff34024ce "GLib", log_level=G_LOG_LEVEL_ERROR,
     format=<optimized out>, args=args@entry=0x7fffffffdb50)
     at /tmp/buildd/glib2.0-2.44.1/./glib/gmessages.c:1046
1046	/tmp/buildd/glib2.0-2.44.1/./glib/gmessages.c: No such file or
directory.
(gdb) bt full
#0  0x00007ffff33c1d00 in g_logv (log_domain=0x7ffff34024ce "GLib",
log_level=G_LOG_LEVEL_ERROR, format=<optimized out>,
args=args@entry=0x7fffffffdb50)
     at /tmp/buildd/glib2.0-2.44.1/./glib/gmessages.c:1046
         domain = 0x0
         data = 0x0
         depth = 0
         log_func = 0x7ffff33c1590 <g_log_default_handler>
         domain_fatal_mask = <optimized out>
         masquerade_fatal = 0
         test_level = <optimized out>
         was_fatal = <optimized out>
         was_recursion = <optimized out>
         msg = 0x9adae0 "g_variant_new: expected array GVariantBuilder but
the built value has type '(null)'"
         msg_alloc = 0x9adae0 "g_variant_new: expected array
GVariantBuilder but the built value has type '(null)'"
         i = 2
#1  0x00007ffff33c1f3f in g_log
(log_domain=log_domain@entry=0x7ffff34024ce "GLib",
log_level=log_level@entry=G_LOG_LEVEL_ERROR,
format=format@entry=0x7ffff345b5b8 "g_variant_new: expected array
GVariantBuilder but the built value has type '%s'") at
/tmp/buildd/glib2.0-2.44.1/./glib/gmessages.c:1079
         args =
---Type <return> to continue, or q <return> to quit---
             {{gp_offset = 32, fp_offset = 48, overflow_arg_area =
0x7fffffffdc30, reg_save_area = 0x7fffffffdb70}}
#2  0x00007ffff33f2d15 in g_variant_valist_new_nnp (str=0x7fffffffddb8,
ptr=<optimized out>) at /tmp/buildd/glib2.0-2.44.1/./glib/gvariant.c:4618
         type = 0x0
         value = 0x0
         __FUNCTION__ = "g_variant_valist_new_nnp"
#3  0x00007ffff33f41d6 in g_variant_valist_new (app=0x7fffffffdde0,
str=0x7fffffffddb8) at /tmp/buildd/glib2.0-2.44.1/./glib/gvariant.c:4846
         __FUNCTION__ = "g_variant_valist_new"
#4  0x00007ffff33f41d6 in g_variant_valist_new
(str=str@entry=0x7fffffffddb8, app=app@entry=0x7fffffffdde0)
     at /tmp/buildd/glib2.0-2.44.1/./glib/gvariant.c:5028
         __FUNCTION__ = "g_variant_valist_new"
#5  0x00007ffff33f433b in g_variant_valist_new
(str=str@entry=0x7fffffffddb8, app=app@entry=0x7fffffffdde0)
     at /tmp/buildd/glib2.0-2.44.1/./glib/gvariant.c:5080
         b =
             {x = {0, 7482144, 7482146, 0, 2, 2, 8722336, 2, 1, 2,
1033660112, 0, 0, 0, 0, 0}}
         __FUNCTION__ = "g_variant_valist_new"
#6  0x00007ffff33f46d7 in g_variant_new_va (format_string=0x441c9b
"{sv}}", endp---Type <return> to continue, or q <return> to quit---
tr=0x0, app=0x7fffffffdde0)
     at /tmp/buildd/glib2.0-2.44.1/./glib/gvariant.c:5256
         value = <optimized out>
#7  0x00007ffff33f4eed in g_variant_builder_add (builder=0x7fffffffdf70,
format_string=<optimized out>) at
/tmp/buildd/glib2.0-2.44.1/./glib/gvariant.c:5412
         variant = <optimized out>
         ap =
             {{gp_offset = 32, fp_offset = 48, overflow_arg_area =
0x7fffffffdec0, reg_save_area = 0x7fffffffde00}}
#8  0x000000000041d7eb in keyring_find_secrets_cb (source=0x0,
result=0x7fffdc0058e0, user_data=0x9b7840) at applet-agent.c:379
         r = 0x9b7840
         error = 0x0
         search_error = 0x0
         connection_id = 0x849c80 "ElisaKoti73"
         builder =
             {x = {0, 7950976, 7950977, 0, 0, 18446744073709551615,
10205440, 8, 0, 3, 1033660112, 0, 0, 0, 0, 0}}
         secrets = 0x7e86d0
         settings = 0x0
         list = 0x0
         iter = 0x0
---Type <return> to continue, or q <return> to quit---
         hint_found = 0
         ask = 0
#9  0x00007ffff3b4adf7 in g_simple_async_result_complete
(simple=0x7fffdc0058e0 [GSimpleAsyncResult])
     at /tmp/buildd/glib2.0-2.44.1/./gio/gsimpleasyncresult.c:763
         current_source = 0x994390
         current_context = <optimized out>
         __FUNCTION__ = "g_simple_async_result_complete"
#10 0x00007ffff742f561 in  () at /usr/lib/x86_64-linux-gnu/libsecret-1.so.0
#11 0x00007ffff3b4adf7 in g_simple_async_result_complete (simple=0x724b10
[GSimpleAsyncResult]) at
/tmp/buildd/glib2.0-2.44.1/./gio/gsimpleasyncresult.c:763
         current_source = 0x994390
         current_context = <optimized out>
         __FUNCTION__ = "g_simple_async_result_complete"
#12 0x00007ffff3b4ae59 in complete_in_idle_cb (data=<optimized out>)
     at /tmp/buildd/glib2.0-2.44.1/./gio/gsimpleasyncresult.c:775
         simple = <optimized out>
#13 0x00007ffff33bab4d in g_main_context_dispatch (context=0x68d250)
     at /tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:3122
         dispatch = 0x7ffff33b7610 <g_idle_dispatch>
         prev_source = 0x0
         was_in_call = 0
---Type <return> to continue, or q <return> to quit---
         user_data = 0x724b10
         callback = 0x7ffff3b4ae50 <complete_in_idle_cb>
         cb_funcs = <optimized out>
         cb_data = 0x7e3980
         need_destroy = <optimized out>
         source = 0x994390
         current = 0x6d2670
         i = 0
#14 0x00007ffff33bab4d in g_main_context_dispatch
(context=context@entry=0x68d250) at
/tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:3737
#15 0x00007ffff33baf20 in g_main_context_iterate (context=0x68d250,
block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
     at /tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:3808
         max_priority = 0
         timeout = 0
         some_ready = 1
         nfds = <optimized out>
         allocated_nfds = 4
         fds = 0x8c6a00
#16 0x00007ffff33bb242 in g_main_loop_run (loop=0x6bb940)
     at /tmp/buildd/glib2.0-2.44.1/./glib/gmain.c:4002
         __FUNCTION__ = "g_main_loop_run"
---Type <return> to continue, or q <return> to quit---
#17 0x0000000000412f82 in main (argc=1, argv=0x7fffffffe338) at main.c:84
         applet = 0x6c6050 [NMApplet]
         i = 1