[Openmcl-devel] error on linux, not on mac os x; error not written to log
Ralf Mattes
rm at seid-online.de
Wed Jun 17 09:58:49 PDT 2015
On Wed, Jun 17, 2015 at 06:13:32PM +0200, Renzo Orsini wrote:
> Update: I found a way of obtaining a trace by excluding the printing of the log from hunchentoot. From this trace it seems to me that the problem is in hunchentoot itself.
>From the stacktrace you gisted that doesn't seem to be the case.
Line 25, hunchentoot:client-as-string gets called and calls (Line 22)
usocket:hbo-to-vector-quad. And that _is_ strange because the only call
into usocket from client-as-string is usocket:vector-quad-to-dotted-quad
which does _not_ call any usocket code. Where does that call come from?
Next strange thing:
1 Invalid program: Can't bind or assign to constant SECOND.
That seems to be the error that get's triggered from within usocket:hbo-to-vector-quad
(defun hbo-to-vector-quad (integer)
"Host-byte-order integer to dotted-quad string conversion utility."
(let ((first (ldb (byte 8 24) integer))
(second (ldb (byte 8 16) integer))
....
Why should usocket:second be defined as a constant here? There _is_ no symbol 'second in
the usocket package.
HTH Ralf Mattes
> Here is a gist of such backtrace:
>
> https://gist.github.com/renzo-orsini/2ce407b383c25566466f
>
> Renzo
>
> > On 17 Jun 2015, at 16:23 , Renzo Orsini <orsini at unive.it> wrote:
> >
> > I have a relatively small hunchentoot web application that worked on mac os x yosemite and linux, and that now does not work on linux any more, maybe due to recent update to all quicklisp packages. The problem is that I cannot even start to debug, because only a criptic message is written on the terminal and then nothing more. Note that the application still works without any problem in mac os x (even after the update of the quicklisp packages: #:hunchentoot #:ht-simple-ajax #:cl-postgres #:simple-date #:html-template #:cl-who #:do-urlencode).
> >
> > Could somebody please help me in at least finding more information?
> >
> > Thank you very much
> >
> > This is the terminal session:
> >
> > hunchentoot at dblab:~$ ccl -n
> > Welcome to Clozure Common Lisp Version 1.10-r16196 (LinuxX8632)!
> >
> > CCL is developed and maintained by Clozure Associates. For more information
> > about CCL visit http://ccl.clozure.com. To enquire about Clozure's Common Lisp
> > consulting services e-mail info at clozure.com or visit http://www.clozure.com.
> >
> > ? (load "quicklisp/setup.lisp")
> > #P"/var/lib/hunchentoot/quicklisp/setup.lisp"
> > ? (ql:quickload "agid1")
> > To load "agid1":
> > Load 1 ASDF system:
> > agid1
> > ; Loading "agid1"
> > .
> > ("agid1")
> > ? (in-package :agid1)
> > #<Package "AGID1">
> > ? (start-web-server)
> > #<EASY-ACCEPTOR (host *, port 9090)>
> >
> > ;;;; at this point I request any page of the application from the browser and this is the message that appear on the terminal:
> >
> > ? error Invalid program: Can't bind or assign to constant SECOND. while writing to error log, error not logged
> > error Invalid program: Can't bind or assign to constant SECOND. while writing to error log, error not logged
> > error Invalid program: Can't bind or assign to constant SECOND. while writing to error log, error not logged
> >
> > ;;; nothing more is written, so I tried to write :?
> >
> > :?
> > The following toplevel commands are available:
> > :? help
> > :PWD Print the pathame of the current directory
> > (:CD DIR) Change to directory DIR (e.g., #p"ccl:" or "/some/dir")
> > (:PROC &OPTIONAL P) Show information about specified process <p>/all processes
> > (:KILL P) Kill process whose name or ID matches <p>
> > (:Y &OPTIONAL P) Yield control of terminal-input to process
> > whose name or ID matches <p>, or to any process if <p> is null
> > Any other form is evaluated and its results are printed out.
> > ? (:proc)
> > 2 : hunchentoot-listener-*:9090 [Active]
> > 1 : -> listener [Active]
> > 0 : Initial [Sleep]
> > ?
> >
>
>
> --
> "Nota automatica aggiunta dal sistema di posta.
> Destina il 5 per mille per sostenere con borse di studio gli studenti
> meritevoli di Ca' Foscari.
> E' un atto volontario, non costa nulla e non sostituisce l'8 per mille.
> Scegli Ca' Foscari: codice fiscale 80007720271
> Please note that the above message is addressed only to individuals filing
> Italian income tax returns."
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> https://lists.clozure.com/mailman/listinfo/openmcl-devel
More information about the Openmcl-devel
mailing list