nm-connection-editor crashs after clicking Cancel in the "add new connection" dialog

Bug #361115 reported by Ricardo Pérez López
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
network-manager-applet (Ubuntu)
Fix Released
High
Alexander Sack
Jaunty
Won't Fix
High
Alexander Sack

Bug Description

Binary package hint: network-manager

Steps to reproduce:

1. Open the Network Manager Connection Editor (nm-connection-editor), either from a terminal or right-clicking on the NM applet in the notification area.
2. Select one of the following tabs: Wired, Wireless or DSL.
3. Click on Add.
4. In the dialog that appears, click on Cancel.

Expected behavior: the dialog closes and you come back to the nm-connection-editor main window.

Actual behaviour: nm-connection-editor crashes with a core dump.

The bug is totally reproducible in my fully updated Jaunty:

$ LC_ALL=C nm-connection-editor

(nm-connection-editor:13181): GLib-CRITICAL **: g_hash_table_foreach: assertion `hash_table != NULL' failed

** (nm-connection-editor:13181): WARNING **: nm_connection_list_new: failed to load VPN plugins: Couldn't read VPN .name files directory /etc/NetworkManager/VPN.
**
ERROR:nm-connection-list.c:787:add_done_cb: code should not be reached
Cancelado (core dumped)

Revision history for this message
Ricardo Pérez López (ricardo) wrote :
Revision history for this message
Ricardo Pérez López (ricardo) wrote :
Revision history for this message
Ricardo Pérez López (ricardo) wrote :
Revision history for this message
Alexander Sack (asac) wrote :

patch

=== modified file 'ChangeLog'
--- a/ChangeLog 2009-04-13 13:21:42 +0000
+++ b/ChangeLog 2009-04-15 14:15:20 +0000
@@ -1,8 +1,14 @@
+2009-04-15 Alexander Sack <email address hidden>
+
+ * src/connection-editor/nm-connection-list.c
+ - (add_done_cb): prevent assertion crash when editor dialogs are
+ cancelled
+
 2009-04-12 Dan Williams <email address hidden>

  * Tag 0.7.1

 2009-04-04 Dan Williams <email address hidden>

  * Tag 0.7.1-rc4 (0.7.0.100)

=== modified file 'src/connection-editor/nm-connection-list.c'
--- a/src/connection-editor/nm-connection-list.c 2009-04-08 14:16:14 +0000
+++ b/src/connection-editor/nm-connection-list.c 2009-04-15 14:12:47 +0000
@@ -735,16 +735,18 @@ add_done_cb (NMConnectionEditor *editor,
    message = error->message;
   error_dialog (GTK_WINDOW (editor->window),
                 _("Error initializing editor"),
                 "%s", message);
   break;
  case GTK_RESPONSE_OK:
   add_connection (info->list, editor, connection, NULL, NULL);
   break;
+ case GTK_RESPONSE_CANCEL:
+ break;
  default:
   g_assert_not_reached ();
   break;
  }

  g_hash_table_remove (info->list->editors, connection);
 }

Changed in network-manager (Ubuntu):
assignee: nobody → Alexander Sack (asac)
importance: Undecided → High
milestone: none → later
status: New → In Progress
Revision history for this message
Alexander Sack (asac) wrote :

targetted for SRU.

Revision history for this message
Alexander Sack (asac) wrote :

properly indented one is in pastebin: http://paste.ubuntu.com/151479/plain/

affects: network-manager (Ubuntu Jaunty) → network-manager-applet (Ubuntu Jaunty)
Revision history for this message
Alexander Sack (asac) wrote :

this was committed upstream. The SRU we plan a week or so after release will pick this fix up from upstream.

Changed in network-manager-applet (Ubuntu Jaunty):
status: In Progress → Fix Committed
Revision history for this message
Alexander Sack (asac) wrote :

fixed in karmic

Changed in network-manager-applet (Ubuntu):
status: Fix Committed → Fix Released
Martin Pitt (pitti)
Changed in network-manager-applet (Ubuntu Jaunty):
milestone: later → none
status: Fix Committed → Won't Fix
Changed in network-manager-applet (Ubuntu):
milestone: later → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.