From owner-freebsd-current Wed Nov 11 10:35:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA17839 for freebsd-current-outgoing; Wed, 11 Nov 1998 10:35:22 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from janus.syracuse.net (janus.syracuse.net [205.232.47.15]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA17825 for ; Wed, 11 Nov 1998 10:35:15 -0800 (PST) (envelope-from green@unixhelp.org) Received: from localhost (green@localhost) by janus.syracuse.net (8.8.8/8.8.7) with ESMTP id NAA25440; Wed, 11 Nov 1998 13:34:44 -0500 (EST) Date: Wed, 11 Nov 1998 13:34:44 -0500 (EST) From: Brian Feldman X-Sender: green@janus.syracuse.net To: "Richard Seaman, Jr." cc: "current@freebsd.org" Subject: Re: RFSIGSHARE ready? In-Reply-To: <199811111817.MAA03748@ns.tar.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 11 Nov 1998, Richard Seaman, Jr. wrote: > On Wed, 11 Nov 1998 13:04:10 -0500 (EST), Brian Feldman wrote: > > >On Wed, 11 Nov 1998, Richard Seaman, Jr. wrote: > > > >> ==================BEGIN FORWARDED MESSAGE================== > >> >From: "Richard Seaman, Jr." > >> >To: "Brian Feldman" > >> >Cc: "current@freebsd." > >> >Date: Wed, 11 Nov 98 11:51:43 -0600 > >> >Reply-To: "Richard Seaman, Jr." > >> >Subject: Re: RFSIGSHARE ready? > >> > > >> > >> On Wed, 11 Nov 1998 12:23:46 -0500 (EST), Brian Feldman wrote: > >> > >> >In some programs, the program > >> >getsto spinning in pthread_handle_create and CANNOT be killed, for some > >> >reason or another. In other cases, tsleep (invoked from sigsuspend) is > >> >sleeping forever, of course wakeup works but it's still in a while() loop > >> >so it just continues. In this manner, both situations are unkillable, no > >> >matter WHAT signal is sent (I sent all of them to test by the way) > >> > >> I found a similar problem when I first invoked a threaded program > >> using linux threads. The problem went away when I moved > >> THREAD_STACK_START_ADDRESS down to 0xe0000000. > > > >Creating an unkillable process? this is _NOT_ a good thing. > >And should not be able to be accomplished under any circumstances. Tho, I > >can think of now, ttywait (I believe) is one such. > > Actually it wasn't unkillable, it just hung in pthread_handle_create. > FYI, I just tried recompiling with the stack size set to > INITIAL_STACK_SIZE, instead of STACK_SIZE, and it also hangs in > pthread_handle_create. I still think you have compatibility > problems between the linux mmap with MAP_GROWSDOWN and the > FreeBSD mmap. > > The stack in question here is the stack of the new threads, not the > intial process. linuxthreads manages this stack, and I'm not convinced > the FreeBSD kernel does, without additional coaxing. > > Also, FYI I just tried a make buildworld with your patches (before > the newest ones you just sent), and it breaks in > /usr/src/bin/ps/keyword.c in lines 161-163. > > Also, FYI I have had trouble applying the patches you have posted to > list, since it appears that some of the lines are getting wrapped. > I don't think that my mailer is doing this, possibly this is > happening either in your mailer, or in the -current list remailer. > > Yeah, a few lines in ps need to be deleted. That should be it. Brian Feldman begin 644 linux_clone.patch.gz M'XL("%>\238"`VQI;G5X7V-L;VYE+G!A=&-H`.T:V7+;1O(9_(JV79%)\1#` M2Q05N^Q(E*V-KA)EQUN)"PL!`Q$1"6!QR%*\_O?M[AF`('A(R;YLI:PR"7"F MNZ>GI^]QL]F$.+)WXH=XQ^L,^CM3ST_OY;?II+/90\MN!9%WHUU-4C@+[@#Z M8'2'[<&PUP9C;V^W4J_7'R6A_2(@+`'E3=OH-DVV@VC`W5Z M]N'-FPI\JT`%/#^I-"49>QKXHAHG46HG$$:!#=MA`]3O`HAI133#Z.Q\_,\QCGVK-"M-8D^MG?K6[!'V&&2!/?A:@4WL2:*/L;?I M_&9>;&?'=QKX<([<0`_TP;"K#[MM>0`;CT]2*)]>?VCTYJ?7-?#0ZOB]RT?W MPO/M:>H(^)$H1B(.TL@6=U;4FKPNS\:)E:P:?HCM9$H3]<6)U/?BQ%F!<><' MCE@Q_L7R5BV0>#.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