[comp.emacs] gnumacs 18.33 hanging under X windows on Sun-3

conor@GOOSE.STANFORD.EDU (Conor Rafferty) (01/12/87)

I've been happily running 17.64 for some time under X windows on a
Sun-3. I recently tried to bring up 18.33, but had problems with the X
window support. Regular terminals do work, as does xemacs -nw.  Under
the window system, however, the program hangs in select() soon after
it starts. No window is opened.  If anyone has encountered and fixed
this problem I'd appreciate their help.

Other relevant(?) facts:

The stack trace when the hang is interrupted is:

select(0x78, 0x1, 0x1) at 0x50a9d
Fsit_for(n = 120), line 1229 in "dispnew.c"
Ffuncall(nargs = 2, args = 0xefff340), line 1674 in "eval.c"
Fbyte_code(bytestr = 50816232, vector = 67594832, maxdepth = 36), line 264 in "bytecode.c"
Feval(form = 84370656), line 1391 in "eval.c"
Fprogn(args = 84372308), line 305 in "eval.c"
funcall_lambda(fun = 84372316, nargs = 1, arg_vector = 0xefff564), line 1811 in "eval.c"
Ffuncall(nargs = 2, args = 0xefff560), line 1702 in "eval.c"
Fbyte_code(bytestr = 50815328, vector = 67593208, maxdepth = 18), line 264 in "bytecode.c"
Feval(form = 84369752), line 1391 in "eval.c"
Fprogn(args = 84370596), line 305 in "eval.c"
funcall_lambda(fun = 84370604, nargs = 0, arg_vector = 0xefff73c), line 1811 in "eval.c"
Ffuncall(nargs = 1, args = 0xefff738), line 1702 in "eval.c"
Fbyte_code(bytestr = 50815092, vector = 67592460, maxdepth = 3), line 264 in "bytecode.c"
Feval(form = 84369516), line 1391 in "eval.c"
Fprogn(args = 84369728), line 305 in "eval.c"
funcall_lambda(fun = 84369736, nargs = 0, arg_vector = 0xefff888), line 1811 in "eval.c"
apply_lambda(fun = 84369736, args = 17386504, eval_flag = 1), line 1755 in "eval.c"
Feval(form = 84535200), line 1416 in "eval.c"
top_level_2(), line 408 in "keyboard.c"
internal_condition_case(bfun = top_level_2(), handlers = 17386744, hfun = cmd_error()), line 994 in "eval.c"
top_level_1(0x1094c08), line 416 in "keyboard.c"
internal_catch(tag = 17386724, func = top_level_1(), arg = 17386504), line 812 in "eval.c"
command_loop(), line 384 in "keyboard.c"
Frecursive_edit(), line 273 in "keyboard.c"
main(argc = 1, argv = 0xefffa9c, envp = 0xefffaa4), line 428 in "emacs.c"
start1(ignore = 0, argc = 1, xargv = 0xefffb10 "xemacs"), line 332 in "crt0.c"
_start(), line 312 in "crt0.c"


The select seems to happen before the X window is mapped (breakpoint
in XMapWindow never reached). 

This is a fresh compilation: I have set only the paths in path.h,
specified s-bsd4-2.h & m-sun3.h in config.h and #define'd
HAVE_X_WINDOWS.  The ~/.emacs file has been temporarily renamed so
that this emacs invocation sees no initialization.

The Sun is a 3/75 running 3.0.


       conor rafferty      The command
 decwrl!glacier!conor          1,$s/^\([^,]*\), *\(.*\)/\2 \1/
conor@su-glacier.arpa      although hard to read, does the job.
                           --- Brian W. Kernighan "Advanced Editing on Unix"