Closed lymslive closed 11 months ago
By the way, there is no such problem in the other two similar examples: examples/c-gen
nor examples/cpp-gen
Thanks for reporting, this is fixed internally and will be pushed with the next release.
To fix it locally, you can use this updated clean_up code:
if (txn) {
if (!obx_last_error_code()) {
obx_txn_success(txn);
} else {
obx_txn_close(txn);
}
}
instead of
if (txn && !obx_last_error_code()) {
obx_txn_success(txn);
}
if (txn) {
obx_txn_close(txn);
}
Describe the bug When I try the example
c-cursor-no-gen
, it is success to insert a new task, but print a coredump error in the end.Basic info (please complete the following information):
To Reproduce
gdb information as following: