From sebastian.cartier at gmx.net Tue Dec 6 02:51:40 2022 From: sebastian.cartier at gmx.net (Sebastian Cartier) Date: Tue Dec 6 02:45:35 2022 Subject: [odb-users] segmentation fault on linux while operating Mysql database Message-ID: 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 (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 (this=0x0) at /usr/include/odb/mysql/statement-cache.txx:24#1 0x000055555555b22f in odb::access::object_traits_impl::persist (db=..., obj=...) at person-odb.cxx:403#2 0x000055555555864d in odb::database::persist_ (obj=..., this=) at /usr/include/odb/database.txx:38#3 odb::database::persist (obj=..., this=) at /usr/include/odb/database.ixx:160#4 main (argc=7, argv=) at driver.cxx:38* *It looks like the statement_cache is never initialized. Do you have any advice for me?* *Thank you!* *Sebastian* From boris at codesynthesis.com Tue Dec 6 05:59:05 2022 From: boris at codesynthesis.com (Boris Kolpackov) Date: Tue Dec 6 05:52:44 2022 Subject: [odb-users] segmentation fault on linux while operating Mysql database In-Reply-To: References: Message-ID: Sebastian Cartier writes: > 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). [...] > > *Program received signal SIGSEGV, Segmentation fault.0x000055555555dfda in > odb::mysql::statement_cache::find_object (this=0x0) at > /usr/include/odb/mysql/statement-cache.txx:2424 Hm, I don't see anything obvious in the code that could have caused this. Could you try the latest pre-release and see if this is still an issue: https://codesynthesis.com/products/odb/doc/install-build2.xhtml