Yesterday, I upgrade my system from 9.1 to 10-current, and use clang as defaule C/C++ complier.
And then, I can't login into KDE, a dialog show:
Information by ssh:
I can run qdbusviewer. qdbusviewer can connect to dbus and list dbus info.
Dbus and Hald is running.
Later , I rebuild /usr/ports/devel/dbus-qt4 with WITH_DEBUG=yes, and get debug info.
debug with gdb:
truss: http://pastebin.com/EqqXLjjS
I have rebuild dbus/dbus-qt4/qt*/kde*/xorg*, but no effect.
And then, I can't login into KDE, a dialog show:
Code:
"Could not start D-Bus. Can you Call qdbus"
Information by ssh:
Code:
%uname -a
FreeBSD x201i.honestqiao.com 10.0-CURRENT FreeBSD 10.0-CURRENT #1 r244267: Sun Dec 16 16:06:23 CST 2012
root@x201i.honestqiao.com:/usr/obj/usr/src/sys/HonestQiaoKernel10 amd64
% tail -f /var/log/kdm.log
kdeinit4: preparing to launch /usr/local/lib/libkdeinit4_klauncher.so
kdeinit4: Launched KLauncher, pid = 2450, result = 0
klauncher(2450) kdemain: No DBUS session-bus found. Check if you have started the DBUS server.
kdeinit4: Communication error with launcher. Exiting!
I can run qdbusviewer. qdbusviewer can connect to dbus and list dbus info.
Dbus and Hald is running.
Code:
# ps auxww | grep -E 'dbus|hal'
messagebus 1641 0.0 0.1 16844 10380 - Is 12:10ä¸Šåˆ 0:00.32 /usr/local/bin/dbus-daemon --system
haldaemon 1760 0.0 0.3 92624 21448 - Is 12:10ä¸Šåˆ 0:03.47 /usr/local/sbin/hald
root 1761 0.0 0.2 76568 15752 - I 12:10ä¸Šåˆ 0:00.10 hald-runner
root 1771 0.0 0.2 66744 14224 - I 12:10ä¸Šåˆ 0:00.14 hald-addon-mouse-sysmouse: /dev/psm0 (hald-addon-mouse-sy)
root 1784 0.0 0.2 66744 14264 - I 12:10ä¸Šåˆ 0:00.06 hald-addon-mouse-sysmouse: /dev/ums0 (hald-addon-mouse-sy)
HonestQiao 38463 0.0 0.1 16844 10412 - Is 12:37ä¸Šåˆ 0:00.05 /usr/local/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
HonestQiao 38760 0.0 0.1 16844 10424 - Is 12:38ä¸Šåˆ 0:00.01 /usr/local/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
HonestQiao 38462 0.0 0.1 32280 11172 2 I 12:37ä¸Šåˆ 0:00.00 dbus-launch --autolaunch 7d6977d713194da0e8ef9ee600001994 --binary-syntax --close-stderr
root 51279 0.0 0.1 18544 10188 6 S+ 1:15ä¸Šåˆ 0:00.01 grep -E dbus|hal
HonestQiao 38733 0.0 0.8 202120 63864 7 S+ 12:38ä¸Šåˆ 0:06.10 qdbusviewer
HonestQiao 38759 0.0 0.1 32280 11228 7 I+ 12:38ä¸Šåˆ 0:00.00 dbus-launch --autolaunch 7d6977d713194da0e8ef9ee600001994 --binary-syntax --close-stderr
Later , I rebuild /usr/ports/devel/dbus-qt4 with WITH_DEBUG=yes, and get debug info.
Code:
%qbus
:1.1
org.kde.klauncher
:1.12
:1.2
org.kde.kded
org.freedesktop.DBus
Segmentation fault (core dumped)
%tail -f /var/log/message
Dec 18 00:56:23 x201i kernel: pid 49036 (qdbus), uid 1001: exited on signal 11 (core dumped)
debug with gdb:
Code:
%gdb /usr/local/bin/qdbus /var/tmp/crash/qdbus.49036.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...
Core was generated by `qdbus'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/qt4/libQtDBus.so.4...Reading symbols from /usr/local/lib/qt4/libQtDBus.so.4.8.2.debug...done.
done.
Loaded symbols for /usr/local/lib/qt4/libQtDBus.so.4
Reading symbols from /usr/local/lib/qt4/libQtXml.so.4...done.
Loaded symbols for /usr/local/lib/qt4/libQtXml.so.4
Reading symbols from /usr/local/lib/qt4/libQtCore.so.4...done.
Loaded symbols for /usr/local/lib/qt4/libQtCore.so.4
Reading symbols from /usr/local/lib/gcc46/libstdc++.so.6...done.
Loaded symbols for /usr/local/lib/gcc46/libstdc++.so.6
Reading symbols from /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/local/lib/gcc46/libgcc_s.so.1...done.
Loaded symbols for /usr/local/lib/gcc46/libgcc_s.so.1
Reading symbols from /lib/libthr.so.3...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /lib/libz.so.6...done.
Loaded symbols for /lib/libz.so.6
Reading symbols from /usr/local/lib/libgthread-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libgthread-2.0.so.0
Reading symbols from /usr/local/lib/libglib-2.0.so.0...done.
Loaded symbols for /usr/local/lib/libglib-2.0.so.0
Reading symbols from /usr/local/lib/libiconv.so.3...done.
Loaded symbols for /usr/local/lib/libiconv.so.3
Reading symbols from /usr/local/lib/libicui18n.so.48...done.
Loaded symbols for /usr/local/lib/libicui18n.so.48
Reading symbols from /usr/local/lib/libintl.so.9...done.
Loaded symbols for /usr/local/lib/libintl.so.9
Reading symbols from /usr/local/lib/libpcre.so.3...done.
Loaded symbols for /usr/local/lib/libpcre.so.3
Reading symbols from /usr/local/lib/libicuuc.so.48...done.
Loaded symbols for /usr/local/lib/libicuuc.so.48
Reading symbols from /usr/local/lib/libicudata.so.48...done.
Loaded symbols for /usr/local/lib/libicudata.so.48
Reading symbols from /usr/local/lib/libdbus-1.so.3...done.
Loaded symbols for /usr/local/lib/libdbus-1.so.3
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0 0x0000000801c392a4 in sbrk () from /lib/libc.so.7
[New Thread 805006400 (LWP 100588/qdbus)]
......
#65395 0x0000000800ddb0c5 in QAdoptedThread::QAdoptedThread () from /usr/local/lib/qt4/libQtCore.so.4
#65396 0x0000000800ddd7e1 in QThreadData::current () from /usr/local/lib/qt4/libQtCore.so.4
#65397 0x0000000800ddb619 in QThread::currentThread () from /usr/local/lib/qt4/libQtCore.so.4
#65398 0x000000080085a620 in QDBusConnectionPrivate::deleteYourself (this=0x805080600) at qdbusintegrator.cpp:1025
#65399 0x0000000800849a1b in ~QDBusConnection (this=0x6198e0) at qdbusconnection.cpp:304
#65400 0x0000000000404991 in __dtor__ZL10connection () at qdbus.cpp:57
#65401 0x0000000801c96e69 in __cxa_finalize () from /lib/libc.so.7
#65402 0x0000000801c3f5fc in exit () from /lib/libc.so.7
#65403 0x0000000000405133 in main (argc=1, argv=0x7fffffffd530) at qdbus.cpp:484
(gdb)
truss: http://pastebin.com/EqqXLjjS
Code:
% truss -o test.out /usr/local/bin/qdbus
I have rebuild dbus/dbus-qt4/qt*/kde*/xorg*, but no effect.