clx hang?

Shawn Betts <[email protected]> Sat, 12 May 2007 19:57:54 -0700
Newsgroups gmane.lisp.clx.devel
Message-ID <[email protected]>
Hi clx hackers,

I'm trying to debug this intermittent freeze bug 2 stumpwm users have
been having. 

Basically what happens is they're using stumpwm, then they step away,
come back a few hours later (or in the morning) and the keyboard is
completely frozen. The mouse still works, they can click around in the
current window. The keyboard is frozen to the point that even
control+alt+F1 won't switch to the console.

We got a backtrace by booting X without a wm, then running stumpwm
inside screen, and when it hangs sshing in and connecting to screen
and hit C-c to drop to the debugger.

stumpwm sets up a passive grab on several keys which freeze the
keyboard when you press them. Then stumpwm gets the key events and
unfreezes the kbd. I suspect what's happening is stumpwm is becoming
unresponsive somehow and so when one of these grabbed keys is hit X
freezes the keyboard and then..nothing happens.

Has anyone had clx hang for them? Or sbcl hang waiting for a fd? If
anyone has any ideas or similar encounters, I'd love to hear them. I'm
at my wits end!

Here's a backtrace on SBCL 1.0.4, clx 0.7.3, freebsd. I'm sorry didn't
get the version of freebsd. It's a new installation so probably the
current version.

Any help would be much appreciated!

-Shawn

debugger invoked on a SIMPLE-CONDITION: interrupted at #X28171767

Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.

restarts (invokable by number or by possibly-abbreviated name):
  0: [CONTINUE] Return from SB-UNIX:SIGINT.
  1: [ABORT   ] Exit debugger, returning to top level.

(SB-UNIX::SIGINT-HANDLER
 #<unavailable argument>
 #<unavailable argument>
 #.(SB-SYS:INT-SAP #X2839A580))
0] backtrace

0: (SB-UNIX::SIGINT-HANDLER
    #<unavailable argument>
    #<unavailable argument>
    #.(SB-SYS:INT-SAP #X2839A580))
1: (SB-SYS:INVOKE-INTERRUPTION #<CLOSURE (LAMBDA #) {4A71292D}>)
2: ("foreign function: call_into_lisp")
3: ("foreign function: funcall3")
4: ("foreign function: interrupt_handle_now")
5: ("foreign function: maybe_defer_handler")
6: ("bogus stack frame")
7: (SB-SYS:WAIT-UNTIL-FD-USABLE 5 :INPUT NIL)
8: (XLIB::BUFFER-INPUT-WAIT-DEFAULT
    #<XLIB:DISPLAY :0 (The X.Org Foundation R60900000)>
    NIL)
9: (XLIB::BUFFER-INPUT-WAIT
    #<XLIB:DISPLAY :0 (The X.Org Foundation R60900000)>
    NIL)
10: (XLIB::READ-INPUT
     #<XLIB:DISPLAY :0 (The X.Org Foundation R60900000)>
     NIL
     NIL
     #<FUNCTION (LAMBDA #) {49A253E5}>)
11: (XLIB::READ-REPLY #<unavailable argument> #<unavailable argument>)
12: (XLIB:DISPLAY-FINISH-OUTPUT
     #<XLIB:DISPLAY :0 (The X.Org Foundation R60900000)>)
13: (STUMPWM::STUMPWM-INTERNAL-LOOP)
14: (STUMPWM:STUMPWM ":0" NIL)
15: (SB-INT:SIMPLE-EVAL-IN-LEXENV (STUMPWM:STUMPWM) #<NULL-LEXENV>)
16: (INTERACTIVE-EVAL (STUMPWM:STUMPWM))
17: (SB-IMPL::REPL-FUN NIL)
18: (SB-IMPL::REPL-FUN NIL)
19: ((LAMBDA ()))
20: ((LAMBDA ()))
21: (SB-IMPL::%WITH-REBOUND-IO-SYNTAX #<CLOSURE (LAMBDA #) {4969080D}>)
22: (SB-IMPL::TOPLEVEL-REPL NIL)
23: (SB-IMPL::TOPLEVEL-INIT)
24: ((LABELS SB-IMPL::RESTART-LISP))

0] 

_______________________________________________
Portable-clx mailing list
[email protected]
http://lists.metacircles.com/cgi-bin/mailman/listinfo/portable-clx
See http://www.cliki.net/clx for darcs URL(s)