From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 9 10:10:06 2005 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 502A516A4CE for ; Wed, 9 Mar 2005 10:10:06 +0000 (GMT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1EFD943D60 for ; Wed, 9 Mar 2005 10:10:06 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j29AA55s001878 for ; Wed, 9 Mar 2005 10:10:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j29AA5Ld001877; Wed, 9 Mar 2005 10:10:05 GMT (envelope-from gnats) Date: Wed, 9 Mar 2005 10:10:05 GMT Message-Id: <200503091010.j29AA5Ld001877@freefall.freebsd.org> To: emulation@FreeBSD.org From: Maxim Sobolev Subject: Re: kern/72922: linux emulation: suid/sgid threaded applications hang X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Maxim Sobolev List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2005 10:10:06 -0000 The following reply was made to PR kern/72922; it has been noted by GNATS. From: Maxim Sobolev To: Andriy Gapon Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: kern/72922: linux emulation: suid/sgid threaded applications hang Date: Wed, 09 Mar 2005 11:59:48 +0200 Andriy Gapon wrote: > on 20.02.2005 19:21 Maxim Sobolev said the following: > >>Andriy, >> >>Can you please test the following patch and let me know if it help or not. >> >>http://www.pbxpress.com/~sobomax/72922.diff > > > Maxim, > sorry that it took me so long to try this patch, I could do reboot only > on the past weekend and, ufortunately, this patch didn't fix the > problem with MQ, strmqm command still hangs if conservative_signals=1. I > am not sure if you commited exactly this patch or something different in > current (unfortunately I am not able to test current), but this patch > apparently does not work in this particular case. I am not sure if I > will be able to help you with debugging kernel stuff (linux kld - most > probably yes, kernel - most propbably not), but I can definitely provide > you information about this particular program, strmqm, if you need it > and if you tell me what to check for. Hmm, that's pretty strange. Can you please fetch the following Linux binary, make it suid root and try to run as ordinary user on your system? I've used it to verify that my patch is in fact works - after the change has been made it stopped hanging at my system. http://www.pbxpress.com/~sobomax/aqueue_linux It will make sense to execute that strmqm program under ktrace(8) with -i flag (use ports/devel/linux_kdump to decode resulting trace) and send me the output of linux_kdump. Maybe your version of linuxthreads uses some different set of flags in linux_clone(), so that my heuristics fails. -Maxim