NetworkManager crashes when opening connection editor from nm-applet

Bug #432452 reported by Torgny Johansson
50
This bug affects 9 people
Affects Status Importance Assigned to Milestone
PolicyKit
Fix Released
Medium
policykit-1 (Ubuntu)
Fix Released
High
Alexander Sack

Bug Description

Binary package hint: network-manager

Right-clicking nm-applet and selecting "Edit connections" make NetworkManager crash. 100% reproducable for me. Same thing happens if I build NM trunk from git.

ProblemType: Crash
Architecture: i386
CRDA: Error: [Errno 2] No such file or directory
CrashCounter: 1
Date: Fri Sep 18 14:16:54 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/sbin/NetworkManager
Gconf:

IfupdownConfig:
 auto lo
 iface lo inet loopback
IpRoute:

Package: network-manager 0.8~a~git.20090911t130220.4c77fa0-0ubuntu6
ProcCmdline: NetworkManager
ProcCwd: /
ProcEnviron: PATH=(custom, no user)
ProcVersionSignature: Ubuntu 2.6.31-10.34-generic
SegvAnalysis:
 Segfault happened at: 0x1b12a1 <g_object_unref+33>: cmpl $0x50,(%eax)
 PC (0x001b12a1) ok
 source "$0x50" ok
 destination "(%eax)" (0x00000094) not located in a known VMA region (needed writable region)!
SegvReason: writing NULL VMA
Signal: 11
SourcePackage: network-manager
StacktraceTop:
 g_object_unref () from /usr/lib/libgobject-2.0.so.0
 ?? ()
 g_object_unref () from /usr/lib/libgobject-2.0.so.0
 g_value_unset () from /usr/lib/libgobject-2.0.so.0
 g_signal_emit_valist () from /usr/lib/libgobject-2.0.so.0
Title: NetworkManager crashed with SIGSEGV in g_object_unref()
Uname: Linux 2.6.31-10-generic i686
UserGroups:

Revision history for this message
Torgny Johansson (torgny-johansson) wrote :
visibility: private → public
Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt (retraced)

StacktraceTop:IA__g_object_unref (_object=0x8586560)
dispose (object=0x85900d8) at nm-sysconfig-connection.c:488
IA__g_object_unref (_object=0x85900d8)
IA__g_value_unset (value=0x85806c0)
IA__g_signal_emit_valist (instance=0x85900d8, signal_id=51,

Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt (retraced)
Changed in network-manager (Ubuntu):
importance: Undecided → Medium
tags: removed: need-i386-retrace
Revision history for this message
Yunkwan (chanyunkwan0217) wrote :

This issue happens to me too.
Ubuntu Karmic Alpha6
intel dual core2

It crashes "nicely" everytime I try to edit the connection or creat a new wireless connection.

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

Created an attachment (id=30474)
_ref authority in _get

we got a bunch of NM crashes that seem to be due to i polkit not reffing the authority in _get ... attached an mbox patch that fixes this.

Revision history for this message
In , Alexander Sack (asac) wrote :
Revision history for this message
In , Martin Pitt (pitti) wrote :

This makes sense, since http://hal.freedesktop.org/docs/polkit/polkit-1-polkitauthority.html#polkit-authority-get says that the object must be unrefed when done with it.

Revision history for this message
In , Zeuthen (zeuthen) wrote :

Yeah, dcbw has been bugging me about this. Thanks for the patch. Committed.

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

potentially another variant of a crash caused by policy kit bug 438574

Changed in network-manager (Ubuntu):
assignee: nobody → Alexander Sack (asac)
status: New → In Progress
importance: Medium → High
Alexander Sack (asac)
affects: network-manager (Ubuntu) → policykit-1 (Ubuntu)
Revision history for this message
Alexander Sack (asac) wrote :

Uploading to ubuntu (via ftp to upload.ubuntu.com):
  Uploading policykit-1_0.94-1ubuntu1.dsc: done.
  Uploading policykit-1_0.94-1ubuntu1.diff.gz: done.
  Uploading policykit-1_0.94-1ubuntu1_source.changes: done.
Successfully uploaded packages.

Changed in policykit-1 (Ubuntu):
status: In Progress → Fix Committed
Changed in policykit:
status: Unknown → Confirmed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package policykit-1 - 0.94-1ubuntu1

---------------
policykit-1 (0.94-1ubuntu1) karmic; urgency=low

  * fix network-manager crashes when opening connection editor
    with system connections; crahes turned out to be caused by
    freed policy kit authority - fix involves propery reffing
    authority in singleton accessor (LP: #438574, #432452)
    - See: https://bugs.freedesktop.org/show_bug.cgi?id=24566
    - add 03_0001-authority-g_object_ref-authority-when-returning-sing.patch

 -- Alexander Sack <email address hidden> Fri, 16 Oct 2009 12:18:17 +0200

Changed in policykit-1 (Ubuntu):
status: Fix Committed → Fix Released
Changed in policykit:
status: Confirmed → Fix Released
Changed in policykit:
importance: Unknown → Medium
Changed in policykit:
importance: Medium → Unknown
Changed in policykit:
importance: Unknown → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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