List:General Discussion« Previous MessageNext Message »
From:Sander Pilon Date:August 26 2000 5:51pm
Subject:SIGSEV using Mysql++
View as plain text  
Hi,

Using this little example on linux with GCC 2.95.2

	Result Do( string queryString )
	{
		Query query = con->query();
		query << "select * from thread_list_packed limit 1000";

		cout << query.preview() << endl;
		Result res = query.store();
		return res;
	}


I get this:

Program received signal SIGSEGV, Segmentation fault.
0x4016ac46 in mysql_free_result ()
Current language:  auto; currently c
(gdb) bt
#0  0x4016ac46 in mysql_free_result ()
#1  0x40034053 in MysqlResUse::copy ()
#2  0x806db7a in MysqlResUse::MysqlResUse (this=0xbffff80c,
other=@0xbffff6ac) at /usr/local/include/result1.hh:36
#3  0x806dae2 in MysqlRes::MysqlRes (this=0xbffff80c, other=@0xbffff6ac) at
/usr/local/include/result1.hh:159
#4  0x806d4fb in BSQLCommunication::Do (this=0xbffff904, queryString={static
npos = 4294967295, static nilRep = {len = 0,
        res = 0, ref = 3, selfish = false}, dat = 0xbffff808 "?m\b\b\rX"})
at headers/BSQLCommunication.h:28
#5  0x805917e in main () at Main.cpp:35
#6  0x4007bcb3 in __libc_start_main (main=0x8059114 <main>, argc=1,
argv=0xbffff954, init=0x80579c0 <_init>,
    fini=0x80724cc <_fini>, rtld_fini=0x4000a350 <_dl_fini>,
stack_end=0xbffff94c) at ../sysdeps/generic/libc-start.c:78

Anyone know why? Is this a bug? Or my mistake....

-S

Thread
sort of defragmentation?Mike Otto11 Mar
  • Re: sort of defragmentation?kalle volkov11 Mar
  • Re: sort of defragmentation?Christian Mack11 Mar
    • Re: sort of defragmentation?Charles Kirby11 Mar
      • Re: sort of defragmentation?Sasha Pachev11 Mar
        • Re: sort of defragmentation?Charles Kirby11 Mar
          • Re: sort of defragmentation?Sasha Pachev11 Mar
            • Re: sort of defragmentation?Charles Kirby11 Mar
              • Splitting query results among machines?Brian Bray11 Mar
                • RE: Splitting query results among machines?Brett Error11 Mar
  • SIGSEV using Mysql++Sander Pilon26 Aug
Re: sort of defragmentation?Ed Carp11 Mar
  • Re: sort of defragmentation?Sasha Pachev11 Mar
Re: sort of defragmentation?Ed Carp11 Mar
  • Re: sort of defragmentation?Christian Mack12 Mar
Re: Splitting query results among machines?Fred Lindberg11 Mar
Re: sort of defragmentation?Ed Carp12 Mar
Re: sort of defragmentation?Christian Mack13 Mar
Re: sort of defragmentation?Ed Carp13 Mar