freenode/#sbcl - IRC Chatlog
Search
21:23:35
puchacz
that it was another requester, totally different from Mathematica trying to reach my regular web application at "/"
21:24:23
puchacz
so the reason it worked on my PC was simply that there were no web spiders etc. randomly trying to knock at port 8080
21:25:23
puchacz
whereas on the rented computer at the provider site, it is being inspected by all sort of spiders
21:25:59
puchacz
rather than saying something like no postgres connection, which is a socket protocol, no native library loaded
21:27:22
puchacz
in Lisp I have a habit of having one image.... just save-and-die, load it with all the extra baggage I don't need
21:29:43
pfdietz
There's a CL library for handling ELF format. The dream: a gdb replacement written in CL.
21:37:10
puchacz
(and sorry for confusion, it is a regular bug in my application after all, to leave the other handlers in)
21:43:22
|3b|
trying to execute the query even though there isn't a postgres server available does sound like user code bug though
21:43:23
puchacz
when I prepare the image for the simulation, I clear fasl cache, then I start everything up (which takes long as it has to compile all that is required from quicklisp again), then I load data from postgres into a global variable, and save-and-die
21:44:10
puchacz
it is just a strange habit to have the same image for a web application and numerical simulation :)
21:44:51
|3b|
nah, being lazy and reusing something that is already set up doesn't sound that strange :)
21:46:17
puchacz
anyway, if anybody wants more isolated program that would trigger the same crash, I can try to prepare it on next weekend, ping me at piotr.wasik@gmail.com
21:59:50
|3b|
yeah, looks like writing to streams left open from when image was saved gets corruption warning on linux
22:02:13
|3b|
file maybe could try to reopen and seek to same place or something, but i suspect that would be worse than erroring as often as not
22:05:08
|3b|
though in this case it looks like it is the (foreign?) buffer rather than the stream that isn't surviving the save
22:07:08
puchacz
I have enough knowledge now to run my simulations without undercover spy spiders interference
22:07:31
|3b|
maybe file a bug that writing to old streams after image save/reload should be handled better
22:45:07
pfdietz
I would recommend not building a deliverable from a development image. You should have a script that builds the deliverable from scratch.
22:47:34
|3b|
sounded like it was more or less doing that, just that part of the build involved grabbing data from a DB
22:48:00
|3b|
and it happened to also include code that would try to reuse that db connection in some unexpected cases
22:50:12
|3b|
arguably the db lib should clear its connection cache on image saving, but not many libs bother with that sort of thing :/
23:55:59
pkhuong
BTS tracing isn't too bad https://gist.github.com/pkhuong/1ce34e33c6df4b9be3bc9beb22415a47