[odb-users] segmentation fault on linux while operating Mysql database

Sebastian Cartier sebastian.cartier at gmx.net
Tue Dec 6 02:51:40 EST 2022


Hi Boris
I have the same problem as Gao Dejian on *Thu Aug 18 04:44:19 EDT 2016. I
use odb 2.4.0 on g++-5 on a Ubuntu Linux (I tried 2 systems). I checked the
connection with 'show processlist;' in mariadb and it actually establishes
the connection. The stacktrace is as follows:*









*Program received signal SIGSEGV, Segmentation fault.0x000055555555dfda in
odb::mysql::statement_cache::find_object<person> (this=0x0) at
/usr/include/odb/mysql/statement-cache.txx:2424      if (version_seq_ !=
conn_.database ().schema_version_sequence ())(gdb) bt#0  0x000055555555dfda
in odb::mysql::statement_cache::find_object<person> (this=0x0) at
/usr/include/odb/mysql/statement-cache.txx:24#1  0x000055555555b22f in
odb::access::object_traits_impl<person, (odb::database_id)0>::persist
(db=..., obj=...) at person-odb.cxx:403#2  0x000055555555864d in
odb::database::persist_<person, (odb::database_id)5> (obj=...,
this=<optimized out>) at /usr/include/odb/database.txx:38#3
 odb::database::persist<person> (obj=..., this=<optimized out>) at
/usr/include/odb/database.ixx:160#4  main (argc=7, argv=<optimized out>) at
driver.cxx:38*

*It looks like the statement_cache is never initialized. Do you have any
advice for me?*

*Thank you!*

*Sebastian*


More information about the odb-users mailing list