Bug 257802 - polkit-kde-agent-1 crash after two dialogues were opened [g_type_check_instance_is_a, g_object_unref, ..., PolkitQt1::Identity::operator=]
Summary: polkit-kde-agent-1 crash after two dialogues were opened [g_type_check_instan...
Status: RESOLVED FIXED
Alias: None
Product: policykit-kde-agent-1
Classification: Plasma
Component: polkit-kde-authentication-agent-1 (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Martin Bříza
URL:
Keywords:
: 263198 264673 273380 274204 274268 275735 276084 276765 280132 286874 288673 288884 288910 290417 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-11-24 18:10 UTC by Andrey Borzenkov
Modified: 2013-03-25 10:59 UTC (History)
21 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
New crash information added by DrKonqi (5.57 KB, text/plain)
2010-12-20 22:29 UTC, Michal Papis
Details
New crash information added by DrKonqi (3.15 KB, text/plain)
2011-04-30 08:48 UTC, ReckouNT
Details
New crash information added by DrKonqi (6.72 KB, text/plain)
2011-08-08 10:33 UTC, Gökçen Eraslan
Details
New crash information added by DrKonqi (2.54 KB, text/plain)
2011-08-24 14:32 UTC, linux_bugs
Details
New crash information added by DrKonqi (6.32 KB, text/plain)
2011-09-13 09:01 UTC, Bruno Friedmann
Details
New crash information added by DrKonqi (6.41 KB, text/plain)
2011-09-17 06:49 UTC, Bruno Friedmann
Details
New crash information added by DrKonqi (2.56 KB, text/plain)
2011-10-19 08:53 UTC, gerhard prochaska
Details
New crash information added by DrKonqi (4.14 KB, text/plain)
2011-12-24 08:04 UTC, David Tatarciak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrey Borzenkov 2010-11-24 18:10:23 UTC
Application: polkit-kde-authentication-agent-1 (0.97.1)
KDE Platform Version: 4.5.80 (4.6 Beta1)
Qt Version: 4.7.1
Operating System: Linux 2.6.36.1-desktop-1mnb x86_64
Distribution: "Mandriva Linux 2011.0"

-- Information about the crash:
- What I was doing when the application crashed:
polkit-kde-agent-1 GIT 99d1369a.

I started program that requested authentication;  I missed agent window because it does not get focus automatically and so started another instance of program that also requested authentication. This time I tried to enter password but polkit-agent was unresponsive and ignored OK completely. When I closed both agent instances one of them crashed (I believe, the last one closed).

-- Backtrace:
Application: PolicyKit1-KDE (polkit-kde-authentication-agent-1), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f8ee13d6720 (LWP 3258))]

Thread 3 (Thread 0x7f8ece174710 (LWP 3260)):
#0  g_main_context_acquire (context=0x18dea90) at gmain.c:2256
#1  0x00007f8edc4fd2d5 in g_main_context_iterate (context=0x18dea90, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2724
#2  0x00007f8edc4fddd2 in g_main_loop_run (loop=0x18deb70) at gmain.c:2988
#3  0x00007f8edbfff864 in gdbus_shared_thread_func (data=<value optimized out>) at gdbusprivate.c:277
#4  0x00007f8edc5245e6 in g_thread_create_proxy (data=0x18deb90) at gthread.c:1897
#5  0x00007f8edcc46d25 in start_thread () from /lib64/libpthread.so.0
#6  0x00007f8ede917efd in clone () from /lib64/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f8eccf8e710 (LWP 4041)):
#0  0x00007f8ede908e8d in read () from /lib64/libc.so.6
#1  0x00007f8edc4fedcb in read (data=<value optimized out>) at /usr/include/bits/unistd.h:45
#2  child_watch_helper_thread (data=<value optimized out>) at gmain.c:4011
#3  0x00007f8edc5245e6 in g_thread_create_proxy (data=0x19db500) at gthread.c:1897
#4  0x00007f8edcc46d25 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f8ede917efd in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f8ee13d6720 (LWP 3258)):
[KCrash Handler]
#6  g_type_check_instance_is_a (type_instance=0x1783480, iface_type=<value optimized out>) at gtype.c:3941
#7  0x00007f8edc27aa0b in g_object_unref (_object=0x1783480) at gobject.c:2646
#8  0x00007f8ee094644a in ~Data (this=<value optimized out>, other=<value optimized out>) at /usr/src/debug/polkit-qt-1-0.98.1/core/polkitqt1-identity.cpp:42
#9  operator= (this=<value optimized out>, other=<value optimized out>) at /usr/lib/qt4/include/QtCore/qshareddata.h:178
#10 PolkitQt1::Identity::operator= (this=<value optimized out>, other=<value optimized out>) at /usr/src/debug/polkit-qt-1-0.98.1/core/polkitqt1-identity.cpp:73
#11 0x0000000000409e99 in PolicyKitListener::initiateAuthentication (this=0x18bdc60, actionId=..., message=..., iconName=..., details=..., cookie=..., identities=..., result=0x198dc50)
    at /usr/src/debug/polkit-kde-agent-1/policykitlistener.cpp:84
#12 0x00007f8ee073172b in PolkitQt1::Agent::ListenerAdapter::polkit_qt_listener_initiate_authentication (this=<value optimized out>, listener=<value optimized out>, 
    action_id=0x19a7ae0 "org.freedesktop.network-manager-settings.system.modify", 
    message=0x19a7b17 "\320\241\320\270\321\201\321\202\320\265\320\274\320\275\320\260\321\217 \320\277\320\276\320\273\320\270\321\202\320\270\320\272\320\260 \320\267\320\260\320\277\321\200\320\265\321\211\320\260\320\265\321\202 \320\270\320\267\320\274\320\265\320\275\320\265\320\275\320\270\320\265 \321\201\320\270\321\201\321\202\320\265\320\274\320\275\321\213\321\205 \320\275\320\260\321\201\321\202\321\200\320\276\320\265\320\272", icon_name=0x19a7b85 "nm-icon", details=<value optimized out>, cookie=0x19a7b8d "cookie3", identities=0x7f8ec8001780, cancellable=0x7f8ec8002520, 
    result=0x18dcf00) at /usr/src/debug/polkit-qt-1-0.98.1/agent/listeneradapter.cpp:101
#13 0x00007f8ee0732819 in polkit_qt_listener_initiate_authentication (agent_listener=0x17830a0, action_id=0x19a7ae0 "org.freedesktop.network-manager-settings.system.modify", 
    message=0x19a7b17 "\320\241\320\270\321\201\321\202\320\265\320\274\320\275\320\260\321\217 \320\277\320\276\320\273\320\270\321\202\320\270\320\272\320\260 \320\267\320\260\320\277\321\200\320\265\321\211\320\260\320\265\321\202 \320\270\320\267\320\274\320\265\320\275\320\265\320\275\320\270\320\265 \321\201\320\270\321\201\321\202\320\265\320\274\320\275\321\213\321\205 \320\275\320\260\321\201\321\202\321\200\320\276\320\265\320\272", icon_name=0x19a7b85 "nm-icon", details=0x7f8ec8001220, cookie=0x19a7b8d "cookie3", identities=0x7f8ec8001780, cancellable=0x7f8ec8002520, 
    callback=0x7f8edbb40620 <auth_cb>, user_data=0x19a8370) at /usr/src/debug/polkit-qt-1-0.98.1/agent/polkitqtlistener.cpp:129
#14 0x00007f8edbb40436 in auth_agent_handle_begin_authentication (connection=<value optimized out>, sender=<value optimized out>, object_path=<value optimized out>, 
    interface_name=<value optimized out>, method_name=<value optimized out>, parameters=<value optimized out>, invocation=0x7f8ec8003180, user_data=0x18dee90) at polkitagentlistener.c:634
#15 auth_agent_handle_method_call (connection=<value optimized out>, sender=<value optimized out>, object_path=<value optimized out>, interface_name=<value optimized out>, 
    method_name=<value optimized out>, parameters=<value optimized out>, invocation=0x7f8ec8003180, user_data=0x18dee90) at polkitagentlistener.c:288
#16 0x00007f8edbff0ee0 in call_in_idle_cb (user_data=<value optimized out>) at gdbusconnection.c:4397
#17 0x00007f8edc4fcf83 in g_main_dispatch (context=0x178dae0) at gmain.c:2149
#18 g_main_context_dispatch (context=0x178dae0) at gmain.c:2702
#19 0x00007f8edc4fd760 in g_main_context_iterate (context=0x178dae0, block=1, dispatch=1, self=<value optimized out>) at gmain.c:2780
#20 0x00007f8edc4fd9fd in g_main_context_iteration (context=0x178dae0, may_block=1) at gmain.c:2843
#21 0x00007f8edfcd187f in QEventDispatcherGlib::processEvents (this=0x175cf90, flags=<value optimized out>) at kernel/qeventdispatcher_glib.cpp:415
#22 0x00007f8edf11473e in QGuiEventDispatcherGlib::processEvents (this=<value optimized out>, flags=<value optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#23 0x00007f8edfca5ae2 in QEventLoop::processEvents (this=<value optimized out>, flags=...) at kernel/qeventloop.cpp:149
#24 0x00007f8edfca5d2c in QEventLoop::exec (this=0x7fff045d14a0, flags=...) at kernel/qeventloop.cpp:201
#25 0x00007f8edfcaa1eb in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#26 0x000000000040a71d in main (argc=3, argv=0x7fff045d1798) at /usr/src/debug/polkit-kde-agent-1/main.cpp:44

Reported using DrKonqi
Comment 1 Michal Papis 2010-12-20 22:29:11 UTC
Created attachment 55115 [details]
New crash information added by DrKonqi

polkit-kde-authentication-agent-1 (0.99.0) on KDE Platform 4.5.85 (4.6 Beta2) using Qt 4.7.1

- Unusual behavior I noticed:

After each suspend and resume I get asked for password to enable wifi network. Password is not required because wifi enables itself quite fast. I Ignore the password request mostly and it lies in background. Those I found it related to orginall report.

-- Backtrace (Reduced):
#7  g_type_check_instance_is_a (type_instance=0x822b110, iface_type=80) at gtype.c:3941
#8  0xb5a77f5d in g_object_unref (_object=0x822b110) at gobject.c:2647
#9  0xb7311825 in ~Data (this=0x81809a8, other=...) at /usr/src/debug/polkit-qt-1-0.99.1/core/polkitqt1-identity.cpp:42
#10 operator= (this=0x81809a8, other=...) at /usr/include/QtCore/qshareddata.h:182
#11 PolkitQt1::Identity::operator= (this=0x81809a8, other=...) at /usr/src/debug/polkit-qt-1-0.99.1/core/polkitqt1-identity.cpp:73
Comment 2 Dario Andres 2011-01-29 13:49:20 UTC
[Comment from a bug triager]
From bug 264673:
polkit-kde-authentication-agent-1 crashed, as i hit cancel button in the
auth.dialog, while i was trying to update packages with kpackagekit. i tried to
configure "special windows settings" of polkit-kde right before that, because
the dialog box wasnt focused properly (it started minimized)
Comment 3 Dario Andres 2011-01-29 13:49:26 UTC
*** Bug 264673 has been marked as a duplicate of this bug. ***
Comment 4 ReckouNT 2011-04-30 08:48:40 UTC
Created attachment 59450 [details]
New crash information added by DrKonqi

polkit-kde-authentication-agent-1 (0.99.0) on KDE Platform 4.6.00 (4.6.0) "release 6" using Qt 4.7.1

- What I was doing when the application crashed:

Изменял параметры питания компьютера посредством меню "Параметры системы" (Яркость, блокировку экрана при восстановлении). Запрашивались права от root

I has changing power settings (brightness, display block after restore). root rights were need.


- Unusual behavior I noticed:

После нажатия кнопки "применить" запрашивались права root, затем тем не менее изменения не приходили в силу (тег "[изменён]" оставался на месте)
Так же компьютер не входил в ждущий режим, а просто блокировал экран. При разблокировке экрана на рабочем столе было окно, запрашивающее права root

After application of the settings, root rights were requested, nevertheless, the changes were not applied. root rights were need.
Also, computer won't to suspend when i was need it, it just blocked my screen. When it was unblocked, it was root rights asking window (for suspending)


- Custom settings of the application:

brightness, display block

...and sorry for my bad eng)
probably it was because of policy kit.

-- Backtrace (Reduced):
#7  0xb5b422f0 in g_type_check_instance_is_a () from /lib/libgobject-2.0.so.0
#8  0xb5b1cd1d in g_object_unref () from /lib/libgobject-2.0.so.0
#9  0xb73ba825 in PolkitQt1::Identity::operator=(PolkitQt1::Identity const&) () from /usr/lib/libpolkit-qt-core-1.so.1
#10 0x08050ab3 in _start ()
Comment 5 Lamarque V. Souza 2011-05-16 17:14:37 UTC
*** Bug 273380 has been marked as a duplicate of this bug. ***
Comment 6 Lamarque V. Souza 2011-05-16 17:15:09 UTC
*** Bug 263198 has been marked as a duplicate of this bug. ***
Comment 7 Christoph Feck 2011-06-20 15:13:37 UTC
*** Bug 276084 has been marked as a duplicate of this bug. ***
Comment 8 Christoph Feck 2011-06-20 15:14:01 UTC
*** Bug 275735 has been marked as a duplicate of this bug. ***
Comment 9 Christoph Feck 2011-06-20 15:14:50 UTC
*** Bug 274268 has been marked as a duplicate of this bug. ***
Comment 10 Gökçen Eraslan 2011-08-08 10:33:05 UTC
Created attachment 62656 [details]
New crash information added by DrKonqi

polkit-kde-authentication-agent-1 (0.99.0) on KDE Platform 4.6.5 (4.6.5) using Qt 4.7.2

- What I was doing when the application crashed:

I've tried to add a OpenConnect VPN connection using nm-connection-editor command of Gnome NM frontend and polkit-kde agent crashed.

-- Backtrace (Reduced):
#6  g_type_check_instance_is_a (type_instance=0x13f47a0, iface_type=<value optimized out>) at gtype.c:3961
#7  0x00007ff0b2650acb in g_object_unref (_object=0x13f47a0) at gobject.c:2668
#8  0x00007ff0b6f63ca4 in ~Data (this=<value optimized out>, __in_chrg=<value optimized out>) at /var/pisi/polkit-qt_1-0.99.0-10/work/polkit-qt-1-0.99.0/core/polkitqt1-identity.cpp:42
#9  ~QExplicitlySharedDataPointer (this=<value optimized out>, __in_chrg=<value optimized out>) at /usr/include/QtCore/qshareddata.h:161
#10 PolkitQt1::Identity::~Identity (this=<value optimized out>, __in_chrg=<value optimized out>) at /var/pisi/polkit-qt_1-0.99.0-10/work/polkit-qt-1-0.99.0/core/polkitqt1-identity.cpp:67
Comment 11 linux_bugs 2011-08-24 14:32:41 UTC
Created attachment 63112 [details]
New crash information added by DrKonqi

polkit-kde-authentication-agent-1 (0.99.0) on KDE Platform 4.6.00 (4.6.0) "release 6" using Qt 4.7.1

- What I was doing when the application crashed: I was trying to change the powersettings, root rights where needed	

- Unusual behavior I noticed: Sometimes the same crash occurs when I shutdown my laptop

-- Backtrace (Reduced):
#6  g_type_check_instance_is_a (type_instance=0xc048c0, iface_type=<value optimized out>) at gtype.c:3957
#7  0x00007f3ccd69ffcb in g_object_unref (_object=0xc048c0) at gobject.c:2668
#8  0x00007f3cd1f44903 in ~Data (this=0x703c88, other=<value optimized out>) at /usr/src/debug/polkit-qt-1-0.99.1/core/polkitqt1-identity.cpp:42
#9  operator= (this=0x703c88, other=<value optimized out>) at /usr/include/QtCore/qshareddata.h:182
#10 PolkitQt1::Identity::operator= (this=0x703c88, other=<value optimized out>) at /usr/src/debug/polkit-qt-1-0.99.1/core/polkitqt1-identity.cpp:73
Comment 12 Christoph Feck 2011-08-25 14:50:25 UTC
*** Bug 280132 has been marked as a duplicate of this bug. ***
Comment 13 Bruno Friedmann 2011-09-13 09:01:14 UTC
Created attachment 63610 [details]
New crash information added by DrKonqi

polkit-kde-authentication-agent-1 (0.99.0) on KDE Platform 4.7.1 (4.7.1) using Qt 4.7.3

- What I was doing when the application crashed:
During a session when the wireless in pnm is getting a new authentification ticket with the wifi ap, the key is visible in pnm applet. but no dialog box is proposed.
Even if the user is declared as Administrator of the system.

Killing hardware (switch of) the crash appear

-- Backtrace (Reduced):
#6  g_type_check_instance_is_a (type_instance=<optimized out>, iface_type=<optimized out>) at gtype.c:3952
[...]
#8  0x00007f7b646297d4 in ~Data (this=0x7a9290, __in_chrg=<optimized out>) at /usr/src/debug/polkit-qt-1-0.99.1/core/polkitqt1-identity.cpp:42
#9  ~QExplicitlySharedDataPointer (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/QtCore/qshareddata.h:161
#10 ~QExplicitlySharedDataPointer (this=<optimized out>, __in_chrg=<optimized out>) at /usr/src/debug/polkit-qt-1-0.99.1/core/polkitqt1-identity.cpp:67
#11 PolkitQt1::Identity::~Identity (this=<optimized out>, __in_chrg=<optimized out>) at /usr/src/debug/polkit-qt-1-0.99.1/core/polkitqt1-identity.cpp:67
Comment 14 Bruno Friedmann 2011-09-17 06:49:48 UTC
Created attachment 63714 [details]
New crash information added by DrKonqi

polkit-kde-authentication-agent-1 (0.99.0) on KDE Platform 4.7.1 (4.7.1) using Qt 4.7.4

- What I was doing when the application crashed:
open system settings, go to global policy, remove a existant group for example.
click apply. forget to fill the authorization dialog box, and close systemsettings.
Next time you open global policy you find that nothing has change, then remove the 
previous group or user, click apply and you get the crash

-- Backtrace (Reduced):
#6  g_type_check_instance_is_a (type_instance=<optimized out>, iface_type=<optimized out>) at gtype.c:3952
[...]
#8  0x00007f81bc0a37d4 in ~Data (this=0xa06c50, __in_chrg=<optimized out>) at /usr/src/debug/polkit-qt-1-0.99.1/core/polkitqt1-identity.cpp:42
#9  ~QExplicitlySharedDataPointer (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/QtCore/qshareddata.h:161
#10 ~QExplicitlySharedDataPointer (this=<optimized out>, __in_chrg=<optimized out>) at /usr/src/debug/polkit-qt-1-0.99.1/core/polkitqt1-identity.cpp:67
#11 PolkitQt1::Identity::~Identity (this=<optimized out>, __in_chrg=<optimized out>) at /usr/src/debug/polkit-qt-1-0.99.1/core/polkitqt1-identity.cpp:67
Comment 15 gerhard prochaska 2011-10-19 08:53:30 UTC
Created attachment 64698 [details]
New crash information added by DrKonqi

polkit-kde-authentication-agent-1 (0.99.0) on KDE Platform 4.6.00 (4.6.0) "release 6" using Qt 4.7.1

- What I was doing when the application crashed:
KPackageKit was started due to updates pending

- Unusual behavior I noticed:
Popup window: authentification not possible - KPackageKit
Details: Failed to obtain authetification

After the crash i had to update debugsymbols to create report; now KPackageKit was able to authentificate and download symbols. No changes were done to the system during that time.

-- Backtrace (Reduced):
#7  g_type_check_instance_is_a (type_instance=0x8264a50, iface_type=80) at gtype.c:3957
#8  0xb5bead1d in g_object_unref (_object=0x8264a50) at gobject.c:2668
#9  0xb7489825 in ~Data (this=0x81102e0, other=...) at /usr/src/debug/polkit-qt-1-0.99.1/core/polkitqt1-identity.cpp:42
#10 operator= (this=0x81102e0, other=...) at /usr/include/QtCore/qshareddata.h:182
#11 PolkitQt1::Identity::operator= (this=0x81102e0, other=...) at /usr/src/debug/polkit-qt-1-0.99.1/core/polkitqt1-identity.cpp:73
Comment 16 Christoph Feck 2011-11-17 22:59:55 UTC
*** Bug 286874 has been marked as a duplicate of this bug. ***
Comment 17 Markus Elfring 2011-12-02 10:50:46 UTC
It seems that I'm also affected by an issue like "crash happens out of nothing" (bug #286874).
Comment 18 Lamarque V. Souza 2011-12-10 19:19:17 UTC
*** Bug 288673 has been marked as a duplicate of this bug. ***
Comment 19 Lamarque V. Souza 2011-12-10 19:20:58 UTC
*** Bug 276765 has been marked as a duplicate of this bug. ***
Comment 20 Thijs 2011-12-13 15:51:30 UTC
*** Bug 288884 has been marked as a duplicate of this bug. ***
Comment 21 Thijs 2011-12-13 19:24:59 UTC
*** Bug 288910 has been marked as a duplicate of this bug. ***
Comment 22 David Tatarciak 2011-12-24 08:04:09 UTC
Created attachment 67080 [details]
New crash information added by DrKonqi

polkit-kde-authentication-agent-1 (0.99.0) on KDE Platform 4.7.4 (4.7.4) using Qt 4.8.0

- What I was doing when the application crashed:
trying to restart computer after apper sentinel crashed

-- Backtrace (Reduced):
#6  g_type_check_instance_is_a (type_instance=<optimized out>, iface_type=<optimized out>) at gtype.c:3952
[...]
#8  0x0000003fd320498a in polkit_agent_session_finalize (object=0x2875800) at polkitagentsession.c:149
[...]
#10 0x0000003fd2e050a4 in PolkitQt1::Agent::Session::~Session (this=0x28cde50, __in_chrg=<optimized out>) at /usr/src/debug/polkit-qt-1-0.99.0/agent/polkitqt1-agent-session.cpp:77
#11 0x0000003fd2e050e9 in PolkitQt1::Agent::Session::~Session (this=0x28cde50, __in_chrg=<optimized out>) at /usr/src/debug/polkit-qt-1-0.99.0/agent/polkitqt1-agent-session.cpp:78
#12 0x00007f60a6115b58 in QObject::event (this=0x28cde50, e=<optimized out>) at kernel/qobject.cpp:1175
Comment 23 Thijs 2012-01-02 18:14:13 UTC
*** Bug 290417 has been marked as a duplicate of this bug. ***
Comment 24 Jekyll Wu 2012-07-05 17:39:34 UTC
*** Bug 274204 has been marked as a duplicate of this bug. ***
Comment 25 Martin Bříza 2013-03-25 10:59:31 UTC
Git commit 4ed9c3fa043b70ee50176c4baacc07d1c73f1fce by Martin Briza.
Committed on 22/03/2013 at 15:52.
Pushed by mbriza into branch 'master'.

Fixed reference counting of GObjects

Gets us rid of some crashes and reduces memory leaking. There's a change it fixes crashes~
Related: bug 286935, bug 291977, bug 307323

M  +4    -0    agent/polkitqt1-agent-listener.cpp
M  +3    -0    agent/polkitqt1-agent-session.cpp
M  +10   -2    core/polkitqt1-details.cpp
M  +7    -0    core/polkitqt1-subject.cpp

http://commits.kde.org/polkit-qt-1/4ed9c3fa043b70ee50176c4baacc07d1c73f1fce