From owner-freebsd-emulation@freebsd.org Tue Mar 8 11:50:25 2016 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9FAD2AC743F for ; Tue, 8 Mar 2016 11:50:25 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 211A0EBA; Tue, 8 Mar 2016 11:50:24 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id u28BoI2Y067258 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 8 Mar 2016 13:50:19 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua u28BoI2Y067258 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id u28BoIMP067255; Tue, 8 Mar 2016 13:50:18 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 8 Mar 2016 13:50:18 +0200 From: Konstantin Belousov To: Chagin Dmitry Cc: Nils Beyer , freebsd-emulation@freebsd.org Subject: Re: citrix_ica - "wfica" generates deadlock in linux_sys_futex... Message-ID: <20160308115018.GM67250@kib.kiev.ua> References: <1710849.HCaPmFIAXo@asbach.renzel.net> <20160308075527.GA29364@chd.heemeyer.club> <1794078.TnZCHkfeGo@asbach.renzel.net> <20160308085140.GA30833@chd.heemeyer.club> <2225619.DhA8sIh2h8@asbach.renzel.net> <20160308093009.GA31396@chd.heemeyer.club> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160308093009.GA31396@chd.heemeyer.club> User-Agent: Mutt/1.5.24 (2015-08-30) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Mar 2016 11:50:25 -0000 On Tue, Mar 08, 2016 at 12:30:10PM +0300, Chagin Dmitry wrote: > On Tue, Mar 08, 2016 at 10:03:50AM +0100, Nils Beyer wrote: > > Chagin Dmitry wrote: > > >>>> using 10.3-RC1 (r296451M) "wfica" from citrix_ica generates a deadlock > > >>>> in linux_sys_futex: > > >>>> ============================================================================== > > >>>> #tail -50 ktrace.wfica.log > > >>> > > >>> nice, please, do kdump -HAR -m256 > xxx.log and place a whole log > > >>> somewhere > > >> > > >> done: > > >> > > >> http://www.renzel.net/_upload_/ktrace.wfica.log > > > > > > thanks, do u have same log but for working wfica? > > > > here (kernel from 10.2-RELEASE): > > > > http://www.renzel.net/_upload_/ktrace.wfica.working.log.gz > > > so, my assumptions confirmed, in kernel from 10.2: > > 1649 100695 wfica 0.000042 CALL L32 linux_ipc(0x2,0x1e240,0x1,0x7b6,0,0x2d4ca598) > 1649 100695 wfica 0.000010 RET L32 linux_ipc 65536/0x10000 > ^^^^^ succeded > > 1649 100695 wfica 0.000007 CALL L32 linux_ipc(0x3,0x10000,0,0x111,0x2d4ca588,0x2d4ca598) > 1649 100695 wfica 0.000008 RET L32 linux_ipc 0 > > > > in new kernel: > > 1828 100750 wfica 0.000031 CALL L32 linux_ipc(0x2,0x1e240,0x1,0x7b6,0,0x2d4cb598) > 1828 100750 wfica 0.000010 RET L32 linux_ipc -1 errno 17 File exists > 1828 100750 wfica 0.000008 CALL L32 linux_ipc(0x2,0x1e240,0x1,0x1b6,0,0x2d4cb598) > 1828 100750 wfica 0.000007 RET L32 linux_ipc 65536/0x10000 > > this is strange as no ipc changes are made in stable/10 There was one interesting change, AFAIR. Check the value of sysctl kern.ipc.shm_allow_removed, and if it's value is one, change it to zero.