[Pkg-postgresql-private] [vorlon@netexpress.net: Re: Processed: your mail]

Oliver Elphick olly@lfix.co.uk
Tue, 21 Oct 2003 12:11:27 +0100


On Mon, 2003-10-20 at 18:51, Michael Meskes wrote:
> Sometimes I really like my fellow developers. I rarely if ever got a
> non-negative response to a reassign. Sigh.

He's probably justified, though:

(gdb) set args  -MDBI -e '$db=DBI->connect("dbi:ODBC:bray")'
(gdb) r
Starting program: /usr/bin/perl -MDBI -e '$db=DBI->connect("dbi:ODBC:bray")'
[...]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 10422)]
SOCK_Destructor (self=0x19) at socket.c:91
91              if (self->socket != -1)
(gdb) bt
#0  SOCK_Destructor (self=0x19) at socket.c:91
#1  0x402f500b in CC_cleanup (self=0x82a31c0) at connection.c:470
#2  0x402f46da in PGAPI_Disconnect (hdbc=0x82a31c0) at connection.c:191
#3  0x40315de8 in SQLDisconnect (ConnectionHandle=0x82a31c0) at odbcapi.c:232
#4  0x402241bf in odbc_db_disconnect () from /usr/lib/perl5/auto/DBD/ODBC/ODBC.so
#5  0x4021becd in XS_DBD__ODBC__db_DESTROY ()
   from /usr/lib/perl5/auto/DBD/ODBC/ODBC.so
#6  0x4020680b in XS_DBI_dispatch () from /usr/lib/perl5/auto/DBI/DBI.so
#7  0x080cd066 in Perl_pp_entersub ()
#8  0x08063bdc in Perl_call_sv ()
#9  0x080639b3 in Perl_call_sv ()
#10 0x080d54b5 in Perl_sv_clear ()
#11 0x080d5d00 in Perl_sv_free ()
#12 0x080e1fb0 in Perl_sv_clean_objs ()
#13 0x08061a03 in perl_destruct ()
#14 0x0805f96d in main ()
(gdb)

The problem seems to be in CC_cleanup in connection.c of psqlodbc

-- 
Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK                             http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
                 ========================================
     "If ye then be risen with Christ, seek those things 
      which are above, where Christ sitteth on the right 
      hand of God. Set your affection on things above, not 
      on things on the earth."              Colossians 3:1,2