From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27071 invoked from network); 12 Jun 2006 13:08:05 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 12 Jun 2006 13:08:05 -0000 Received: (qmail 76092 invoked from network); 12 Jun 2006 13:07:57 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 Jun 2006 13:07:57 -0000 Received: (qmail 15325 invoked by alias); 12 Jun 2006 13:07:55 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22487 Received: (qmail 15316 invoked from network); 12 Jun 2006 13:07:54 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 12 Jun 2006 13:07:54 -0000 Received: (qmail 75878 invoked from network); 12 Jun 2006 13:07:54 -0000 Received: from cluster-c.mailcontrol.com (168.143.177.190) by a.mx.sunsite.dk with SMTP; 12 Jun 2006 13:07:52 -0000 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly20c.srv.mailcontrol.com (MailControl) with ESMTP id k5CD77Eo004676 for ; Mon, 12 Jun 2006 14:07:43 +0100 Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Mon, 12 Jun 2006 14:06:36 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.4/8.13.4) with ESMTP id k5CD7K96018063 for ; Mon, 12 Jun 2006 14:07:20 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.13.4/8.13.4/Submit) with ESMTP id k5CD7JvS018060 for ; Mon, 12 Jun 2006 14:07:20 +0100 Message-Id: <200606121307.k5CD7JvS018060@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: Re: Hang on latest kubuntu linux when built with icc In-reply-to: <20a807210606101831w3170d4aandf94ce83ac5ec8a8@mail.gmail.com> References: <20a807210606101831w3170d4aandf94ce83ac5ec8a8@mail.gmail.com> Date: Mon, 12 Jun 2006 14:07:19 +0100 From: Peter Stephenson X-OriginalArrivalTime: 12 Jun 2006 13:06:36.0310 (UTC) FILETIME=[09062360:01C68E21] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-07-00-10 (www.mailcontrol.com) on 10.67.0.130 "Vin Shelton" wrote: > when I build the latest CVS sources with icc, the Intel C compiler, > the shell eventually hangs after running a command but before > returning to the prompt. It usually takes only 1-5 commands before > this happens. > > Here's an strace of zsh -f: >... > wait4(-1, 0xbfd3ac30, WNOHANG|WSTOPPED, 0xbfd3abd4) = -1 ECHILD (No > child processes) > sigreturn() = ? (mask now ~[HUP KILL CHLD > STOP RTMIN]) > pause() = ? ERESTARTNOHAND (To be restarted) > --- SIGHUP (Hangup) @ 0 (0) --- >... > The SIGHUP is where I killed the shell from another window. Unfortunately I'm not a signal expert and it really needs someone who does this sort of thing regularly. The pause() looks a bit fishy. There are two explicit occurrences in the code: I'll assume it's one of these for now. What strace reports might be only distantly related to the source code; still, my Fedora Core 4 with 2.6.14 says it's calling rt_sigsuspend(), which sounds much more plausible. One call is here: #ifdef BROKEN_POSIX_SIGSUSPEND sigprocmask(SIG_SETMASK, &set, &oset); pause(); sigprocmask(SIG_SETMASK, &oset, NULL); #else /* not BROKEN_POSIX_SIGSUSPEND */ ret = sigsuspend(&set); #endif /* BROKEN_POSIX_SIGSUSPEND */ and the other is right down at the tail end where we're virtually implementing signal suspension from scratch. I don't think you should be getting either of those... certainly not the second, but probably not BROKEN_POSIX_SIGSUSPEND either. Could you check if that's defined? If it is, try undefining it; the test may need tweaking. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php