public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [ANN] cygipc-1.07 at CygUtils
@ 2000-09-16 23:03 Charles Wilson
  2000-09-17  4:04 ` Dr. Volker Zell
  0 siblings, 1 reply; 3+ messages in thread
From: Charles Wilson @ 2000-09-16 23:03 UTC (permalink / raw)
  To: cygwin

CygIPC provides shared memory, semaphores, and message support
for cygwin.  It provides the following functions:
   msgget      semget      shmget
   msgrcv      semop       shmat
   msgsnd      semctl      shmdt
   msgctl                  shmctl

Thanks to Andrea Malagoli and Pete Forman for various fixes, cygipc now
builds on W2K, and with cygwin-1.1.4.  I have not done extensive
testing, but ipctest.exe seems to work well.  Since this is not an
'official' cygwin package, it installs into /usr/local/* instead of
/usr/*.  To install the precompiled package, just unpack from /:
  cd / && tar xvzf <path>/cygipc-1.07-1.tar.gz

Also, after installing this version you may need to remove certain files
from /tmp by hand:  /tmp/MultiFile*, /tmp/0, /tmp/1, etc.  See the
README file.
 
You can download source or precompiled packages from:
   http://cygutils.netpedia.net/V1.1/

Contrary to my recent habit, this library is static only -- no dll.  As
always, bug reports and patches welcome.

--Chuck

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: [ANN] cygipc-1.07 at CygUtils
  2000-09-16 23:03 [ANN] cygipc-1.07 at CygUtils Charles Wilson
@ 2000-09-17  4:04 ` Dr. Volker Zell
  2000-09-17 19:07   ` Charles Wilson
  0 siblings, 1 reply; 3+ messages in thread
From: Dr. Volker Zell @ 2000-09-17  4:04 UTC (permalink / raw)
  To: Charles Wilson; +Cc: cygwin

Hi Charles

ipctest with your new version works well but see below:

>>>>> "Charles" == Charles Wilson <cwilson@ece.gatech.edu> writes:

    Charles> You can download source or precompiled packages from:
    Charles>    http://cygutils.netpedia.net/V1.1/

    Charles> Contrary to my recent habit, this library is static only -- no dll.  As
    Charles> always, bug reports and patches welcome.

With the new version I still get

op/taint.............      0 [main] perl 14920 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
   8544 [main] perl 14920 stackdump: Dumping stack trace to perl.exe.stackdump
FAILED at test 150

lib/ipc_sysv.........      0 [main] perl 15703 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
    667 [main] perl 15703 stackdump: Dumping stack trace to perl.exe.stackdump
FAILED at test 1

when running the perl5.6.0 testsuite.


Also postmaster from postgresql-7.0.2 still gives the same errors:

vzell:/gnu/src/perl-5.6.0> postmaster -i
Creation de Semaphore "Sem" impossible
IpcSemaphoreCreate: semget failed (Not enough memory) key=5432014, num=16, permission=600
This type of error is usually caused by an improper
shared memory or System V IPC semaphore configuration.
For more information, see the FAQ and platform-specific
FAQ's in the source directory pgsql/doc or on our
web site at http://www.postgresql.org .
FATAL 1:  InitProcGlobal: IpcSemaphoreCreate failed
NOTICE:  IpcMemoryDetach: shmdt(0x0x144c0000): Invalid argument
NOTICE:  IpcMemoryDetach: shmdt(0x0x144b0000): Invalid argument

    Charles> --Chuck

Is anybody else running successfully some program which uses cygipc.
Please send me the source URL to try it out.

Ciao
  Volker


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: [ANN] cygipc-1.07 at CygUtils
  2000-09-17  4:04 ` Dr. Volker Zell
@ 2000-09-17 19:07   ` Charles Wilson
  0 siblings, 0 replies; 3+ messages in thread
From: Charles Wilson @ 2000-09-17 19:07 UTC (permalink / raw)
  To: Dr. Volker Zell; +Cc: cygwin

[-- Attachment #1: Type: text/plain, Size: 3642 bytes --]

"Dr. Volker Zell" wrote:
> 
> Hi Charles
> 
> ipctest with your new version works well but see below:
> 
> >>>>> "Charles" == Charles Wilson <cwilson@ece.gatech.edu> writes:
> 
>     Charles> You can download source or precompiled packages from:
>     Charles>    http://cygutils.netpedia.net/V1.1/
> 
>     Charles> Contrary to my recent habit, this library is static only -- no dll.  As
>     Charles> always, bug reports and patches welcome.
> 
> With the new version I still get
> 
> op/taint.............      0 [main] perl 14920 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
>    8544 [main] perl 14920 stackdump: Dumping stack trace to perl.exe.stackdump
> FAILED at test 150
> 
> lib/ipc_sysv.........      0 [main] perl 15703 handle_exceptions: Exception: STATUS_ACCESS_VIOLATION
>     667 [main] perl 15703 stackdump: Dumping stack trace to perl.exe.stackdump
> FAILED at test 1
> 
> when running the perl5.6.0 testsuite.

Works fine here.  However, since perl5.6.0 came out before cygwin-1.1.4,
there are a few changes to perl that are necessary before you get a
clean build on newer cygwin kernels.  These patches are from Eric Fifer,
and are attached below.  My results (note: the #shmget failed & etc in
op/taint are not ipc failures, but taint errors...)

op/taint............# shmget failed: 
# shmwrite failed: Identifier removed
# shmctl failed: Identifier removed
FAILED tests 1, 3, 31
	Failed 3/151 tests, 98.01% okay (-11 skipped tests: 137 okay, 90.73%)

lib/ipc_sysv........ok, 10/16 skipped: no semctl possible

Failed Test  Status Wstat Total Fail  Failed  List of failed
-------------------------------------------------------------------------------
op/grent.t                    1    1 100.00%  1
op/taint.t                  151    3   1.99%  1, 3, 31
7 tests and 94 subtests skipped.
Failed 2/236 test scripts, 99.15% okay. 4/11543 subtests failed, 99.97%
okay.

A word of warning: in cygipc, the "IPC_STAT" command is not implemented
for semaphores (probably explains the 10 skipped ipc_sysv tests).  If
you call semctl() with cmd argument = IPC_STAT, it returns error ENOSYS.

Perhaps this has bearing on the postgres failures as well?

***************************************
After copying cygwin1.dll into <perl-src>/t/ and re-running perl harness
taint.t I got the following on stdout:
 
op/taint............ok, 11/151 skipped: various reasons
All tests successful, 11 subtests skipped.
Files=1, Tests=151,  3 wallclock secs ( 0.22 cusr +  0.12 csys =  0.34
CPU)

and this on stderr:

#shmwrite failed: Invalid argument
***************************************

> 
> Also postmaster from postgresql-7.0.2 still gives the same errors:
> 
> vzell:/gnu/src/perl-5.6.0> postmaster -i
> Creation de Semaphore "Sem" impossible
> IpcSemaphoreCreate: semget failed (Not enough memory) key=5432014, num=16, permission=600
> This type of error is usually caused by an improper
> shared memory or System V IPC semaphore configuration.
> For more information, see the FAQ and platform-specific
> FAQ's in the source directory pgsql/doc or on our
> web site at http://www.postgresql.org .
> FATAL 1:  InitProcGlobal: IpcSemaphoreCreate failed
> NOTICE:  IpcMemoryDetach: shmdt(0x0x144c0000): Invalid argument
> NOTICE:  IpcMemoryDetach: shmdt(0x0x144b0000): Invalid argument

I know nothing about postgresql; can't help you there.  Try building
cygipc with -DTRACE defined in the Makefile, and then rebuilding
postgresql with *that* library. Perhaps that will help you track this
down.

--Chuck
perl-patches.tar.gz
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


[-- Attachment #2: perl-patches.tar.gz --]
[-- Type: application/x-gzip, Size: 10863 bytes --]

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

end of thread, other threads:[~2000-09-17 19:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-09-16 23:03 [ANN] cygipc-1.07 at CygUtils Charles Wilson
2000-09-17  4:04 ` Dr. Volker Zell
2000-09-17 19:07   ` Charles Wilson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).