List:MySQL++« Previous MessageNext Message »
From:Ina J. Date:August 19 2011 11:18am
Subject:MySQL++ not working with libstdc++6
View as plain text  
I'm using MySQL++ 3.1.0 library with my code and it has been working just
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

Thread
MySQL++ not working with libstdc++6Ina J.19 Aug
  • Re: MySQL++ not working with libstdc++6Linda Messerschmidt19 Aug
    • Re: MySQL++ not working with libstdc++6Jonathan Wakely19 Aug
      • Re: MySQL++ not working with libstdc++6Ina J.21 Aug
        • Re: MySQL++ not working with libstdc++6Ina J.22 Aug
          • Re: MySQL++ not working with libstdc++6Adrian Cornish22 Aug
            • Re: MySQL++ not working with libstdc++6Warren Young22 Aug
              • Re: MySQL++ not working with libstdc++6Adrian Cornish22 Aug
                • Re: MySQL++ not working with libstdc++6Ina J.23 Aug
                  • Re: MySQL++ not working with libstdc++6Ina J.23 Aug
                    • Re: MySQL++ not working with libstdc++6Jonathan Wakely23 Aug
                      • Re: MySQL++ not working with libstdc++6Ina J.23 Aug