Date: Wed, 11 Nov 1998 13:34:44 -0500 (EST) From: Brian Feldman <green@unixhelp.org> To: "Richard Seaman, Jr." <lists@tar.com> Cc: "current@freebsd.org" <current@FreeBSD.ORG> Subject: Re: RFSIGSHARE ready? Message-ID: <Pine.BSF.4.05.9811111324110.24080-100000@janus.syracuse.net> In-Reply-To: <199811111817.MAA03748@ns.tar.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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." <lists@tar.com> > >> >To: "Brian Feldman" <green@unixhelp.org> > >> >Cc: "current@freebsd." <current@freebsd> > >> >Date: Wed, 11 Nov 98 11:51:43 -0600 > >> >Reply-To: "Richard Seaman, Jr." <lists@tar.com> > >> >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(<QC8,_#=LZ\/>@+`'E3=OH-DVV@VC`W5Z M]N'-FPI\JT`%/#^I-"49>QKXHAHG46HG$$:!#=MA`]3O`HAI13<Q;--WK=+\ M6FD"_H414G*KST\(KBEFZ;3Z@U,;@B1:`S](($[#,(@2X?SF/V]`V'P=FJ'G MU/8EA4@D:>3#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>#.&)O9[O0'QW^OM-7H]W@']>2Y46<QX]'?6]%?C,[QZ!0:> MFE8<UG$8]'V)H[0$?]:_5>K(NR-<SQ=P<')^-C(_GFKZO:'KY?&C,8ZW5XP? MGXQHJKL\-3Y^]_[MV2%.#I8G+XX/Y4(Z\4!*6O\?;*C^M5)G>?@)B"@*H@:X M+N[Y\NCB\OR@`4D0[DN(1<+M?9:`YR)O,#Z]D#"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'Z'SQ"E+YCR8(_XAH@#M&`&Y@X,B4CJL.F4A MR9N`-'9J44*R5\2N*$X$6&]\89EX8NK$1)V3+(3SD'`:%DB3-^7:BDOY^1(Y M8;DE5MHFNLFY.CU):\L(3U+:,M*?T=FU.^#H7#+4;9XIZG*V*5CPZ-)D%X`D MOXM@<JP$R,POPO$0JEIJ9@J-#C;RD@?>XX6T!,@&583/@=,8\VB/03_@MIL9 M'%QC\LAJ@P5OF')0#DW?L[,<0>'3B-3-;*7G-/0<T#Q2"5L.2=G_`I!!:8QJ M>HH)?7L`>G_8,X:ZL3HH96B/M&T&?7+(]%"!28GO\NA@=/;Q'5:BQH\_&EB_ MT([/CD\O3MA$*$/P]^!?PK\#3NU>%JV$L(\.,^0V(S,6)D2<.)6`K]Y?CMX> M2NA.C:0C?`:CQ%F@`4_08)SLFKBH:H46@43O,GH\(;,KV$-<6O'B@NI]1NG( MS2D/$4^%P`0SQ5QHFMT?HL>(H7I'EEK+.K(<T@COF7EQ/C[^9([//UP>C%8> M(-E'(:?@'ARF$OVA,1CJ^IKC8Z1'#D_GQC@]^JI48`OCY&Q^6Z-A50M<WU*\ M;!:<+,>5>8+%'CU/KL(`?6H,$X&2K"))#._/:@MN.I1979;':0J?!]=CJQSW M>^+U/?'ZGGA]3[R^)U[?$Z__O\3K;H;_S!N:RAI]J9"-O@[H7;K\Z':6@U(1 M[9$K[4ZO,8`Z/91#ACQX[LMD*6NNDN%E8;7*_;4X\>RX5FBQM!=Z+&FXV%PI MWQ&H^<RG-;6%`838SN\<5#M%NR:.JD7*+8[^4M]HLD'<X-_\Y@*J577[5X,5 8F,J<H4F-X(V0^1JUVG[EORDAXG[#+0`` ` end To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.05.9811111324110.24080-100000>