Bug 307323 - polkit-kde-agent crashed when KDE starting
Summary: polkit-kde-agent crashed when KDE starting
Status: RESOLVED FIXED
Alias: None
Product: policykit-kde-agent-1
Classification: Plasma
Component: polkit-kde-authentication-agent-1 (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Martin Bříza
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-24 13:30 UTC by Qingtang Zhou
Modified: 2013-03-25 10:59 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Qingtang Zhou 2012-09-24 13:30:53 UTC
Application: polkit-kde-authentication-agent-1 (0.99.0)
KDE Platform Version: 4.9.1
Qt Version: 4.8.2
Operating System: Linux 3.6.0-0.rc6.git2.1.fc18.x86_64 x86_64
Distribution (Platform): Fedora RPMs

-- Information about the crash:
- What I was doing when the application crashed:

Just reboot my box and wait kde startup. When KDE env startup, I got this crash report.

The crash can be reproduced some of the time.

-- Backtrace:
Application: PolicyKit1-KDE (polkit-kde-authentication-agent-1), signal: Aborted
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fc13c12f880 (LWP 26293))]

Thread 2 (Thread 0x7fc130a40700 (LWP 26333)):
#0  0x000000306c8eef3d in poll () from /lib64/libc.so.6
#1  0x0000003070c47bf4 in g_main_context_poll (n_fds=1, fds=0x7fc12c0010c0, timeout=-1, context=0x1d468d0, priority=<optimized out>) at gmain.c:3584
#2  g_main_context_iterate (context=0x1d468d0, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3285
#3  0x0000003070c48052 in g_main_loop_run (loop=0x1d46860) at gmain.c:3484
#4  0x00000030810d60c6 in gdbus_shared_thread_func (user_data=0x1d468a0) at gdbusprivate.c:277
#5  0x0000003070c6b6e5 in g_thread_proxy (data=0x1d43a80) at gthread.c:797
#6  0x000000306d407ef5 in start_thread (arg=0x7fc130a40700) at pthread_create.c:308
#7  0x000000306c8f798d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fc13c12f880 (LWP 26293)):
[KCrash Handler]
#5  0x000000306c836c65 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#6  0x000000306c838418 in __GI_abort () at abort.c:90
#7  0x000000306c8783ab in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x306c983b60 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:196
#8  0x000000306c87fe24 in malloc_printerr (ptr=0x1d3d0f0, str=0x306c983ce0 "double free or corruption (!prev)", action=3) at malloc.c:4916
#9  _int_free (av=0x306cbbe740 <main_arena>, p=0x1d3d0e0, have_lock=0) at malloc.c:3768
#10 0x0000003070c4d6cf in g_free (mem=0x1d3d0f0) at gmem.c:252
#11 0x0000003070c259a9 in g_get_charset (charset=charset@entry=0x7fff819b9ce8) at gcharset.c:201
#12 0x0000003070c4e595 in g_log_default_handler (log_domain=log_domain@entry=0x30720391e4 "GLib-GObject", log_level=log_level@entry=G_LOG_LEVEL_CRITICAL, message=message@entry=0x1d4d590 "g_object_unref: assertion `G_IS_OBJECT (object)' failed", unused_data=<optimized out>) at gmessages.c:1356
#13 0x0000003070c4eb80 in g_logv (log_domain=0x30720391e4 "GLib-GObject", log_level=G_LOG_LEVEL_CRITICAL, format=<optimized out>, args=args@entry=0x7fff819b9e48) at gmessages.c:945
#14 0x0000003070c4ed72 in g_log (log_domain=<optimized out>, log_level=<optimized out>, format=<optimized out>) at gmessages.c:1003
#15 0x000000307ce10424 in ~Data (this=<optimized out>, __in_chrg=<optimized out>) at /usr/src/debug/polkit-qt-1-0.103.0/core/polkitqt1-subject.cpp:44
#16 ~QExplicitlySharedDataPointer (this=<optimized out>, __in_chrg=<optimized out>) at /usr/include/QtCore/qshareddata.h:166
#17 PolkitQt1::Subject::~Subject (this=0x66b5, __in_chrg=<optimized out>) at /usr/src/debug/polkit-qt-1-0.103.0/core/polkitqt1-subject.cpp:75
#18 0x0000000000408946 in ~UnixSessionSubject (this=0x7fff819b9f30, __in_chrg=<optimized out>) at /usr/include/polkit-qt-1/polkitqt1-subject.h:217
#19 PolicyKitKDE::PolicyKitKDE (this=<optimized out>) at /usr/src/debug/polkit-kde-agent-1-0.99.0/policykitkde.cpp:40
#20 0x000000000040846f in main (argc=1, argv=0x7fff819ba1b8) at /usr/src/debug/polkit-kde-agent-1-0.99.0/main.cpp:45

Possible duplicates by query: bug 306284, bug 306240, bug 305122, bug 302750, bug 302581.

Reported using DrKonqi
Comment 1 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 257802, bug 286935, bug 291977

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