delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/30/10:34:49

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <000501c1a9a3$47d613a0$010310ac@lyoncleitienne>
From: "Christophe LEITIENNE" <cleitienne AT wanadoo DOT fr>
To: "egor duda" <cygwin AT cygwin DOT com>
Subject: cygipc shmat bug
Date: Wed, 30 Jan 2002 16:32:06 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

Hi all,
I've noticed some problems using shared memory with cygipc, which don't seem
to be present in the mailing list archives.
I'm running cygwin 1.3.9 with cygipc 1.11 on a W2K machine.

SYMPTOMS
If you run multiple times a simple app that attaches a shared memory segment
(with shmat), some attachments fail (shmat return -1, errno: invalid
argument).

TO REPRODUCE THIS BEHAVIOR:
- open a cygwin bash shell
- launch "ipctest.exe h" to create a shared memory segment
- call "ipcs" to know the shmid of the segment you just created
- then run "while true; do ipctest.exe h a <shmid>; done"
You'll see that some of the attachments fail with "shmat : Invalid argument"

Well, I'm not sure this is really a new bug, since I saw that shmat uses
mmap and mmap is buggy, right ?

Best Regards,

Christophe LEITIENNE


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019