[odb-users] Re: segmentation fault on linux while operating Mysql
database
Boris Kolpackov
boris at codesynthesis.com
Fri Aug 19 11:52:07 EDT 2016
Hi Gao,
高德健 <gdejian at 126.com> writes:
> #0 0x00000000004079ec in odb::mysql::statement_cache::find_object<person>
> (this=0x0) at ../hello/libodb-mysql-2.4.0/odb/mysql/statement-cache.txx:24
Well, this=0x0 should tell you something is not right.
> #1 0x0000000000404dd6 in object_traits_impl<person, (odb::database_id)0>::
> persist (db=..., obj=...) at ../hello/person-odb.cxx:403
Looks like mysql::transaction::current ().connection () call returns NULL
as current connection. Which is quite strange: if there was no current
transaction, the you should have gotten an exception. And if there is a
transaction, then there should be a connection.
Something strange is going on. Looks like a skew/mis-configured build
or some such. You will have to investigate on your own.
Boris
More information about the odb-users
mailing list