Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4086673

poll() called from native code hangs in green threads implementation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.1.4
    • Fix Version/s: 1.1.6_005
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      005
    • CPU:
      sparc
    • OS:
      solaris_2.5.1

      Backports

        Description



        Name: joT67522 Date: 10/16/97


        The poll() system call hangs, even when a timeout
        greater than 0 is specified when using the green threads
        JDK implementation.

        Below is a uuencoded, compressed tar file which
        contains a reproducible test case. Uudecode,
        uncompress, untar, then set up your environment
        as described in the README file and run make.

        begin 664 pollbug.tar.Z
        M'YV0<-ZP82.FSID7 !(J7,BPH<.'$"-*G$@1 P8-&#<N%'#XD48,V;<\'CQ
        MA@T:)#^JA&'Q9 P;-V1H?.DQAHP:-&P Z%BQI\^?0(/6F4,GC!R/;M[D*3,G
        MZ,,W9-(XA;@R8\H8,&1,W<JUJ]>O8 ,.+'A0+$&#+L: 7;L6!E88-DZF##E2
        MI4F4*R]BW=B2QLN8<&7,J$EC1HV.+-DJ7@QQ:-&C%Y,N;?H5JM2V*JVJQ*J5
        ML>?/H#V/2.-F#)LZ9,J X%''31JB9%R@\:%@=.G3J5<3E?,&#ITYLFG;-HU:
        M-0^SP6N3)IZ;!^PT;Y(K($T'A%FR7]J$65/&"!$4=MZD(:,"!!HX8E(HV*,
        M! CJ(,R0F;-%1I<=[=^[J2Z':1TVU?5@71IPE(&"?'.D@)][:9@! @K]S?%?
        M=3R $,*(+#GGGMFP"$'=6:@ %L9<LC! @@BM!:&&&RH1L<;((S17QATJ!;&
        M@ 5RX88("N;G7G]TU"&'&R"T$,."(/2A0'Y "DDD@EO <)\"2DZWGW4"G77&
        M%_V-448:=I0QQ1MME$$'&J2= 9YXY)F'WHGPR0?GE72D4>8;=="171H#O::>
        MAB#L5L<8U9DEGW7R(0E?A!,J>F4:^.4'AWPN'"I@HI)26D:8^\T!@H!0/,$$
        M$TDX@>2DL?7'Z6^?6H@DHP"V:A8*)J!Z8@PGUGEGGGOVF:"B#D+H7ZP57IBA
        MC_%Y"**(=*16XHDBD,B;'""\0:19.O*(Y(]F.EGDD?E5R6V00X( *QWX51G:
        MNNRVZ^Z[\,8K[[SR7F?0"W*T9N\9](;F5DD<S2522G>EI%(-,^@$EU]Q<32#
        M3(3%I7"_%#/DF%%(*<446):Q515+FV55\<@D S5""""\( 9I+ZPQ!QI+#L%$
        M$%-, 4405"#1@P@D["$SS3;CC$0++O0APG0.;E&D'BCV_'/--^=L- A=@+ #
        M"&>6X0:R3P>=\\XD=!TU$CJX<'09;,Q1!M<S0RWTSF8K8$8:"I2!1T!R5">V
        MT$LR0<07I HA11!29/'%V&#OX3?@20A.N.%C$VTTTB HW0+3/"O^=^"#%WZX
        MT%-7?7766V\(PN*</_[YUSRCWGCGD M=]MEIKVVZZXY[CK@(<<]=]]UOY'WZ
        MYJ^K/O:2)"@1A!5!?('$$TT4H3++:H1AQXW[@D!"# J4[/WW"NW[@G;<S=TB
        M^!Z_%1=>']%%L%QYN65#PGV]!--A$.M%PTV#)88^O!>## PDL['*1,5CF0'9
        M1SCSOP9Z;PA#*)7,IM"J%B2!!"A0'O.<![TBI. %R\&-:BR(00TV[WG1^V (
        MB_.".0C$**]1@ F1T*H2+N^$'?S@RMSP@NI=#V8F'$(-,WA##J9P>CST81C&
        M(,,;ND= -MP@"CV(Q!Y:+PQ+"L- =("EL:#%-&&8@Z?8D 8Q[,L%+@0!&<V8
        M)>R< 8TPJA%1EG3&-W#QC&/HHI:^0)0ZB $X,$O &/+8 D*VH3HM6 (4DB#$
        M%IQ!>RB H 29, 4,X9&.;30('X/T1Q?848_8Z6,G\[BO3?H1D H0)"$-B4A%
        M,K)(C\2@))TP04MF<DNB! X3%5#*7*;ECK=,"QO".(=4MD .;0"E)GW)Q 1$
        M,0A(P% +<EDD&/62D[I4YADPZ45<8E,VP.RF,(EI3&1JTY2=#.0SHUG-<_H2
        M#=KDII;&*<9PSE.)J7SF$*3YR#/B4P%K/*,+[4D63[KSFV](Y2"+=(2E8<UN
        MB(110(.9QCH>])0&;4':WC &[B"2#6Z8 QN6--%N?N&- U5C&06:T 2 M$AC
        M7"E%)2I3DZ(TH0J0(QUTH% TM $J(%@!'LREKUNFT@7X*FHW0< ]!9BF#&%P
        M T\3<,QDJL"3Y;0J/8M)57.JP ]9!<%571C6:V)4!=US(+O$EQ;RE0&-1:F1
        M6IWR+[C KWT#L\M=-W.#A;7D831 F P"VS^WT( C()MKNP*8L<EP[("8^8AF
        M%B@RQ5IV7@9(B ;8D9 !($$6;& &+!12@!E(@1:T4,@W$A( >I"6@)19R Z
        MIA $H"&J9!A#'<Q@!H5,8 JM>0(%:^ "XL;@01)R PWJD(*%E. %:'A!'.I
        M&A[&X 5OF,,+R) '-X1!.W"PXO5Z2(8UD.4%=&@#'!22@3J(* +0J(4&0"$&
        M 1 #C1PPQ#6@ 4T8 "^0FC"*#9@7_SJ5R$G")(;R""',.@ O:UA<!AFL%WM
        MO, .:2C#'2H<!A>000QM YL 6#:6G0 8( $\ P WF*F@8!2C0P*@$!HG
        M1 ;8C8IXP_ ")1!A"49R00R$O.,J*I&0CW0Q'0J*3X;8V+XU5L@"E,SD*RYD
        MRB]&BQ(70@")//G)1&3>$'J0XS04V<= 'K*:B[S#':N%M5&&<T(\<-L%ZY:W
        M#X[N=*O[@NMF=[O=_6X8U@L (8# $[N(P#,$@092C#8 @(!""CJA#6;L0 CP
        MU4(M8+&) N=W" K);$)$;=]*7SK3F^[T?3\] R?<@K-;D8!"!*"0 2R$"(#X
        MQ (4S6A'VS?2DYYQ" 3!C%K %Q(ER,6)5ZU?TSY!%J;&-#0TS6E/'[@ALDX(
        MK3N[D%X (AFYX+4;2@&% L^@%(Q0" &VS-IW$" >BX!O++)!7VL/P;2T8,"P
        MBWWL9"_;P*#&]JQ]RQ4#J*&\9'%R>]\;W_G6E]GW/FT^W UO>=/[X0!W2+8!
        ML&T 3( K T@OH5FKB1JD8 #PE6^](8YO<BQ\#BEWN+T=<H X>YPK6%ZREJU<
        MXU[4(P5CB/G* 5YB$.S;V-! MK)GWA!5V/P"7+G P<U[+Y&_@,I?'*:,)5+:
        MT^)"M:QU;4(*,&*&S!:R";$M;N_<VX3\-KC#+:Z0D=N:Y397(<_5,W7=8%WL
        M:I>[W@5OD:=^7I&SU[TP;_C0/\U?_P)8P 2&.((5+.$'4[[!%":#A3&L80Y[
        M&,0BUEA32GSB%*_8 5CW)D;1 )$O*^0)505!ZM&)RC*?^<=!7K,2C7Q%>+8
        M1K-_I^RSO,V%N%[.+$[]5A728N(O/R%=CLCQ 1!F:)+9,K=/LY")O/LV*Y'U
        MR)\^G=>^6S/D6;I[[_N? 2]H0AL:T;QN]*.!36E+2YO:JL[XJ$-=XVBCNMHL
        MYVJP-A40,'#<IA"XIFOQYVN0)FF=(&S$AG1*]V^L)@7/YG_3EFI,QQ ;UW&V
        MIA#>!F[B1F[FAF[JQF[V17'Q!@WSMGC-=EKZ%H']MG22)W#:1G!;87 (9Q *
        MAWA"AW$52 L3]VXKV() >&T<:( WMQ4AIU[&YW- ]X/V5G1'-X,4B(0+<00V
        M9P%11WA5IUY7YWPQ%EOV]0LED )K((4L)P6U( )5F'3^MH$+X73(!W5;D0%>
        M>!!6%WS?!'X3T76TH M@9U]B!P!D)WH-<7:7D79UEEOEYUO Y0;"!0+$95QT
        MIUS,Y5S0A7Y\YF=_%VB"MWMYB%Y.F! OIX8 UWC_!0T!-F ;F& 1UF"6%XL3
        MQF$7EF$;IGD=]F$AY@(C1GHHIF*UI7QO,&,VIP8+54A%<DA%XDJ-]$@69'N[
        MAV:YQWU7!$*W41Q%D@32>(W4J&;6.%XKE!HM]$(?XBG*QT0,T7$=]V0(D([#
        M*(;J9G.H1WRT)QL,48\ZIWKIQ! %X&4V5P6S-$$]$(W8-XVX!X[7M7OC.$+<
        M>)#>F)#;MY#7V)#E.$SGV!#3]V3C9V?E=WY[QG=]YG> %GB#EA#OEVB+)G^_
        MYH 8B'\;6',)(9.E9G__EW^L)H!<T8&U=FNYMFLKR8#T!X'\!H<T2'06"&TV
        MF8$ J'])>(,'F! A&&Z+-F[E=E_GEF[0AX(!H((6YX(1EV]O.(%RJ! \Z78%
        MEX<]R' J=X015PLCX)4L>'%EF1!GN813T80C9U^)4 @HL ^H&(3(<(J*YY8T
        M9W,?MQ7O*(^L989H&)@OV(9C&8<UR!!!L(5<@8<[J(=@R(>KIY' 4 4IL >0
        M^98D,)E'^6D.08=0EA!V.!43,(I[Z'S%R'7XQ@N#V%JOA8AF1UN,2'Z\!8EP
        M1XER=UPB4G>9B'>;&)+J]XDF&5ZBN)FD.'*$V9;VIHJ/YXJ5"8L+)HL0UIVU
        MJ(NWV'FZ^'F]^(ML6'K"F!#Z&$K?]&;&B'Q6$'N>.4H*T(WC]8T3R6;4TWLP
        MA4WM5)_9E'II97/3UWS[^'S))X9:%UO1UWHV5WTZ@Y\\II^Z=XW>UWL&:G,=
        MZ8AXMISI-Y+K!XHG66B'II*]-G\NN90P69FD1FH!\)(:&("OQA4%")4 \($)
        MD8! F:(M&6P:B9I7&'$7R*(SZI0+<9<Z"@!3.8)7*0=9>8(\EX)$^)5NB6\Q
        M6)1D69E)JH2).14Z2'7\8GS5*7-K")=R:81U"0!W^:5.H9=/^'-!5YA3R(9&
        M)X-&.:0.H87(QX5;(772.9L).H;&%PR5D *#4)HE9@)"NJ:L^62OZ12:*:;3
        M&8;[>(_P:9NGY0NY68B'Z%B]B78 H'8>&9QN%XF36(ES=YR8>'<)D7><*)*>
        M6)+M-WB!6HH 4*9@B9VL"'FO>'D.]IT2EGF;AXN>QXNAYUC :'H*T9[+A% 0
        MBGQPD(RLU(R+](S;2*$])I$7*H[9F!L&J6,(J7W=RF,6Z4(8^1K#=ZG,5*#L
        M2(\"FA;Y&*^9"@ /^F3.RH^ -*_V^$[^")#()Y 11$N45) /*:X12:[A:*[?
        MZI#::J$+BXW,4087"4-D&'X<VHAL!Y(A.JOL!UXH>:(+J**3)J--J9HSJ1 T
        M&:-&>K+-II.QIH1+RJ,C^Z,/&*1XNJ5(6:2GQI0XB85F*;/=]FU4*0A668):
        M::]<F:9TN89BF;.4B:1!BZ-N&A1AFG!DZH-T>J8GP+1@J7%>"G*&5V.&BJB*
        MRH:,"K6I";0)P:>M"0!^.A636GB=V:_OJ9&.F89;BY22J;9ZVA"7V:>9*9MU
        MRZY]J)'#()J3<+:UD *-RJ4*\:@*$:E!,;=?&%[Q6IM_B&_ T*F[":JRY9NC
        MJK&/>*K#J:K&F5QVIXEZUXDD^;&#9JN4.K:YJK76"7&\VHJ1YY3<67G"BGFV
        MR'FYJ!WFF:P;LZSKR6)KI'PN%)]O:P/)V%"7\U!X$%$J)0;,"WRTN:[NB5$)
        MM8Y*Z([$&(\)JKGWVJR9RZ^&Z[W_"A0;J1 =NK$@ZKHC^IPA"W]!2;+UU[,M
        MZI0TN;(F^[/W!K-3H:0^J8#Y:[-$*8%16X$\>W]'BK)/R7$]"8)$ZZ1(*Z77
        M4V->>Z4P^+A2:Y=AFX-JF;5L::9\V[55.I=?:X,4C)9,2+OV%9JCR;BGZ;=K
        MZK9/%K=.$9NWBKFT:7R)FP*+N[<5V+@@+,%9B)EW2+A O+Z=I+DU-@P_-PJ,
        MJP))S+8 X I/UX4__ ++ZWS-*Q&DI@%0.*>WZY0W.@#\\ ,1H ^B@ <A /)
        MD+>E"7T, 'TL @;, [A< XG\ RK0,.D:<37A@ X 'WL@ RD@ <]0 9(8 BB
        M4+:):L@!UP D 'TT$ E6X )E ,C/8 I#7,1IC+(1@ 5C1P*: J=P B@+ M4
        MG )6;,D)80%\ 'UPP /+, 6<4 WN, -,<%G"/,S$7,S&?,S(G,QK463G:HZO
        MH9$;.F>D^Z&M*ZNO2Z+N)[()W( EV[("K++@S%H!/(4$[!0&C( _6;/<?+-.
        MEL5$JI3\&\%:?,Y2><%528)8:8);.:5=N<)JZK19RL!K&W 3W'%5"Q17RX,F
        MG'BE')EQZ<]-&\)L.L)Y*<,!T)=_&7/B(P5%$ 1$$#W*3!%UM3X"4Q<?43#Q
        M(Q)843\PD16#%0,U,0-^@1@A_16,%1F\Z16BZQ4?<Q655=- W1-4@":>$A5=
        M\B)RD <Q8BU%01J><B,Z!0)W@"9C $^I\5,A10<-)D<@<"-DH1]8@P:JH0!C
        MDJZ><@;]H35?<"8S,A_OH5XM4B;[02/0021OX"!9HT>!D@=$40;)- 9:Q 8N
        MH !#K:Y1;=1E0"C!H]1CP-1AX-0\A2P<[='18SKNT0+N<2;J:CZVLR%NQ=FF
        M@]E=#0*?S2>J80;!0U1\ER9A[2),\1O(@D>A[1[>52=ALM2Y\2(/112M#0)#
        MH1IWK4>Q'4Q*5"3N<2/%K1VD82YX4B<NAC4PPF!@XB)BO=MT@"SYX@;9<]G'
        M#0(N T]S(",$4AVZG=V]K5-+<@5B3239G2O5'=5N]=0Q$MC0+7MT?=N-G1M3
        MG095[=MJXRDNU%%F @>/+0<HT&KJH=N]H36C3>!I0"W!'> >]=0+9B[=,B2>
        M8BW C=?5#=JI$=X?XAO!XRDODE/5K017A-MOY1Y#[=J\33JM321L\ :]X2D$
        M+D:LG=<>SA3B+>+4@EL* -5V4@;-#0+7<QHN B,W4MO33=IF@@9 M=_]_=LV
        MGB4H( ,8,N-OL :LC=H_?CU\LB(M8B5PD"?QP1O)I..F#0(?WN-([0(L_MY#
        M7N1'7@>JD1IF$ 830N(P<EQMP"=DI#:-O6 *4!#5 =A$HC;582V]W=AMH!T5
        M3D8N-MB$7=V-72*)72B\@=;?!0)B4 :WA6&I;=@21>-P$!_!LRDD<B+*LA^L
        M'57Z(2-^K34U0@9.A2?[02)2G09GTMMS4"!CT" 91@98,^=F'D:CG1K#I-2?
        M3@=W4 8,#E7][09UT :?+@>#C01O\.QA8B)2O=[^S=IH#>U$PM90-1_NK1J
        M/1#US>2W729G E1M/2;PCB9NH";J46=G4-1"DN/5K>5P0.E.\ 8U$M8T@NH_
        M7NR[4AUUON%,1=J _AJ);2UDX-[JJD5W$ 9\;1Y1M>_50B0F?MH/SML _QXU
        MLM5U_2 'WR)AM.A$4M86"P(R4)PI .<@8 2I+>0+#P(*T/ @X ,/_^>^,O$+
        MENYG7@;3I35CH-2X9>$%0B,KPB>\KM3!G=?Z_A[%E!H%LF"T_O&]G1I?W2)A
        MP@;5PN&J4=Q6T 3^709&[R$<Q10N1"V_#NT5KP"3V.USD/)-3^!TT-]BCS8V
        MSP1FXN2!HM5P;_#D7=U73P9OP!35,DA"\O$Y9>P,KT5V[BE [^<1+^@4W]6>
        M\NP#<2*&+GL$O^N]GM=S\%VJ\?=D?]<*T!]/7Q0K0T9TD >43@4P ON\00:#
        M0MVO<2)S(P=$<2**WMLF9$1% ):@V&\X09R7?D?(N9);N%F0"(YI>0@8*$6
        MSO)JT]457OQYG3.33013\ 5&,#,-M?P/;BW/;^0P)/WUK0#CSN HD-JM4?RMCB%-#^-NU=4#8?,MSKH%"BCW'XA=JTM\IRU+;+LTH0":6YFK#OL/W.F[R/;I
        MSD!UR7&O+3_D 3PQ /$$&R!V:L-&#)\[L-1:P\ES?TA.^74[I:;YAMZ@(P,B
        M0CTH@"3@(#9@'8AQ@6+PA3\D,/[*W_D+ NG/#3 _]M?UKD?T8Q'3S]W9"$(7
        M!L[ 8V-OK>&\O;8'T?\"&X:P@;N.W85 *<C;VIMU^!"N[MZU-BLAZYY?&2!V
        MC<T$ZCH3R"= !;D<NPNK[D]+R%&*-V20!_BPY],J: VTO8*2,@K)\T/?@09
        M$ -B0%UP"0WC)-R5&% #X )-"VI;X:8-D)S6%79:5^AI(:,S0,)-"!'*'(O@
        M;S&B06F38\$A2(,6*7QT+8_ !R)0!(Q $*@"3( *? $JD 2BQQ.H E2@58 +
        M]^ )R4@>(0JIT,BQ"=+V!%' %-!J:6(+5 VC< ;L (8 % R"3E"^5L$*72$L
        ME(6TT!;BPFWQ'H(%,[0#+J!%W+M>!_2,!33<$%I-J;&'!* KB)R9$Q!)(->=
        M 1+A @B<\"L#\9 .H(!O&"6Z0(^P;$EBOO4]>(("G$"UNW8X#YG0B"* ![R$
        M;TAY;J#Z/<-4,@7X6HUH YXD3]1#,$@'0 H*$ &DX<B-!X2G':J#E],/-6(>
        M4HNVQMI$0%#I:G*@&?;#?VC9^@! 1!;B8D-4Q+Z&$6=<&" #3*",-)BD]A'W
        MA;9 %G&"V D(M^(=4 !-9!#!XE 4BXD($'?B1<R(=& C4@>/* (.19,8$F<0
        MZZ&(ER@?GF) 1!O=[QRZ!ZOHU["B5MP/7+$"7D QJ%..8E6TB&VQN;W%CN@&
        M/J)[P((OPP."0&@WVEP,"4R#N8Y:^#Q5E]3&X@I()0D@ 2@\=U@=5L!8%'J!
        MCNC!P 1A%RW;240!\ $QGD !<21*8&+\>:["-)Z\%; ")F(":! /HDM\B3!!
        M[YY<FC@0%6\R-C<,40Y=XUK$BQA1+QY KOCL+)R7F&X@D$S81C&(V>@;XW,Q
        M1U$RJD9=)R",!'Y( #81+:J&=?@;>:);'(Y]4322B!Z!'9&%>U 2IL,F;HAP
        ML23<PPLH#U+@PH64T=;6X-^A4 $O0%)\B.M1\)0@*JP3JO!*,,7OT"/RPWL$
        M 5 @2\BW^H@$XP.Q.XFDX0':O*\X'WT #.B&^N$!BL4K$N:0()S#C_H13- (
        MU> ?@2& 1(G&<3:*">6HV>X=:+P2<@)%ML/FUBL"78]0%YPP1^K('<DC>Z2/
        1_)% ,D@*R2%))(NDD3R2Z ,=
         
        end
        ======================================================================

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                never Tom Rodriguez
                Reporter:
                johsunw Joon Oh (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: