From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 32439 invoked from network); 10 Aug 1998 08:31:16 -0000 Received: from morgane.oleane.net (@194.2.1.9) by mail2.redhat.com with SMTP; 10 Aug 1998 08:31:16 -0000 Received: from mozart (mailhost.gx-tech.fr [195.25.232.17]) by morgane.oleane.net with ESMTP id KAA25847 for ; Mon, 10 Aug 1998 10:31:14 +0200 Received: from mahler ([195.25.232.23]) by mozart (8.8.8/8.8.8) with SMTP id KAA05866 for ; Mon, 10 Aug 1998 10:31:12 +0200 (MET DST) Sender: turlais@gx-tech.fr Message-ID: <35CEAFCE.167E@gx-tech.fr> Date: Mon, 10 Aug 1998 10:31:10 +0200 From: Pierre TURLAIS Organization: LODS X-Mailer: Mozilla 3.01SC-SGI (X11; I; IRIX 6.2 IP22) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Pb with pthread/clone. Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit A short description: We want to share memory between two processes. Typically, a process waits for info from a socket and prepare data for work. The other actually process the data. To be able to share the data ( two areas, one being prepared, one being processed ), we use pthread or clone. When we run ~10 instances of the program ( i.e ~ 20 processes ), we get some faults ( SEGV or Illegal Instruction ) in unrelated process ( as update for example with a lock of the computer ). If we replace the use of clone with a fork and share the memory with a mmap file, everything runs smoothly. The same process with clone runs correctly on Intel platform ( or with pthread on SGI and Solaris ). Has anyone else experienced the same problem ? I am preparing a small program that will (hopefully) exhibit this behavior. Some info on the system: lulli 1- uname -a Linux lulli 2.0.33 #3 Thu Mar 19 20:13:24 CET 1998 alpha unknown ( we also tried 2.0.35 from redhat ) /lib/libc-2.0.7.so gcc version 2.7.2.3 All tests run under a standard user. Thanks for any hint. -- Pierre TURLAIS