Re: pg_connect dumps core

From: Jan Wieck <janwieck(at)Yahoo(dot)com>
To: Matthias Teege <matthias(at)mteege(dot)de>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: pg_connect dumps core
Date: 2001-03-05 22:15:58
Message-ID: 200103052215.RAA09271@jupiter.jw.home
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

Matthias Teege wrote:
> Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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(at)mteege(dot)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(at)postgresql(dot)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(at)Yahoo(dot)com #

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

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message balraju 2001-03-06 01:23:04 problem with Inserting a new record in MS ACCESS through JDBC in JSP
Previous Message jr 2001-03-05 19:02:41 return codes