From owner-freebsd-emulation@FreeBSD.ORG Sat May 9 07:00:04 2009 Return-Path: Delivered-To: freebsd-emulation@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BDA6A106566C for ; Sat, 9 May 2009 07:00:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 909D08FC0C for ; Sat, 9 May 2009 07:00:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n4970491019257 for ; Sat, 9 May 2009 07:00:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n49704gb019256; Sat, 9 May 2009 07:00:04 GMT (envelope-from gnats) Date: Sat, 9 May 2009 07:00:04 GMT Message-Id: <200905090700.n49704gb019256@freefall.freebsd.org> To: freebsd-emulation@FreeBSD.org From: Thomas Mueller Cc: Subject: Re: kern/134276: [linux][patch] MSG_NOSIGNAL not translated for recv(), socket timeout incorrect for 64-bit hosts X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Thomas Mueller List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 May 2009 07:00:05 -0000 The following reply was made to PR kern/134276; it has been noted by GNATS. From: Thomas Mueller To: Chagin Dmitry Cc: freebsd-gnats-submit@freebsd.org Subject: Re: kern/134276: [linux][patch] MSG_NOSIGNAL not translated for recv(), socket timeout incorrect for 64-bit hosts Date: Sat, 9 May 2009 08:30:53 +0200 On Sat, 9 May 2009 00:10:03 +0400, Chagin Dmitry wrote: > On Wed, May 06, 2009 at 04:57:50PM +0000, Thomas Mueller wrote: > > > > >Number: 134276 > > >Category: kern > > >Synopsis: [linux][patch] MSG_NOSIGNAL not translated for recv(), socket timeout incorrect for 64-bit hosts > > >Confidential: no > > >Severity: non-critical > > >Priority: low > > >Responsible: freebsd-bugs > > >State: open > > >Quarter: > > >Keywords: > > >Date-Required: > > >Class: sw-bug > > >Submitter-Id: current-users > > >Arrival-Date: Wed May 06 17:00:07 UTC 2009 > > >Closed-Date: > > >Last-Modified: > > >Originator: Thomas Mueller > > >Release: 7.2-STABLE > > >Organization: > > >Environment: > > FreeBSD tom.ulm.sysgo.com 7.2-STABLE FreeBSD 7.2-STABLE #16: Mon May 4 15:12:43 CEST 2009 toor@tom.ulm.sysgo.com:/usr/obj/usr/src/sys/TOM amd64 > > >Description: > > I've encountered two socket related problems with the Linux emulation: > > > > 1. A Linux application passing the MSG_NOSIGNAL flag in calls to > > recv() or recvfrom() will still receive a SIGPIPE if the condition > > for sending the signal is met. > > > > 2. An attempt to set socket timeouts with a call to setsocktopt() using the > > SO_RECVTIMEO or SO_SNDTIMEO option will fail with [EINVAL] on amd64. > > > > What the Linux application you have mentioned? > I should know it to test patches. Thank you. Sorry for not mentioning it in the PR. The applications are part of the LM-X License Manager package by X-Formation (http://www.x-formation.com/). It looks like they offer a trial download but require registration. When back in the office (next weeek), I could revert my local changes and provide you with an output of linux_kdump if that helps. I would also test patches. -- Thomas Mueller