List:MySQL++« Previous MessageNext Message »
From:Chris Frey Date:March 10 2005 8:42am
Subject:Re: Segmentation fault->Result res = query.store();
View as plain text  
On Wed, Mar 09, 2005 at 10:34:14PM -0800, Marco Turchi wrote:
> I've compiled and linked:
> g++ -I/usr/include/mysql++ -I/usr/local/mysql/include/mysql -DVERBOSE=2  
> -Wall  -pthread  -g -O2   -c simple1.cc
> g++ -pthread  -g -O2   -L/usr/lib/mysql    util.o  simple1.o 
> /usr/local/lib/libmysqlpp.so -lz /usr/lib/mysql/libmysqlclient_r.a
> -lcrypt -lnsl -lm -lpthread -lc -lnss_files -lnss_dns -lresolv 
> -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath
> -Wl,/usr/local/lib -o simple1

I suspect there is some obvious inconsistency in your build process.
Perhaps mysql++ was not compiled for threads in whatever version is
installed in /usr/local/lib?


> So I create the backtrack:
> 
> #0  0x00cb22a9 in ResUse (this=0xbfffa954, result=0xbfffa970, m=0x0) at 
> char_traits.h:135
> 135           { return strlen(__s); }

This is somewhere in the standard library headers, so there's probably
something fundamentally wrong with the build.

- Chris

Thread
Segmentation fault->Result res = query.store();Marco Turchi9 Mar
  • Re: Segmentation fault->Result res = query.store();Warren Young9 Mar
    • Re: Segmentation fault->Result res = query.store();Marco Turchi9 Mar
      • Re: Segmentation fault->Result res = query.store();Marco Turchi9 Mar
        • Re: Segmentation fault->Result res = query.store();Warren Young9 Mar
          • Re: Segmentation fault->Result res = query.store();Marco Turchi9 Mar
      • Re: Segmentation fault->Result res = query.store();Warren Young9 Mar
  • Re: Segmentation fault->Result res = query.store();Chris Frey9 Mar
    • Re: Segmentation fault->Result res = query.store();Warren Young9 Mar
      • Re: Segmentation fault->Result res = query.store();Marco Turchi10 Mar
        • Re: Segmentation fault->Result res = query.store();Chris Frey10 Mar
          • Re: Segmentation fault->Result res = query.store();Marco Turchi10 Mar
            • Re: Segmentation fault->Result res = query.store();Chris Frey10 Mar
              • Re: Segmentation fault->Result res = query.store();Marco Turchi10 Mar
                • Re: Segmentation fault->Result res = query.store();Chris Frey10 Mar
                  • Re: Segmentation fault->Result res = query.store();Marco Turchi10 Mar
                    • Re: Segmentation fault->Result res = query.store();Earl Miles11 Mar
                      • Re: Segmentation fault->Result res = query.store();Warren Young11 Mar
        • Re: Segmentation fault->Result res = query.store();Warren Young11 Mar
          • Re: Segmentation fault->Result res = query.store();Warren Young11 Mar
            • Re: Segmentation fault->Result res = query.store();Chris Frey11 Mar
              • Re: Segmentation fault->Result res = query.store();Warren Young12 Mar
      • mysql++ installdon thompson10 Mar
        • Re: mysql++ install solveddon thompson10 Mar