Re: pg_connect dumps core - Mailing list pgsql-interfaces

From Jan Wieck
Subject Re: pg_connect dumps core
Date
Msg-id 200103052215.RAA09271@jupiter.jw.home
Whole thread Raw
In response to Re: pg_connect dumps core  (Matthias Teege <matthias@mteege.de>)
List pgsql-interfaces
Matthias Teege wrote:
> Tom Lane <tgl@sss.pgh.pa.us> writes:
>
> > Strange.  Evidently it's getting as far as opening the connection
> > (pq_recvbuf is used in the backend, not the postmaster), but then
> > crashing after that.  I can't see any reason why it would work for
> > pgaccess but not for you.  (I notice that pgaccess uses the conninfo
> > style of arguments to pg_connect, but that shouldn't make a
> > difference...)
>
> Hmm, I tested this one but without success.
>
> > Can you provide a stack backtrace from the core file?
>
> This one?
   Yepp, that's what Tom meant.
   Tom,  let  me add to it that I noticed recently that libpgtcl   isn't Tcl8.3 safe. It didn't went that far for  me
(no core   dumps),  but  it  mangled  some  inputs  because  Tcl8.3 does   anything  internally  in  UNICODE  (IIRC)
and the  libpgtcl   functions don't care for encoding.
 
   For  the actual error, I cannot reproduce that with 7.0.3 and   Tcl8.3 here  on  RedHAT  6.1.  So  there  might  be
as well   something wrong with his Tcl installation.
 


Jan

>
> (gdb) bt
> #0  0x281ca5d9 in Tcl_GetEncodingName () from /usr/local/lib/libtcl83.so
> #1  0x281daee4 in Tcl_CreateChannel () from /usr/local/lib/libtcl83.so
> #2  0x281843dd in PgSetConnectionId () from /usr/local/pgsql/lib/libpgtcl.so
> #3  0x28182549 in Pg_connect () from /usr/local/pgsql/lib/libpgtcl.so
> #4  0x805efa0 in TclInvokeStringCommand ()
> #5  0x8079fbb in TclExecuteByteCode ()
> #6  0x805f9f3 in Tcl_EvalObjEx ()
> #7  0x8083a85 in Tcl_RecordAndEvalObj ()
> #8  0x808395f in Tcl_RecordAndEval ()
> #9  0x804b485 in StdinProc ()
> #10 0x808a493 in Tcl_NotifyChannel ()
> #11 0x805daf7 in FileHandlerEventProc ()
> #12 0x804bb36 in Tcl_ServiceEvent ()
> #13 0x804be15 in Tcl_DoOneEvent ()
> #14 0x804b731 in Tcl_MainLoop ()
> #15 0x804b364 in Tcl_Main ()
> #16 0x804af5f in main ()
> #17 0x804aea9 in _start ()
>
> Many thanks
> Matthias
>
> --
> Matthias Teege -- matthias@mteege.de -- http://emugs.de
> make world not war
> PGP-Key auf Anfrage
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>


--

#======================================================================#
# It's easier to get forgiveness for being wrong than for being right. #
# Let's break this rule - forgive me.                                  #
#================================================== JanWieck@Yahoo.com #



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com



pgsql-interfaces by date:

Previous
From: Matthias Teege
Date:
Subject: Re: pg_connect dumps core
Next
From: Matthias Teege
Date:
Subject: Re: pg_connect dumps core