From kwrite-devel Wed Dec 05 18:37:37 2001 From: Maciek Borowka Date: Wed, 05 Dec 2001 18:37:37 +0000 To: kwrite-devel Subject: [Kwrite-devel] Bug#35812: More precision on X server crash X-MARC-Message: https://marc.info/?l=kwrite-devel&m=100757828617897 I tried to analyse a little bit the problem and it seems that it's related to the X protocol. I tried to launch: konsole -T `perl -e 'print "A" x 100000;'` and I got: QWidget::setMaximumSize: (unnamed/QPopupMenu) The largest allowed size is (32767,32767) QWidget::setMaximumSize: (unnamed/QPopupMenu) The largest allowed size is (32767,32767) konsole: WARNING: KDE detected X Error: BadLength (poly request too large or internal Xlib length error) 16 Major opcode: 8 konsole: WARNING: KDE detected X Error: BadIDChoice (invalid resource ID chosen for this connection) 14 Major opcode: 1 which means that we have a buffer overflow in one of Poly* requests (probably PolyText8 or PolyText16) of X Protocol, which makes crash the X server. It must be the same problem in kwrite as it writes the name of opened/created file in the title bar of the window - I think, you could limit the number of caracters shown - should be quite easy to do... Another discussion is why Xlib doesn't block your request, but send it to X server anyway... Voila, that's all /Maciek PS. Anyway, I love KDE - it rocks! _______________________________________________ kwrite-devel mailing list kwrite-devel@mail.kde.org http://mail.kde.org/mailman/listinfo/kwrite-devel