Kill X, type "script icewmdebug" (at a VT) and restart icewem with the
"-debug" switch? That'll record all messages from icewm into a file named
icewmdebug. It might get very large!
When icewm freezes can you ctrl-alt-F1 to a virtual terminal and run
programs like top?