[Gambas-devel] makefile !!!

PV oreip at ...1...
Sun Oct 9 00:39:39 CEST 2005


On 08/10/2005 14:35, Daniel wrote:

> this code is for the 2.4.4 ibpp library (README)
> 1)dowload the last version and install it and also the ibpp.h header
> 1.a) do ldconfig
> 2) rename the directory gb.db.firebird in gb.db.firebird.ok and untar 
> unzip the file in attachement
> 3) reconfig + ./configure ... etc (the makefile.am in src is modif. to 
> -fexecptions)
> 4) a small prayer

Ok, upgraded ibpp to 2.4.4, the compilation now runs smoothly.
However, exceptions still don't seem to work properly and the program stops 
unexpectedly by raising signal #6.

Following Benoit's suggestion, here's a backtrace of the stack when the program 
stops:

Program received signal SIGABRT, Aborted.
[Switching to Thread 16384 (LWP 7383)]
0x40083ef1 in kill () from /lib/libc.so.6
(gdb) bt
#0  0x40083ef1 in kill () from /lib/libc.so.6
#1  0x4025bbb1 in pthread_kill () from /lib/libpthread.so.0
#2  0x4025bf2b in raise () from /lib/libpthread.so.0
#3  0x40083b24 in raise () from /lib/libc.so.6
#4  0x400853fd in abort () from /lib/libc.so.6
#5  0x409f9954 in __cxa_call_unexpected () from /usr/lib/./libstdc++.so.5
#6  0x409f9991 in std::terminate () from /usr/lib/./libstdc++.so.5
#7  0x409f9b01 in __cxa_throw () from /usr/lib/./libstdc++.so.5
#8  0x409b2e0c in std::__throw_out_of_range () from /usr/lib/./libstdc++.so.5
#9  0x409e969f in std::string::_M_check () from /usr/lib/./libstdc++.so.5
#10 0x409e9d9c in std::basic_string<char, std::char_traits<char>, 
std::allocator<char> >::basic_string ()
    from /usr/lib/./libstdc++.so.5
#11 0x41dbe12e in db_version (str1=
         {static npos = 4294967295, _M_dataplus = {<std::allocator<char>> = 
{<No data fields>}, _M_p = 0x40a1ecac ""}, static _S_empty_rep_storage = {0, 0, 
6, 0}}) at main.cpp:920
#12 0x41dbe72a in open_database (desc=0x81afb80, charset=0x81afba0) at main.cpp:969
#13 0x4001a095 in DB_Open () from /usr/local/lib/gambas2/gb.db.so
#14 0x4001a987 in CCONNECTION_open () from /usr/local/lib/gambas2/gb.db.so
#15 0x0804de32 in ?? ()
#16 0x081afb70 in ?? ()
#17 0x08074fc8 in ?? ()
#18 0x00000000 in ?? ()
#19 0xbfffe898 in ?? ()
#20 0x0804e0c4 in ?? ()
#21 0x4001a939 in CCONNECTION_version () from /usr/local/lib/gambas2/gb.db.so
Previous frame inner to this frame (corrupt stack?)

The library can't connect to the db server because I've faked a problem on port 
3050, the same problem that I actually had before discovering it :)

If all parameters are set correctly (login, pw etc.) and there are no 
connection problems everything seems to run just fine.


Ciao,
Piero




More information about the Devel mailing list