Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: "egor duda" Subject: cygipc shmat bug Date: Wed, 30 Jan 2002 16:32:06 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 ; 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/