[hunchentoot-devel] hunchentoot-1.2.2 throw a Recursive lock attempt error in sbcl 1.0.55

Xu Jingtao jingtaozf at gmail.com
Thu Mar 1 00:42:29 UTC 2012


Hi Hans,

My server OS is debian 6.0(i686). Some hunchentoot setup codes like this:
========================================================================
(defclass my-site-acceptor (easy-acceptor)
  ()
  (:documentation "This is the acceptor of the my-site framework."))

(defmethod acceptor-status-message ((acceptor my-site-acceptor) http-status-code  &key &allow-other-keys)
  (when (/= http-status-code +http-service-error-handling+)
    (call-next-method)))

(defmethod acceptor-remove-session ((acceptor my-site-acceptor) (session t))
  (declare (ignore acceptor))
  (loop for path in (session-value :|temp files|)
        do
     (ignore-errors (delete-file path))))

(defun start-site (&key (port 3001))
  (cond (*site-acceptor*
         (warn "site has been started.")
         *site-acceptor*)
        (t
         (setf *site-acceptor*
               (make-instance 'my-site-acceptor :address "127.0.0.1" :port port
                              :access-log-destination
                              (strcat *log-path* "access.log")
                              :message-log-destination
                              (strcat *log-path* "message.log")))
         (reset-session-secret)
         (start *site-acceptor*))))
========================================================================
I have defined many pages with 'define-easy-handler',reproducing it is difficult
because the server runs fine when started,they hung after random hours(sometimes many days) later,
when people visit my site.

> (SB-THREAD:MUTEX
> >                            :NAME "global-message-log-lock"
> >                            :%OWNER #<SB-THREAD:THREAD
> >                                      "hunchentoot-worker-127.0.0.1:43115" RUNNING
> >                                      {C4F7F19}>
> >                            :STATE 1).
> 
> I have not been able to reproduce this problem.  Can you provide a way
> to reproduce it?
>
> Thanks,
> -Hans

___________________________________
Jingtao Xu
A Lisp Programmer
www.jingtao.net




More information about the Tbnl-devel mailing list