From 3500ccac9a13c20595554157529eb5c7ed4da9c0 Mon Sep 17 00:00:00 2001 From: Alex Shelkovnykov Date: Tue, 6 Feb 2024 22:11:42 +0900 Subject: [PATCH] pill: add new pill which triggers OOM error --- resources/pills/oom.pill | Bin 0 -> 13617 bytes resources/pills/src/oom/oom.hoon | 81 +++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) create mode 100644 resources/pills/oom.pill create mode 100644 resources/pills/src/oom/oom.hoon diff --git a/resources/pills/oom.pill b/resources/pills/oom.pill new file mode 100644 index 0000000000000000000000000000000000000000..e43ce0d681837cfc72873fef04a3e098d4c410b3 GIT binary patch literal 13617 zcmaJ|30zZG_Erf=lq_$wVjuyMLPx7$BLWGV7~>xqwJq&XMR7?gS}Kb{0dXlx0tsW$ zqE$<+c1T^ySeMkgV6j4oD4^0{tp)*2z$z*r?zo`;bMJd0!FHyojBi0VE|FgC2ChwTWW=z7{M@BEn!{~6=)Q;km+^GZjLRY@VYQQ;*I^)$`M&Mcb7HO4{X>TTP`Xv zjcxwedM$tbe%;PRazdBDdQlz`dS7+XpXr|H)|0wW*~PQEeHE?S^(|GzT?m*|iddIj|=( zdqP=+v{4x(q1_W}Okg{$6om);Y zjIFRQ(e?$E=%&!$RfWcAS>NS*-5}~sG2YP+h*NA?1TER|s74_R6dEcxjF;qI@#?F+ zR@5x%MIj@+P~U&LAjs}|nCZ+$F&8;l(H%oGEs zrSa8eQf5frgVu&gIfi9VP&_MIQiZ(mdTaeo-3o4STq>uS^r$8yy0zt8lhoNE0A zpXjC3XZdq2`QBA4n9W+1_u^alZwPDTKIKC@lj&s%d*O1E=z@OrWOUaXj z_#FeU90I-{=|^yKn~Ek%FJ3^q)IBtbRQwBE-Rza64|N;o5dLY>lbj~W=Ng4_M4D;i z(iq`BWXD{U^urLr+q&65Q}=BWL@yDZ2{)EJ?l{s8-v%lfSxYOAH;h1ZoISutT+0nI8I`>N(axc#~!%?$k0@~*gTUz0J zqplJ4IDSX@Ks4umU(Pvmhj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p6wHZeY*}zV0d3JW5WjcgtcnmyFn3r7Ovs@zJv_SsxnIoiWu}owGY)tInnR#> zn_ex%gi{T@9OOoi4r&_yN#567_2pMw?V&SJ0D#s-yoADAV-^6*s(J^es^PFFf2R(M zRatv!YE*@j*NGYNNS3{NkY+QF*ybW_`idmWd%Yq@ibITkq(w3(nc@VEO!|^F7 zErGw1=tf<$k^zh(fgGSMSAIyoUz0l(E85WOTKf=&AYXg4_B^>W(yfeTVdN3gKq2qv zQ)q1$H)?I!fLlw%H4U6EVfGp#9}%bj;Y}c_M{m7Cxf6V^X9o2SaqKy~1iIg~AA$qZ zeGjF9oB^7pHC0@9mjfLG>|uj!D6K6yLLsh8b;=;wE7Y_@R1Grvg2@Z8b;D&((L@uP zSVV4%#d{$B^)IP-V}EJqyhxHb9bhFxPV>R!<+!*;oek0?AQUbf#Z==&kCu8W(f>@&x^Ek*~;V}5+uzh;kJN*p_yR-9a-sxG-eCgm5kdaZx4yv ziozIvF<>9OQqEsQ1_Y1+nM#7%MVm<6y`efmb=LA8pdiQnokT@1G&?A)dr|+Hcvlwy zFxiXQZil2Bec#A?fF=FqSf#}yv5bhaW6v?Az;mMHE)hOY|jSv#<~g;8k(p@f)B+{bMD}Aez+5IWK~wmbcO-;FLWnYhmm=sJu9S$ z#e6Ps8g#utHjXv{0fQ)q56^(mjk-k4t+l3Hr-1=dMzEKsY-kv-9Dq_6pg+3fm}_2P zH|_07_Pqgwe56!Bkv!f80#?z@_8Mv#MTqx@T>!vH zHc+$ai`qz5i#e1%epiW8d{Mt2WleEh-v|$6M)79I|L_YZ=(_cnD~+YA`GDaAjWBNm z4NLTUA@~XvM3e-pv=P{xu=s-0#Io#PMQQF z7pT|K^V=zJlVShL N2AZoDD|E9x{~vl2?=%1a literal 0 HcmV?d00001 diff --git a/resources/pills/src/oom/oom.hoon b/resources/pills/src/oom/oom.hoon new file mode 100644 index 0000000..de9b4f4 --- /dev/null +++ b/resources/pills/src/oom/oom.hoon @@ -0,0 +1,81 @@ +:: A working pill designed to force bail:meme OOM errors. Requires +:: playpen.hoon, originally used by the toddler pill. +:: +/+ playpen +!. +=/ core + => playpen + != + => + |% + +$ card (cask) + ++ cask |$ [a] (pair mark a) + +$ goof [mote=term =tang] + +$ mark @tas + +$ ovum [=wire =card] + +$ vere [[non=@ta rev=path] kel=wynn] + +$ wire path + +$ wasp + :: %crud: reroute $ovum with $goof + :: %wack: iterate entropy + :: %wyrd: check/record runtime kelvin stack + :: + $% [%crud =goof =ovum] + [%wack p=@uvJ] + [%wyrd p=vere] + == + +$ weft [lal=@tas num=@ud] + +$ wynn (list weft) + -- => + :: + =| counter=@u + |% + ++ load !! + ++ peek _~ + ++ wish !! + ++ poke + |= [now=@da ovo=ovum] + ^- ^ + :: + ?. ?=(?(%crud %wack %wyrd) p.card.ovo) + ?: (gte counter 20) + ~> %slog.[0 %leaf .=(~ =|(i=@ |-(?:(=(i ^~((bex 32))) ~ [i $(i +(i))])))) 0] + [~ ..poke] + ~> %slog.[0 leaf+(scow %ud counter)] + =. counter +(counter) + [~ ..poke] + :: + =/ buz + ~> %mean.'pith: bad wasp' + ;;(wasp card.ovo) + ?+ -.buz + ~> %slog.[0 leaf+"%wack / %wyrd"] + [~ ..poke] + :: + %crud + =/ tang tang.goof.buz + |- + ?~ tang + [~ ..poke] + ~> %slog.[0 -.tang] + $(tang +.tang) + == + -- + :: + |= [now=@da ovo=ovum] + ^- * + .(+> +:(poke now ovo)) +:: +|% +++ aeon + ^- * + => *[arvo=* epic=*] + != + |- ^- * + ?@ epic arvo + %= $ + epic +.epic + arvo .*([arvo -.epic] [%9 2 %10 [6 %0 3] %0 2]) + == +-- +[%pill %toddler [aeon .*(playpen core) ~] ~ ~]