Re: Postgres 7.3 from source --with-tcl : Errors again...

Lists: pgsql-cygwin
From: s0lao(at)netscape(dot)net (S(dot) L(dot))
To: jason(at)tishler(dot)net (Jason Tishler), peter_e(at)gmx(dot)net (Peter Eisentraut), and_k_98(at)yahoo(dot)com (Andrew Klimov), pgsql-cygwin(at)postgresql(dot)org
Subject: Re: Postgres 7.3 from source --with-tcl : Errors again...
Date: 2003-02-03 07:40:01
Message-ID: 245EB6EC.3B79C79D.00013D13@netscape.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-cygwin

Jason,

[...]
> HKCU\Software\Cygnus Solutions\Cygwin\heap_chunk_in_mb
>
>doesn't seem to help. :,(
[...]

Dunno if it's a real hint (I still don't have a 7.3 distro available, yet), but:
1. In my previous experiences with interfaces/libpgtcl and pl/tcl I had to comment out the Tcl_CreateChannelHandler and Tcl_DeleteChannelHandler in pgtclId.c from interfaces/libpgtcl. And pgtcl.dll worked.
2. Actually pltcl.c didn't need this "patch", but as I've verified now, there are pltcl_[*]_handler functins that can rely on the two functions above, that are not (or are defective) present in libtcl.

SLao

__________________________________________________________________
The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp

Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/


From: Jason Tishler <jason(at)tishler(dot)net>
To: "S(dot) L(dot)" <s0lao(at)netscape(dot)net>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, Andrew Klimov <and_k_98(at)yahoo(dot)com>, pgsql-cygwin(at)postgresql(dot)org
Subject: Re: Postgres 7.3 from source --with-tcl : Errors again...
Date: 2003-02-04 18:37:49
Message-ID: 20030204183748.GD1400@tishler.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-cygwin

On Mon, Feb 03, 2003 at 02:40:01AM -0500, S. L. wrote:
> [...]
> > HKCU\Software\Cygnus Solutions\Cygwin\heap_chunk_in_mb
> >
> >doesn't seem to help. :,(

The above problem was not due to exhausting the Cygwin heap. Instead,
it was cygipc's shmget() returning ENOMEM because /tmp/cygipc_0 was open
and mmap-ed in another backend:

(libcygipc) newseg : LBuff = /tmp/cygipc_0, errno = 13, return -ENOMEM (2)

See the following thread for the root cause analysis:

http://cygwin.com/ml/cygwin/2003-02/msg00255.html

I'm amazed that (so far) only PL/Tcl has triggered this problem.

Does anyone have any ideas on how to workaround this problem? Is it
time to switch to the Win32 version? :,)

Thanks,
Jason

--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6