I don't understand why this is crashing. I'm guessing I'm failing to close a connection or finalize something. I also saw the same problem when I used sqlite3 instead of sql-de-lite. Any help or suggestions of where to look would be appreciated.
The code (based on the sqlite3 example from the rpc egg):
https://www.kiatoa.com/cgi-bin/fossils/megatest/artifact/900250564a62efcaI run the server then run four instances of this script:
https://www.kiatoa.com/cgi-bin/fossils/megatest/artifact/7217b9abad5d9406
The last output is:
[rpc:server] request 2030 from 127.0.0.1; thread2034 (of 0) started...
Warning (#<thread: thread2031>): in thread: (serialize) unable to serialize object - can not serialize pointer-like object: #<pointer 0x21b9518>
Call history:
sql-de-lite.scm:188: ##sys#block-set!
sql-de-lite.scm:519: database-error
sql-de-lite.scm:856: raise-database-errors
sql-de-lite.scm:865: error-message
sqlite3-api.scm:35: ##sys#peek-c-string
sql-de-lite.scm:864: raise-database-error/status
sql-de-lite.scm:871: make-property-condition
sql-de-lite.scm:875: make-property-condition
sql-de-lite.scm:870: make-composite-condition
sql-de-lite.scm:869: abort
sql-de-lite.scm:303: finalized?
sql-de-lite.scm:304: reset-unconditionally
sql-de-lite.scm:188: ##sys#block-set!
sql-de-lite.scm:559: set-statement-column-names!
sql-de-lite.scm:188: ##sys#block-set!
sql-de-lite.scm:295: c1401 <--