From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030678AbXDYPFN (ORCPT ); Wed, 25 Apr 2007 11:05:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030958AbXDYPFN (ORCPT ); Wed, 25 Apr 2007 11:05:13 -0400 Received: from nz-out-0506.google.com ([64.233.162.238]:37428 "EHLO nz-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030678AbXDYPFM (ORCPT ); Wed, 25 Apr 2007 11:05:12 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XNKqvb83D06gmVbAcZruGmjp/3TjACj0qjQSb0B/iaUmsJHRp9Y9hyHBFfXkkjZW+GP1MgjDXdsQiOhpxTn/iY/I5om2vnHIYUjVpEisxAn65tY7sE9Xy6xhIWCTd0GG3MP660FCItVo1CksFq8GbRmo3HKr4q1oZ63kGjXhcZ0= Message-ID: Date: Wed, 25 Apr 2007 12:05:09 -0300 From: "Miguel Freitas" To: linux-kernel@vger.kernel.org Subject: Re: Advice on debuging the fork syscall hanging forever In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On 4/25/07, Miguel Freitas wrote: > hey, could it be that this -513 is actually -ERESTARTNOINTR? if so, that would be a good explanation why it hangs. - copy_process() checks for pending signals, then set retval = -ERESTARTNOINTR and returns. - handle_signal has the following code: case -ERESTARTNOINTR: regs->rax = regs->orig_rax; regs->rip -= 2; break; looks like it will keep trying to reenter the syscall forever, subtracting 2 from ip will restart the syscall. by some reason the signal is never really handled. Miguel