Bug 120355 - kded crashes on kde startup causing signal 6 SIGABRT
Summary: kded crashes on kde startup causing signal 6 SIGABRT
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kded (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
: 122985 123299 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-01-18 00:15 UTC by Peter de Kraker
Modified: 2006-08-19 19:42 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Backtrace from kded (2.68 KB, text/plain)
2006-01-31 03:32 UTC, S. Umar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter de Kraker 2006-01-18 00:15:33 UTC
Version:            (using KDE KDE 3.5.0)
Installed from:    Ubuntu Packages
OS:                Linux

When KDE has completely loaded after login, the KDE Crash handlers keeps popping up windows with: The application KDE Daemon (KDED) crashed and caused the signal 6 (SIGABRT). 
Every second more come. When I do: sudo killall kded a few times, it finally stops and I can close all the windows. KDE gives me also then the message that the media manager is not working.

I am using ubuntu dapper 6.04 development version, so it may be a problem there, but It doesn't really looks like it.

Backtrace:
(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1231468864 (LWP 8755)]
(no debugging symbols found)
(no debugging symbols found)
[KCrash handler]
#4  0xffffe410 in __kernel_vsyscall ()
#5  0xb7d7b9a1 in raise () from /lib/tls/i686/cmov/libc.so.6
#6  0xb7d7d2b9 in abort () from /lib/tls/i686/cmov/libc.so.6
#7  0xb7d74f51 in __assert_fail () from /lib/tls/i686/cmov/libc.so.6
#8  0xb672f519 in avahi_client_get_state () from /usr/lib/libavahi-client.so.3
#9  0xb6757e26 in DNSSD::PublicService::publishAsync ()
   from /usr/lib/libkdnssd.so.1
#10 0xb676aee4 in PortListener::dnssdRegister ()
   from /usr/lib/kde3/kded_kinetd.so
#11 0xb676d097 in PortListener::acquirePort ()
   from /usr/lib/kde3/kded_kinetd.so
#12 0xb676f08f in PortListener::PortListener ()
   from /usr/lib/kde3/kded_kinetd.so
#13 0xb676f23b in KInetD::loadServiceList () from /usr/lib/kde3/kded_kinetd.so
#14 0xb676f4d3 in KInetD::KInetD () from /usr/lib/kde3/kded_kinetd.so
#15 0xb676f552 in create_kinetd () from /usr/lib/kde3/kded_kinetd.so
#16 0xb7f92219 in Kded::loadModule () from /usr/lib/libkdeinit_kded.so
#17 0xb7f93382 in Kded::initModules () from /usr/lib/libkdeinit_kded.so
#18 0xb7f93407 in Kded::qt_invoke () from /usr/lib/libkdeinit_kded.so
#19 0xb6f3a26d in QObject::activate_signal () from /usr/lib/libqt-mt.so.3
#20 0xb72c931e in QSignal::signal () from /usr/lib/libqt-mt.so.3
#21 0xb6f579cc in QSignal::activate () from /usr/lib/libqt-mt.so.3
#22 0xb6f5f4bc in QSingleShotTimer::event () from /usr/lib/libqt-mt.so.3
#23 0xb6ed065a in QApplication::internalNotify () from /usr/lib/libqt-mt.so.3
#24 0xb6ed084c in QApplication::notify () from /usr/lib/libqt-mt.so.3
#25 0xb76716ad in KApplication::notify () from /usr/lib/libkdecore.so.4
#26 0xb6e61967 in QApplication::sendEvent () from /usr/lib/libqt-mt.so.3
#27 0xb6ec2047 in QEventLoop::activateTimers () from /usr/lib/libqt-mt.so.3
#28 0xb6e75753 in QEventLoop::processEvents () from /usr/lib/libqt-mt.so.3
#29 0xb6ee9153 in QEventLoop::enterLoop () from /usr/lib/libqt-mt.so.3
#30 0xb6ee9076 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#31 0xb6ecf169 in QApplication::exec () from /usr/lib/libqt-mt.so.3
#32 0xb7f91450 in kdemain () from /usr/lib/libkdeinit_kded.so
#33 0xb7d67ea2 in __libc_start_main () from /lib/tls/i686/cmov/libc.so.6
#34 0x080483b1 in ?? ()
Comment 1 Miguel Revilla Rodr 2006-01-24 19:52:48 UTC
Same thing here with KDE 3.5.0 in Gentoo AMD64. Pretty anoying. Also, after that, kdeprintd won't work.
Comment 2 Jakub Stachowski 2006-01-24 23:31:42 UTC
SVN commit 502129 by qbast:

Do not hit assert() on trying to get state of uninitialized avahi client
BUG:120355 




 M  +6 -5      publicservice.cpp  


--- trunk/playground/network/kdnssd-avahi/publicservice.cpp #502128:502129
@@ -50,7 +50,7 @@
 class PublicServicePrivate 
 {
 public:
-	PublicServicePrivate() : m_published(false), m_running(false), m_collision(false)
+	PublicServicePrivate() : m_published(false), m_running(false), m_collision(false), m_group(false)
 	{}
 	bool m_published;
 	bool m_running;
@@ -68,9 +68,10 @@
   		: QObject(), ServiceBase(name, type, QString::null, domain, port)
 {
 	d = new PublicServicePrivate;
-	if (Responder::self().client()) d->m_group = avahi_entry_group_new(Responder::self().client(),
-	    publish_callback,this);
-	connect(&Responder::self(),SIGNAL(stateChanged(AvahiClientState)),this,SLOT(clientState(AvahiClientState)));
+	if (Responder::self().client()) { 
+		d->m_group = avahi_entry_group_new(Responder::self().client(), publish_callback,this);
+		connect(&Responder::self(),SIGNAL(stateChanged(AvahiClientState)),this,SLOT(clientState(AvahiClientState)));
+	}
 	if (domain.isNull())
 		if (Configuration::publishType()==Configuration::EnumPublishType::LAN) m_domain="local.";
 		else m_domain=Configuration::publishDomain();
@@ -208,7 +209,7 @@
 	    emit published(false);
 	    return;
 	}
-	AvahiClientState s=avahi_client_get_state(Responder::self().client());
+	AvahiClientState s=Responder::self().state();
 	d->m_running=true; 
 	d->m_collision=true; // make it look like server is getting out of collision to force registering
 	clientState(s);
Comment 3 Phil Gillaspy 2006-01-27 21:36:59 UTC
Same problem under Mandriva 2006.
Comment 4 S. Umar 2006-01-31 00:28:41 UTC
I don't see how the above path solves the original problem! I am having the
same problem under Fedora Core 5 devel. It has a unique symptom:

1. Kded is working fine for regular iso cd's
2. When an audio cd (mp3) is used it is crashing repeatedly with the
   exact symptoms as above.

Any ideas?
Comment 5 S. Umar 2006-01-31 00:31:58 UTC
I just tried it with a regular music cd (commercial) with the same symptoms.

I have also updated everything to kde-3.5.1 tag.

Umar
Comment 6 S. Umar 2006-01-31 03:32:48 UTC
Created attachment 14462 [details]
Backtrace from kded
Comment 7 Jakub Stachowski 2006-01-31 10:37:41 UTC
Umar, bug that you are suffering from is completely different and unrelated to one originally reported. Peter de Kraker had problem with buggy kdnssd-avahi and you have problem with mediamanager hal backend. I this you should open separate bug for this.
Comment 8 Miguel Revilla Rodr 2006-02-06 00:27:21 UTC
Peter,

Do you have http://kat.mandriva.com/ installed? It was the program causing my pains. Have just uninstalled it and everything runs fine again.
Comment 9 Maksim Orlovich 2006-03-08 19:15:34 UTC
*** Bug 123299 has been marked as a duplicate of this bug. ***
Comment 10 Maksim Orlovich 2006-03-08 19:15:38 UTC
*** Bug 122985 has been marked as a duplicate of this bug. ***
Comment 11 fbayer 2006-03-08 19:42:25 UTC
how is this bug solved? i dont have kat installed but Bug 123299 crashes my kpf/kicker! do i have to wait for a package update for my kubuntu dapper 6.04 development version?
Comment 12 Pasquier Noterdaeme 2006-08-08 16:56:33 UTC
I have the same problem under Mandriva 2006. It is not systematic, but very frequent at startup. Then, it is impossible to print...
It is said "RESOLVED" on this forum... So, pratically, want should I do to resolve it? re-instal something?
Thanks.
Comment 13 Maksim Orlovich 2006-08-08 17:01:42 UTC
If you're using Mandriva, and are heaving problems with kded aborts I would suggest removing kat.
Comment 14 Kurt Merhoff 2006-08-19 19:42:21 UTC
I'm having the same problem with Mepis 6.0 with KDE 3.5.3. I also had kat installed but if I try "apt-get remove" it fails and complains about tzdata being broken. If I try Synaptic it wants to remove most of KDE along with kat. I don't know if it is related but my scanner is not recognized by Mepis or the Mepis live CD, but works fine with a Kubuntu live CD or Windoze. Trying to fix that by forcing libsane to an unstable version did break tzdata. It might be easier to reinstall than try and fix this mess, but I wanted to report that I was experiencing the same issue with kded.