fine. libstdc++.so.6 updated this week and since the MySQL++ has not been
working. I'm running my code with valgrind and the result is as follows
==18713== Use of uninitialised value of size 8
==18713== at 0x54FE181: std::locale::operator=(std::locale const&) (in
/usr/lib/libstdc++.so.6.0.13)
==18713== by 0x54FCC6E: std::ios_base::_M_init() (in
/usr/lib/libstdc++.so.6.0.13)
==18713== by 0x55117C8: std::basic_ios<char, std::char_traits<char>
::init(std::basic_streambuf<char, std::char_traits<char> >*) (in
/usr/lib/libstdc++.so.6.0.13)==18713== by 0x526D163: mysqlpp::Query::Query(mysqlpp::Connection*, bool,
char const*) (ostream:83)
==18713== by 0x525CA4F: mysqlpp::Connection::query(char const*)
(connection.cpp:264)
==18713== Invalid read of size 4
==18713== at 0x54FE181: std::locale::operator=(std::locale const&) (in
/usr/lib/libstdc++.so.6.0.13)
==18713== by 0x54FCC6E: std::ios_base::_M_init() (in
/usr/lib/libstdc++.so.6.0.13)
==18713== by 0x55117C8: std::basic_ios<char, std::char_traits<char>
::init(std::basic_streambuf<char, std::char_traits<char> >*) (in
/usr/lib/libstdc++.so.6.0.13)==18713== by 0x526D163: mysqlpp::Query::Query(mysqlpp::Connection*, bool,
char const*) (ostream:83)
==18713== by 0x525CA4F: mysqlpp::Connection::query(char const*)
(connection.cpp:264)
The complain is coming from this line of my code:
mysqlpp::Query q = connection.query("SELECT * from Meter");
and the connection has been connected successfully earlier.
I asked about the problem at the #ubuntu irc channel and the answer was
pretty clear: the problem should be in the library I'm using. If I'm
correct, the problem is at the query.cpp file at the line 46.
I'm running 64bit Ubuntu Lucid Lynx 10.04
libstdc++ version is 6.0.13
g++ version is 4.4.3
MySQL++ version is 3.1.0
Anything I can do or shall I just wait the problem will be fixed?
-Ina