Hi,
Any ideas what could cause lang/ECL to get 'stuck' when trying to build it with
threads enabled?
The build seems to go just fine, it builds the minimal ecl and once it tries to
compile predlib.lsp it gets stuck, top shows no CPU and I got ktrace output
from it.
zmyrgel:903$ ECLDIR=`pwd`/ ktrace -di ./ecl_min compile
;*** Lisp core booted ****
ECL (Embeddable Common Lisp)
;;;
;;; Welcome to bare.lsp. Let's bring this instance up!
;;;
;;;
;;; About to load lsp/load.lsp
;;;
;;; Loading src:lsp;export.lsp
;;; Loading src:lsp;defmacro.lsp
;;; Loading src:lsp;helpfile.lsp
;;; Loading src:lsp;evalmacros.lsp
;;; Loading src:lsp;cmuutil.lsp
;;; Loading src:lsp;setf.lsp
;;; Loading src:lsp;predlib.lsp <--- stops here
Here's the tail of kdump:
...
14998 ecl_min RET __thrwakeup 3
14998 ecl_min CALL __thrwakeup(0xcc47ecfe780,0)
14998 ecl_min RET __thrwakeup 3
14998 ecl_min CALL __thrwakeup(0xcc47ecfe780,0)
14998 ecl_min RET __thrwakeup 3
14998 ecl_min CALL sigprocmask(SIG_BLOCK,~0<>)
14998 ecl_min RET sigprocmask 0<>
14998 ecl_min CALL mprotect(0xcc3c7490000,0x2000,0x3<PROT_READ|PROT_WRITE>)
14998 ecl_min RET mprotect 0
14998 ecl_min CALL mprotect(0xcc3c7490000,0x2000,0x1<PROT_READ>)
14998 ecl_min RET mprotect 0
14998 ecl_min CALL sigprocmask(SIG_SETMASK,0<>)
14998 ecl_min RET sigprocmask ~0x10100<SIGKILL|SIGSTOP>
14998 ecl_min CALL sigprocmask(SIG_BLOCK,~0<>)
14998 ecl_min RET sigprocmask 0<>
14998 ecl_min CALL mprotect(0xcc423ea5000,0x1000,0x3<PROT_READ|PROT_WRITE>)
14998 ecl_min RET mprotect 0
14998 ecl_min CALL mprotect(0xcc423ea5000,0x1000,0x1<PROT_READ>)
14998 ecl_min RET mprotect 0
14998 ecl_min CALL sigprocmask(SIG_SETMASK,0<>)
14998 ecl_min RET sigprocmask ~0x10100<SIGKILL|SIGSTOP>
14998 ecl_min CALL kill(1032698,SIGXFSZ)
14998 ecl_min RET kill 0
14998 ecl_min CALL
__thrsleep(0xcc3e0285314,CLOCK_REALTIME,0,0xcc3e0285310,0xcc423fa5810)
So seems the process is sleeping for some reason and not waking up.
Currently I don't have ideas how to proceed so any ideas would be welcome.
Timo