Closed andreasbaumann closed 6 years ago
Also seen while inserting: the query works ok, but a message about a commit memory error appear underneath:
2016-07-13 08:05:06; strusWebService, warning:
registering weighting function 'test' resulted in an error:
storage transaction with error:
storage transaction with error: storage transaction with error:
storage transaction with error: storage transaction with error:
storage transaction with error: storage transaction with error:
storage transaction with error: storage transaction with error:
storage transaction with error: storage transaction with error:
error in database transaction commit:
database transaction with error: memory allocation error (strusContext.cpp:65)
Inserting seems to run fine though. Maybe a transaction run into memory problems before? Maybe the buffer still contains a error messages from before?
This error happens when printing a message with a pointer to a format string used as argument. The implementation of the ErrorBufferInterface should print an error first with snprintf to a local buffer, before copying it into the thread-global buffer.
Is this fixed in strusBase or do I have to do something?
It has been fixed in strusBase
Actually this looks more like memory corruption to me.
Besides, this should be fixed by changing the way we handle functions loaded from modules. We should not load them on every query request.