Xfce 126.96.36.199 crashes when window title is too long. For example, you can create
HTML document with 91000 characters in its TITLE element and try to load that
with Mozilla browser. Firefox and Opera handle long titles, but I think this is
still bug of Xfce because panel, taskbar and all other applications crashes.
Steps to Reproduce:
1. Create HTML document with 91000 characters in its TITLE element.
2. Try to load that page with Mozilla browser.
Xfce (panel, taskbar, applications) crashes.
Xfce should truncate window title when it's too long.
GTK1 version: 1.2.10-18
GTK2 version: 2.8.9-2
No crash here, even with 750000 characters as title.... Can you try with a
stable version of gtk+ please?
That seems odd because:
- All components are independent. One may crash but there is no reason for the
others to crash.
- In the WM, the window title is not bound, so there os no risk of memory
Sorry gtk+ 2.8.9 is stable! So I don't know. Does the window manager crashes?
What version of Xorg?
Created attachment 374
An HTML file with a 750.000+ title filed
Does that file crash for you?
Could the length be a coincidence? I remember some really old bugs where
invalid UTF-8 could crash the WM, and it might crash other parts of Xfce that
show the window title.
Hard to say, as I can't tell what part of "Xfce" crash. BTW, the bug you refer
never caused a crashed of the WM, just the title to be displayed on 2 lines when
the UTF sequence was containing a cariage return. xfwm4 relies on pango for all
its font rendering routines.
BTW, I can't reproduce the crash so I need some more information:
- Does the test file crash for the reporter?
- What exact part of Xfce crash?
Without that required informations, I can't investigate on that bug since I
can't reproduce it.
(In reply to comment #3)
> Does that file crash for you?
Yes it does. This also causes crash:
xterm -title `perl -e 'print "a" x 25000'`
I ran xterm with some random length titles: 6960 character title is ok, 9800 and
19900 messes up titlebar text but not crash, 21000 crash.
Processes xfwm4, xftaskbar4 and xfce4-panel crash.
I'm using Xorg version 6.8.2.
Maybe that crashing has something to do with those reported bugs:
"Bug 315070 - metacity crashes when managing windows that have long titles"
"Bug 317362 - should not allow overlong window titles"
It is indeed a bug with cairo. I have a fix very similar to the one used in
metacity thnaks to the link you provide. Unfortunately https is not functional
on our svn, so it'll have to wait before I can commit the fix...
It's now fixed in svn, so I'm closing the bug. Thanks a lot for raising that
issue and finding a fix.
Eeek, I meant fixed!