From: Sander Pilon Date: August 26 2000 5:51pm Subject: SIGSEV using Mysql++ List-Archive: http://lists.mysql.com/mysql/48991 Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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
, 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