List:MySQL++« Previous MessageNext Message »
From:Chris Frey Date:March 9 2005 10:18pm
Subject:Re: Segmentation fault->Result res = query.store();
View as plain text  
On Wed, Mar 09, 2005 at 11:43:48AM -0800, Marco Turchi wrote:
> hi,
> I'm tying to run the simple1.cc example, I can connect to the database, 
> but I have segmentation fault.
> I've compiled the mysql++-1.7.31.tar.gz <releases/mysql++-1.7.31.tar.gz> 
> source library on this system:
> gcc 3.2.3
> mysql server 4.0.22
> Red hat enterprise 2.4.21
> All is ok.
> But when I run the example, I obtain "segmentation fault" at the 
> following line:
> Result res = query.store();
> 
> Please, can you tell me how to solve this problem?

Could you post a backtrace of the core dump?  Also, just to be certain,
make sure that there are no other mysqlpp libs. (check
'ldd lib/.libs/resetdb' and see where it's getting the libraries.

- 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