-
Notifications
You must be signed in to change notification settings - Fork 9
Fix memory allocate during request processing #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The tarantool modules tests shouldn't compare box.stat() output because it can include different numbers of fields in different versions of tarantool.
Before introducing a txn memory region box_txn_alloc() allocates memory using the fiber.gc region and can be used without box_txn_begin(). Now the similar trick doesn't work (a transaction must be started). To allocate memory on region without start a transaction, the region was added to struct memcached_connection. Fixes #53
6591b28
to
954c0af
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Got segfault on both master and this patchset on tarantool 2.5.0-62-gbb7c3d167 (debug) when run tests (cd test && ./test-run.py).
Don't sure, how it is related to the problem you solve here. My intention was to get some 'problem solved' criteria: say, run tests om memcached from It would be glad, if you'll glance on this segfault. |
D'oh! I tested it only with a release build. But this is a different bug (see #59) |
Run the existing test suites on master (+small update) and on this branch (+small update). The tests don't pass on master and pass on the branch, so now I verified that the problem is actually fixed. |
Before introducing a txn memory region box_txn_alloc() allocates memory using the fiber.gc region and can be used without box_txn_begin(). Now the similar trick doesn't work (a transaction must be started).
To allocate memory on region without start a transaction, the region was added to struct memcached_connection.
Fixes #53