pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PL/Tcl: internal error - cannot create 'normal' interpreter
4+ messages / 3 participants
[nested] [flat]

* PL/Tcl: internal error - cannot create 'normal' interpreter
@ 2003-04-24 12:34 Fabian Peters <fabian@ngi.de>
  2003-04-25 02:40 ` Re: PL/Tcl: internal error - cannot create 'normal' interpreter Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Fabian Peters @ 2003-04-24 12:34 UTC (permalink / raw)
  To: pgsql-interfaces

Hi everybody,

I'm stuck getting PL/Tcl to work with postgresql-7.3.2 and Tcl8.4 under OS X
10.2.4. I compiled from source with the following configure flags:

./configure --with-includes=/sw/include/ --with-libraries=/sw/lib --with-tcl
--with-tkconfig=/Library/Frameworks/Tk.framework

The pgtclsh seems to work fine but calling a function in a database from
psql results in the following:

> ERROR:  pltcl: internal error - cannot create 'normal' interpreter

I ran the test suite, which also produces the above error. A search of the
archives didn't return much, so I'm pretty clueless now.

Any ideas as to what might be the problem or how to get some more detailed
info greatly appreciated...

cheers

Fabian




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: PL/Tcl: internal error - cannot create 'normal' interpreter
  2003-04-24 12:34 PL/Tcl: internal error - cannot create 'normal' interpreter Fabian Peters <fabian@ngi.de>
@ 2003-04-25 02:40 ` Tom Lane <tgl@sss.pgh.pa.us>
  2003-04-26 02:22   ` Re: PL/Tcl: internal error - cannot create 'normal' interpreter Jan Wieck <JanWieck@Yahoo.com>
  2003-04-28 15:31   ` Re: PL/Tcl: internal error - cannot create 'normal' Fabian Peters <fabian@ngi.de>
  0 siblings, 2 replies; 4+ messages in thread

From: Tom Lane @ 2003-04-25 02:40 UTC (permalink / raw)
  To: Fabian Peters <fabian@ngi.de>; +Cc: pgsql-interfaces

Fabian Peters <fabian@ngi.de> writes:
>> ERROR:  pltcl: internal error - cannot create 'normal' interpreter

> Any ideas as to what might be the problem or how to get some more detailed
> info greatly appreciated...

Apparently Tcl_CreateSlave() is failing.  Although it doesn't say so on
its man page, it seems likely to me that the parent interpreter's result
would be set to a possibly-useful error message.  You might try adding
code to pltcl.c to add the "hold" interpreter's result to this error
message.

We've heard other reports of strange failures involving Tcl_CreateSlave,
but AFAIR the other ones prevented pltcl.so from even getting linked.
If you learn anything I'd like to hear about it...

			regards, tom lane




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: PL/Tcl: internal error - cannot create 'normal' interpreter
  2003-04-24 12:34 PL/Tcl: internal error - cannot create 'normal' interpreter Fabian Peters <fabian@ngi.de>
  2003-04-25 02:40 ` Re: PL/Tcl: internal error - cannot create 'normal' interpreter Tom Lane <tgl@sss.pgh.pa.us>
@ 2003-04-26 02:22   ` Jan Wieck <JanWieck@Yahoo.com>
  1 sibling, 0 replies; 4+ messages in thread

From: Jan Wieck @ 2003-04-26 02:22 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Fabian Peters <fabian@ngi.de>; pgsql-interfaces

I cannot think of any reason why it would fail to create the 'normal'
interpreter after successfully creating the 'hold' one ... so CC me on
that please.


Jan

Tom Lane wrote:
> 
> Fabian Peters <fabian@ngi.de> writes:
> >> ERROR:  pltcl: internal error - cannot create 'normal' interpreter
> 
> > Any ideas as to what might be the problem or how to get some more detailed
> > info greatly appreciated...
> 
> Apparently Tcl_CreateSlave() is failing.  Although it doesn't say so on
> its man page, it seems likely to me that the parent interpreter's result
> would be set to a possibly-useful error message.  You might try adding
> code to pltcl.c to add the "hold" interpreter's result to this error
> message.
> 
> We've heard other reports of strange failures involving Tcl_CreateSlave,
> but AFAIR the other ones prevented pltcl.so from even getting linked.
> If you learn anything I'd like to hear about it...


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




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: PL/Tcl: internal error - cannot create 'normal'
  2003-04-24 12:34 PL/Tcl: internal error - cannot create 'normal' interpreter Fabian Peters <fabian@ngi.de>
  2003-04-25 02:40 ` Re: PL/Tcl: internal error - cannot create 'normal' interpreter Tom Lane <tgl@sss.pgh.pa.us>
@ 2003-04-28 15:31   ` Fabian Peters <fabian@ngi.de>
  1 sibling, 0 replies; 4+ messages in thread

From: Fabian Peters @ 2003-04-28 15:31 UTC (permalink / raw)
  To: pgsql-interfaces; +Cc: Tom Lane <tgl@sss.pgh.pa.us>; Jan Wieck <JanWieck@Yahoo.com>

Tom, Jan,

thanks for your feedback! I suspect there might be a problem with the OS X
way of linking. Right now I don't have the time to investigate this any
further. But I'll have to get back to it in a couple of weeks and will keep
you posted...

cheers

Fabian

> Fabian Peters <fabian@ngi.de> writes:
>>> ERROR:  pltcl: internal error - cannot create 'normal' interpreter
> 
>> Any ideas as to what might be the problem or how to get some more detailed
>> info greatly appreciated...
> 
> Apparently Tcl_CreateSlave() is failing.  Although it doesn't say so on
> its man page, it seems likely to me that the parent interpreter's result
> would be set to a possibly-useful error message.  You might try adding
> code to pltcl.c to add the "hold" interpreter's result to this error
> message.
> 
> We've heard other reports of strange failures involving Tcl_CreateSlave,
> but AFAIR the other ones prevented pltcl.so from even getting linked.
> If you learn anything I'd like to hear about it...
> 
> regards, tom lane




^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2003-04-28 15:31 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-04-24 12:34 PL/Tcl: internal error - cannot create 'normal' interpreter Fabian Peters <fabian@ngi.de>
2003-04-25 02:40 ` Tom Lane <tgl@sss.pgh.pa.us>
2003-04-26 02:22   ` Jan Wieck <JanWieck@Yahoo.com>
2003-04-28 15:31   ` Re: PL/Tcl: internal error - cannot create 'normal' Fabian Peters <fabian@ngi.de>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox