Re: [Sawfish] periodic segfault |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/sawfish Archives
]
On 2012-02-23 dmg wrote:
> #2.
>
> if w = fp->w, I suspect fp->id is valid.
>
> so it is probably that w is an invalid address.
I just crashed again! Got some more debug output from gdb this time.
See below. (Got local var vals.)
Not sure if the fp & w values are useful. Hopefully they are.
I know exactly what I was doing when it crashed. I was right-clicking
a title bar to window-focus-send-to-back (I have right click mapped to
that in the customizations). I either had just right-clicked or had
right-clicked then tried to left click to top/focus a window. It never
focused and I'm not sure the right-click succeeded either. I did have
a bit of weirdness on the screen (I think) where a window title bar was
still shown on screen over another window's title bar when its window
had been sent-to-back.
Perhaps the race might be related to my weird right-click
customization? I use that right click *ALL* the time as I keep dozens
of windows open per workspace.
Sorry this is so messy. I'm sure only the first few lines are relevant:
Program received signal SIGSEGV, Segmentation fault.
refresh_frame_part (fp=0x9293d60) at frames.c:862
862 if (!WINDOW_IS_GONE_P (w) && fp->id != 0)
(gdb) where full
#0 refresh_frame_part (fp=0x9293d60) at frames.c:862
w = 0x11123ed
#1 0x080603e9 in frame_part_exposer (ev=0xbf9e965c, fp=0x9293d60) at
frames.c:944 old_mutex = 0
#2 0x08057d34 in expose (ev=0xbf9e965c) at events.c:747
fp = <optimized out>
#3 0x08058798 in inner_handle_input (arg=3214841436) at events.c:1559
ev = 0xbf9e965c
handler = <optimized out>
#4 0x49da3e80 in rep_call_with_barrier (callback=0x80586f0
<inner_handle_input>, arg=3214841436, closed=1, in=0, out=0, data=0x0)
at continuations.c:346 ret = <optimized out> b = {next = 0xbf9e9830,
root = 0xbf9e9830, point = 0xbf9e95e0
"0\230\236\277\060\230\236\277\340\225\236\277", in = 0, out = 0, data
= 0x0, active = 0x0, head = 0x0, tail = 0x0, susp_head = 0x0, susp_tail
= 0x0, depth = 2, closed = 1, targeted = 0}
#5 0x0805a081 in handle_input_mask (mask=0) at events.c:1629
xev = {type = 12, xany = {type = 12, serial = 72462731,
send_event = 0, display = 0x90bc198, window = 17313583}, xkey = {type =
12, serial = 72462731, send_event = 0, display = 0x90bc198, window =
17313583, root = 5, subwindow = 22, time = 619, x = 1044, y = 0, x_root
= 2349, y_root = 802, state = 0, keycode = 4, same_screen = 1}, xbutton
= {type = 12, serial = 72462731, send_event = 0, display = 0x90bc198,
window = 17313583, root = 5, subwindow = 22, time = 619, x = 1044, y =
0, x_root = 2349, y_root = 802, state = 0, button = 4, same_screen =
1}, xmotion = {type = 12, serial = 72462731, send_event = 0, display =
0x90bc198, window = 17313583, root = 5, subwindow = 22, time = 619, x =
1044, y = 0, x_root = 2349, y_root = 802, state = 0, is_hint = 4
'\004', same_screen = 1}, xcrossing = {type = 12, serial = 72462731,
send_event = 0, display = 0x90bc198, window = 17313583, root = 5,
subwindow = 22, time = 619, x = 1044, y = 0, x_root = 2349, y_root =
802, mode = 0, detail = 4, same_screen = 1, focus = 0, state = 16},
xfocus = {type = 12, serial = 72462731, send_event = 0, display =
0x90bc198, window = 17313583, mode = 5, detail = 22}, xexpose = {type =
12, serial = 72462731, send_event = 0, display = 0x90bc198, window =
17313583, x = 5, y = 22, width = 619, height = 1044, count = 0},
xgraphicsexpose = {type = 12, serial = 72462731, send_event = 0,
display = 0x90bc198, drawable = 17313583, x = 5, y = 22, width = 619,
height = 1044, count = 0, major_code = 2349, minor_code = 802},
xnoexpose = {type = 12, serial = 72462731, send_event = 0, display =
0x90bc198, drawable = 17313583, major_code = 5, minor_code = 22},
xvisibility = {type = 12, serial = 72462731, send_event = 0, display =
0x90bc198, window = 17313583, state = 5}, xcreatewindow = {type = 12,
serial = 72462731, send_event = 0, display = 0x90bc198, parent =
17313583, window = 5, x = 22, y = 619, width = 1044, height = 0,
border_width = 2349, override_redirect = 802}, xdestroywindow = {type =
12, serial = 72462731, send_event = 0, display = 0x90bc198, event =
17313583, window = 5}, xunmap = {type = 12, serial = 72462731,
send_event = 0, display = 0x90bc198, event = 17313583, window = 5,
from_configure = 22}, xmap = {type = 12, serial = 72462731, send_event
= 0, display = 0x90bc198, event = 17313583, window = 5,
override_redirect = 22}, xmaprequest = {type = 12, serial = 72462731,
send_event = 0, display = 0x90bc198, parent = 17313583, window = 5},
xreparent = {type = 12, serial = 72462731, send_event = 0, display =
0x90bc198, event = 17313583, window = 5, parent = 22, x = 619, y =
1044, override_redirect = 0}, xconfigure = {type = 12, serial =
72462731, send_event = 0, display = 0x90bc198, event = 17313583, window
= 5, x = 22, y = 619, width = 1044, height = 0, border_width = 2349,
above = 802, override_redirect = 0}, xgravity = {type = 12, serial =
72462731, send_event = 0, display = 0x90bc198, event = 17313583, window
= 5, x = 22, y = 619}, xresizerequest = {type = 12, serial = 72462731,
send_event = 0, display = 0x90bc198, window = 17313583, width = 5,
height = 22}, xconfigurerequest = {type = 12, serial = 72462731,
send_event = 0, display = 0x90bc198, parent = 17313583, window = 5, x =
22, y = 619, width = 1044, height = 0, border_width = 2349, above =
802, detail = 0, value_mask = 4}, xcirculate = {type = 12, serial =
72462731, send_event = 0, display = 0x90bc198, event = 17313583, window
= 5, place = 22}, xcirculaterequest = {type = 12, serial = 72462731,
send_event = 0, display = 0x90bc198, parent = 17313583, window = 5,
place = 22}, xproperty = {type = 12, serial = 72462731, send_event = 0,
display = 0x90bc198, window = 17313583, atom = 5, time = 22, state =
619}, xselectionclear = {type = 12, serial = 72462731, send_event = 0,
display = 0x90bc198, window = 17313583, selection = 5, time = 22},
xselectionrequest = {type = 12, serial = 72462731, send_event = 0,
display = 0x90bc198, owner = 17313583, requestor = 5, selection = 22,
target = 619, property = 1044, time = 0}, xselection = {type = 12,
serial = 72462731, send_event = 0, display = 0x90bc198, requestor =
17313583, selection = 5, target = 22, property = 619, time = 1044},
xcolormap = {type = 12, serial = 72462731, send_event = 0, display =
0x90bc198, window = 17313583, colormap = 5, new = 22, state = 619},
xclient = {type = 12, serial = 72462731, send_event = 0, display =
0x90bc198, window = 17313583, message_type = 5, format = 22, data = {b
= "k\002\000\000\024\004\000\000\000\000\000\000-\t\000\000\"\003\000",
s = {619, 0, 1044, 0, 0, 0, 2349, 0, 802, 0}, l = {619, 1044, 0, 2349,
802}}}, xmapping = {type = 12, serial = 72462731, send_event = 0,
display = 0x90bc198, window = 17313583, request = 5, first_keycode =
22, count = 619}, xerror = {type = 12, display = 0x451b18b, resourceid
= 0, serial = 151765400, error_code = 47 '/', request_code = 47 '/',
minor_code = 8 '\b'}, xkeymap = {type = 12, serial = 72462731,
send_event = 0, display = 0x90bc198, window = 17313583, key_vector =
"\005\000\000\000\026\000\000\000k\002\000\000\024\004\000\000\000\000\000\000-\t\000\000\"\003\000\000\000\000\000"},
xgeneric = {type = 12, serial = 72462731, send_event = 0, display =
0x90bc198, extension = 17313583, evtype = 5}, xcookie = {type = 12,
serial = 72462731, send_event = 0, display = 0x90bc198, extension =
17313583, evtype = 5, cookie = 22, data = 0x26b}, pad = { 12, 72462731,
0, 151765400, 17313583, 5, 22, 619, 1044, 0, 2349, 802, 0, 4, 1, 0, 16,
154150688, 154158536, 48, 40, 154158472, 60817434, 37}}
old_current_event = 0x0 old_current_window = 154674096
gc_old_current_window = {ptr = 0xbf9e9658, next = 0x0} last_time =
1332056095 current_time = <optimized out>
#6 0x49dd1e4e in
handle_input (inputs=0xbf9e974c, ready=0) at unix_main.c:508 i =
<optimized out> idle_period = 0 refreshp = <optimized out>
#7 0x49dd1fa0 in rep_event_loop () at unix_main.c:548 ready = <optimized
refreshp = 0
copy = {fds_bits = {8, 0 <repeats 31 times>}}
result = 1239353876
#8 0x49dba4a8 in Frecursive_edit () at main.c:493
ret = 0
#9 0x49dbb281 in rep_top_level_recursive_edit () at main.c:506
ret = <optimized out>
#10 0x49da3e80 in rep_call_with_barrier (callback=0x806b150
<inner_main>, arg=1239353876, closed=1, in=0, out=0, data=0x0) at
continuations.c:346 ret = <optimized out> b = {next = 0x0, root = 0x0,
point = 0xbf9e9830 "", in = 0, out = 0, data = 0x0, active = 0x0, head
= 0x0, tail = 0x0, susp_head = 0x0, susp_tail = 0x0, depth = 1, closed
= 1, targeted = 0}
#11 0x08054f9f in main (argc=0, argv=0xbf9e9988) at
main.c:523 rc = 5 old_argv = <optimized out> old_argc = <optimized out>
lang = 0x499af541 "C"
prog_name = 0xbf9eb462 "/usr/bin/sawfish.bin"
--
--
Sawfish ML