[Xcb] Problem with dock windows and libxcb-icccm

David Coppa dcoppa at gmail.com
Wed Mar 10 04:23:53 PST 2010


On Wed, 10 Mar 2010, Jamey Sharp wrote:

> > This causes a floating-point exception in the
> > xcb_get_wm_size_hints_from_reply function, making i3 crash.
> >
> > #0  0x0f5635a4 in xcb_get_wm_size_hints_from_reply (hints=0xcfbc8070,
> >    reply=0x8593fc20) at /usr/xenocara/dist/xcb-util/icccm/icccm.c:442
> > 442       length = xcb_get_property_value_length(reply) / (reply->format / 8);
> 
> Surely it isn't the length being 0, but rather the format, that causes
> this error.

Yes! I was wrong... reply->format is also zero:

03/10/2010 01:06:46 PM - src/handlers.c:handle_windowclass_change:710 - WM_CLASS changed to dzen2 (instance), dzen (class)
03/10/2010 01:06:46 PM - src/handlers.c:handle_windowname_change_legacy:649 - WM_NAME changed to "dzen title"
03/10/2010 01:06:46 PM - src/handlers.c:handle_windowname_change_legacy:660 - Using legacy window title. Note that in order to get Unicode window titles in i3, the application has to set _NET_WM_NAME which is in UTF-8 encoding.
03/10/2010 01:06:46 PM - src/handlers.c:handle_normal_hints:840 - Window: frame 0x0040000a, child 0x00a00005
DEBUG1: xcb_get_property_value_length(reply) = 0
DEBUG2: reply->format = 0

So it's a division by zero error obviously raising a SIGFPE.


ciao,
david


More information about the Xcb mailing list