[wmii] BUG: coredump with gtksee in floating

From: Nico Golde <nico_AT_ngolde.de>
Date: Thu, 27 Apr 2006 11:15:30 +0200

Hi,
I can reproduce crash because of window placement code. ATAM
I have not time to write a patch but I can provide a
backtrace. When opening gtkpod in floating wmiiwm will
crash:

#0 0x0804ae57 in place_client (a=0x8089190, c=0x808c198) at area.c:222
222 f->rect.x = a->rect.x + (random()%(a->rect.width - f->rect.width));
gdb> bt full
#0 0x0804ae57 in place_client (a=0x8089190, c=0x808c198) at area.c:222
        mx = 0xa0
        my = 0x80
        field = (int *) 0x808d2a8
        fit = 0x0
        i = 0xa0
        j = 0x80
        k = 0x1
        x = 0xa0
        y = 0x80
        maxx = 0x8089194
        maxy = 0x8089170
        dx = 0x8
        dy = 0x8
        cx = 0xa0
        cy = 0x7b
        p1 = {x = 0x0, y = 0x0}
        p2 = {x = 0x0, y = 0x0}
        f = (Frame *) 0x8089170
#1 0x0804afc0 in attach_to_area (a=0x8089190, c=0x808c198) at area.c:250
        h = 0x0
        aidx = 0x0
        f = (Frame *) 0x8089170
#2 0x0805a3a0 in attach_to_view (v=0x808bc18, c=0x808c198) at view.c:225
        a = (Area *) 0x8089190
#3 0x0805ab67 in update_views () at view.c:376
        c = (Client *) 0x808c198
        i = 0x1
        j = 0x0
        v = (View *) 0x0
        old = (View *) 0x808bc18
#4 0x0804cdca in manage_client (c=0x808c198) at client.c:367
        trans = (Client *) 0x11
#5 0x0804fcba in handle_maprequest (e=0xbfb44488) at event.c:229
        ev = (XMapRequestEvent *) 0xbfb44488
        wa = {x = 0x0, y = 0x0, width = 0x4fc, height = 0x3ce, border_width = 0x0, depth = 0x18, visual = 0x8071aa8, root = 0x46, class = 0x1, bit_gravity = 0x1, win_gravity = 0x1, backing_store = 0x0, backing_planes = 0xffffffff, backing_pixel = 0x0, save_under = 0x0, colormap = 0x20, map_installed = 0x1, map_state = 0x0, all_event_masks = 0x628033, your_event_mask = 0x0, do_not_propagate_mask = 0x0, override_redirect = 0x0, screen = 0x806d6a0}
#6 0x0804f519 in check_x_event (c=0x8074940) at event.c:51
        ev = {type = 0x14, xany = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, window = 0x46}, xkey = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, window = 0x46, root = 0xa00003, subwindow = 0x3ee, time = 0x500, x = 0x2, y = 0x0, x_root = 0x0, y_root = 0x0, state = 0x0, keycode = 0x0, same_screen = 0x0}, xbutton = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, window = 0x46, root = 0xa00003, subwindow = 0x3ee, time = 0x500, x = 0x2, y = 0x0, x_root = 0x0, y_root = 0x0, state = 0x0, button = 0x0, same_screen = 0x0}, xmotion = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, window = 0x46, root = 0xa00003, subwindow = 0x3ee, time = 0x500, x = 0x2, y = 0x0, x_root = 0x0, y_root = 0x0, state = 0x0, is_hint = 0x0, same_screen = 0x0}, xcrossing = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, window = 0x46, root = 0xa00003, subwindow = 0x3ee, time = 0x500, x = 0x2, y = 0x0, x_root = 0x0, y_root = 0x0, mode = 0x0, detail = 0x0, same_screen = 0x0, focus = 0x0, state = 0x0}, xfocus = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, window = 0x46, mode = 0xa00003, detail = 0x3ee}, xexpose = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, window = 0x46, x = 0xa00003, y = 0x3ee, width = 0x500, height = 0x2, count = 0x0}, xgraphicsexpose = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, drawable = 0x46, x = 0xa00003, y = 0x3ee, width = 0x500, height = 0x2, count = 0x0, major_code = 0x0, minor_code = 0x0}, xnoexpose = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, drawable = 0x46, major_code = 0xa00003, minor_code = 0x3ee}, xvisibility = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, window = 0x46, state = 0xa00003}, xcreatewindow = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, parent = 0x46, window = 0xa00003, x = 0x3ee, y = 0x500, width = 0x2, height = 0x0, border_width = 0x0, override_redirect = 0x0}, xdestroywindow = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, event = 0x46, window = 0xa00003}, xunmap = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, event = 0x46, window = 0xa00003, from_configure = 0x3ee}, xmap = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, event = 0x46, window = 0xa00003, override_redirect = 0x3ee}, xmaprequest = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, parent = 0x46, window = 0xa00003}, xreparent = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, event = 0x46, window = 0xa00003, parent = 0x3ee, x = 0x500, y = 0x2, override_redirect = 0x0}, xconfigure = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, event = 0x46, window = 0xa00003, x = 0x3ee, y = 0x500, width = 0x2, height = 0x0, border_width = 0x0, above = 0x0, override_redirect = 0x0}, xgravity = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, event = 0x46, window = 0xa00003, x = 0x3ee, y = 0x500}, xresizerequest = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, window = 0x46, width = 0xa00003, height = 0x3ee}, xconfigurerequest = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, parent = 0x46, window = 0xa00003, x = 0x3ee, y = 0x500, width = 0x2, height = 0x0, border_width = 0x0, above = 0x0, detail = 0x0, value_mask = 0x0}, xcirculate = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, event = 0x46, window = 0xa00003, place = 0x3ee}, xcirculaterequest = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, parent = 0x46, window = 0xa00003, place = 0x3ee}, xproperty = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, window = 0x46, atom = 0xa00003, time = 0x3ee, state = 0x500}, xselectionclear = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, window = 0x46, selection = 0xa00003, time = 0x3ee}, xselectionrequest = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, owner = 0x46, requestor = 0xa00003, selection = 0x3ee, target = 0x500, property = 0x2, time = 0x0}, xselection = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, requestor = 0x46, selection = 0xa00003, target = 0x3ee, property = 0x500, time = 0x2}, xcolormap = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, window = 0x46, colormap = 0xa00003, new = 0x3ee, state = 0x500}, xclient = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, window = 0x46, message_type = 0xa00003, format = 0x3ee, data = {b = "\000\005\000\000\002", '\0' <repeats 14 times>, s = {0x500, 0x0, 0x2, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}, l = {0x500, 0x2, 0x0, 0x0, 0x0}}}, xmapping = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, window = 0x46, request = 0xa00003, first_keycode = 0x3ee, count = 0x500}, xerror = {type = 0x14, display = 0x1d6, resourceid = 0x0, serial = 0x806d008, error_code = 0x46, request_code = 0x0, minor_code = 0x0}, xkeymap = {type = 0x14, serial = 0x1d6, send_event = 0x0, display = 0x806d008, window = 0x46, key_vector = "\003\000\000\003\000\000\000\005\000\000\002", '\0' <repeats 18 times>}, pad = {0x14, 0x1d6, 0x0, 0x806d008, 0x46, 0xa00003, 0x3ee, 0x500, 0x2, 0x0 <repeats 15 times>}}
#7 0x0805ec5b in handle_conns (s=0x806ccc0) at server.c:80
        i = 0x1
#8 0x0805ecf5 in ixp_server_loop (s=0x806ccc0) at server.c:99
        r = 0x1
#9 0x0805ba2d in main (argc=0x3, argv=0xbfb44674) at wm.c:345
        i = 0x4
        checkwm = 0x0
        address = 0xbfb45a5a "unix"
        errstr = 0x0
        wa = {background_pixmap = 0x1, background_pixel = 0x0, border_pixmap = 0xbfb45a50, border_pixel = 0xb7e5272e, bit_gravity = 0xb7f20ff4, win_gravity = 0xb7f1f5f0, backing_store = 0xbfb445c8, backing_planes = 0x804a30e, backing_pixel = 0xb7f22360, save_under = 0x80610f0, event_mask = 0x188004, do_not_propagate_mask = 0x8049a99, override_redirect = 0x1, colormap = 0xb7dec000, cursor = 0x400005}

HTH Nico

-- 
Nico Golde - JAB: nion_AT_jabber.ccc.de | GPG: 0x73647CFF
http://www.ngolde.de | http://www.muttng.org | http://grml.org
Forget about that mouse with 3/4/5 buttons -
gimme a keyboard with 103/104/105 keys!

Received on Thu Apr 27 2006 - 11:15:58 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:03:44 UTC