--===============1988157683==
Content-Type: multipart/signed;
boundary="nextPart13729973.6Fe6nhkexH";
protocol="application/pgp-signature";
micalg=pgp-sha1
Content-Transfer-Encoding: 7bit

--nextPart13729973.6Fe6nhkexH
Content-Type: text/plain;
charset="iso-8859-15"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

On Fri, 10 Feb 2006 06:46, Christian Loose wrote:
>=20
> I'm having the same problem and it's really annoying. What was the=20
> crash? Wouldn't it be better to fix the crash?
>=20
> Bye, Christian
> =20


The crash is at trunk/KDE/kdelibs/kdecore/kkeyserver_x11.cpp:587 :

uchar code =3D XKeysymToKeycode( QX11Info::display(), m_sym );

If the KApplication object is initialised with GUI disabled,=20
QX11Info::display() returns NULL, causing a segfault in XKeysymToKeycode. =
=20
It seems incorrect to initialise with GUI disabled and expect X calls to=20
work anyway.

I guess fixing the code either in genshortcuts or KStdAccel not to rely on=
=20
X is the best way to proceed, but it would require someone who groks the=20
code more fully than I. For someone who is familiar with this code, here=20
is a full backtrace (line numbers have changed by now in=20
kkeyserver_x11.cpp, and maybe in others):

Using host libthread_db library "/lib/tls/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1222859072 (LWP 19673)]
[KCrash handler]
#9 0x4aa5f527 in XKeysymToKeycode () from /usr/lib/libX11.so.6
#10 0xb7e14ea1 in KKeyServer::Sym::getModsRequired (this=3D0xbfb0ae28)
at /home/rohan/Work/cvs/KDE/kdelibs/kdecore/kkeyserver_x11.cpp:564
#11 0xb7e13c02 in KKeyNative::init (this=3D0xbfb0aeb0, key=3D@0xbfb0af60)
at /home/rohan/Work/cvs/KDE/kdelibs/kdecore/kkeynative_x11.cpp:102
#12 0xb7e13a3a in KKeyNative (this=3D0xbfb0aeb0, key=3D@0xbfb0af60)
at /home/rohan/Work/cvs/KDE/kdelibs/kdecore/kkeynative_x11.cpp:57
#13 0xb7e15c8a in KKeyServer::Variations::init (this=3D0xbfb0af20,
key=3D@0xbfb0af60, bQt=3Dtrue)
at /home/rohan/Work/cvs/KDE/kdelibs/kdecore/kkeyserver_x11.cpp:999
#14 0xb7e1303a in KShortcut::init (this=3D0xb7f0d3c4, s=3D@0xbfb0b020)
at /home/rohan/Work/cvs/KDE/kdelibs/kdecore/kshortcut.cpp:431
#15 0xb7e25b25 in initialize (id=3DKStdAccel::TabNext)
at /home/rohan/Work/cvs/KDE/kdelibs/kdecore/kstdaccel.cpp:157
#16 0xb7e25caa in KStdAccel::shortcut (id=3DKStdAccel::TabNext)
at /home/rohan/Work/cvs/KDE/kdelibs/kdecore/kstdaccel.cpp:198
#17 0x08049c17 in entityForAccel (accel=3DKStdAccel::TabNext)
at /home/rohan/Work/cvs/KDE/kdelibs/kdoctools/genshortcutents.cpp:278
#18 0x0804a37d in main (argc=3D3, argv=3D0xbfb0b324)
at /home/rohan/Work/cvs/KDE/kdelibs/kdoctools/genshortcutents.cpp:333

Rohan

--nextPart13729973.6Fe6nhkexH
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQBD68yC9TboT4GjxRwRAg4yAJ0cx97HZYYVvhruuiIxTr Jmov8LMwCg183n
2KdhL/HO79P2XikfsF/U4V4=
=LM4h
-----END PGP SIGNATURE-----

--nextPart13729973.6Fe6nhkexH--

--===============1988157683==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


--===============1988157683==--