From: Radoslaw G. <rga...@ay...> - 2003-04-15 14:36:52
|
Hi, I have problems with mysqlcppapi-1.9.2-0 - particularly with an exceptio= ns=20 handling mechanism. In certain situations my application receives SIGABRT and ends - I know = for=20 sure that it happens in get_index() method (when an exception is thrown). As I know the problem is with the gcc's exceptions handling mechanism - = I=20 have checked that exceptions generated by mysqlcppapi are not caught by m= y=20 application - it seems as the exceptions do not rise at all and the stand= ard=20 behavior (application termination) is invoked. I know (by the Internet searching) that the problem is as old as gcc (;-)= , but=20 the only suggestions I have found are as e.g. change to the latest gcc, l= ook=20 at the stack to find out the function which causes the abortion, recompil= e it=20 with a g++ instead of a gcc etc. I have to use the gcc in a version I hav= e to=20 keep the back compatibility. Additional information: =09Everything works fine with the old mysqlcppapi (1.7). =09The mysqlcppapi in version 1.9.2-0 I use is recompiled on my machine (= the=20 specification below). Any suggestions appreciated. Thanks in advance. System spec: =09linux:=09Suse 8.0 (upgraded)=20 =09gcc:=09=092.95.3 =09mysqlcppapi.spec (the compilation part, I have added CC=3Dg++): >>> CFLAGS=3D"$RPM_OPT_FLAGS" CXXFLAGS=3D"$RPM_OPT_FLAGS" ./configure CC=3Dg+= +\ =09=09--with-mysql=3D/usr\ --host=3Di386-linux\ =09=09--prefix=3D$RPM_BUILD_ROOT/usr\ $LOCALFLAGS %build # Setup for parallel builds numprocs=3D`egrep -c ^cpu[0-9]+ /proc/stat || :` if [ "$numprocs" =3D "0" ]; then numprocs=3D1 fi make -j$numprocs make check <<< --=20 //=09Radoslaw Garbacz |