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

高德健 gdejian at 126.com
Thu Aug 18 04:44:19 EDT 2016


Dear Boris,
I run the example "hello" on linux, and I got segmentation faults all the time.
There is no problem connecting to mysql server, I can use db->execute() to execute some native sql statements.
BUT, when i use db->persist() or result(db->query(id == id)), it crashes with a segmentation fault.
In the core file, it points to :
#0  0x0000000000407c11 in odb::object_traits_impl<person, (odb::database_id)0>::statements_type& odb::mysql::statement_cache::find_object<person>() ()
#1  0x0000000000404fc9 in odb::access::object_traits_impl<person, (odb::database_id)0>::persist(odb::database&, person&) ()
#2  0x00000000004036e6 in main ()


I tried the same example on windows, it worked well.
How can I solve this?


Thanks,
Gao Dejian





--

高德健
北京市海淀区学院路37号
北京航空航天大学
邮箱gdejian at 126.com
电话13041129171


More information about the odb-users mailing list