List:MySQL++« Previous MessageNext Message »
From:Brian Dale Nelson Date:January 21 2005 3:54pm
Subject:Segmentation fault using mysql++
View as plain text  
Sorry to spam you Chris.  I'm not sure my last message got out (plus, there was no gdb
stuff):

OS
--
Fedora Core 2

sql stuff
---------
mysql++-1.7.27-1
mysql-3.23.58-9.1

sample code (seg fault happens with examples too)
-------
#include "mysql++.h"
                                                                                          
                                                                   
using namespace mysqlpp;
                                                                                          
                                                                   
int main() {
                                                                                          
                                                                   
    Connection con(use_exceptions);
    con.connect("test","localhost","root","password");
    Query query = con.query();
                                                                                          
                                                                   
    query << "USE TEST; SHOW TABLES;";
                                                                                          
                                                                   
    return 0;
}



gdb output
----------
Core was generated by `./a.out'.
Program terminated with signal 11, Segmentation fault.
                                                                                          
                                                                   
warning: svr4_current_sos: Can't read pathname for load map: Input/output error
                                                                                          
                                                                   
Error while mapping shared library sections:
: Success.
Error while reading shared library symbols:
: No such file or directory.
Reading symbols from /usr/lib/libmysqlpp.so.4...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libmysqlpp.so.4
Reading symbols from /usr/lib/libstdc++.so.5...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libstdc++.so.5
Reading symbols from /lib/tls/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/tls/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/tls/libc.so.6
Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_files.so.2
#0  0x4f562b21 in ?? ()
(gdb)


Thread
Segmentation fault using mysql++Brian Dale Nelson21 Jan
  • Re: Segmentation fault using mysql++Chris Frey21 Jan
  • Re: Segmentation fault using mysql++Warren Young21 Jan