Skip to content
Tcl Source Code Artifact [1f59e51239]
Login

Artifact [1f59e51239]

Artifact 1f59e512396a873c9300d2a71f35146daf159720e7b50f7f5122e8c00cd56e53:

Ticket change [1f59e51239] - New ticket [e99187025f9687eb|e99187025f] <i>socket-2.12 fails on OpenBSD: the server child runs out of memory</i>. by serhiy.storchaka on 2026-10-14 16:25:49.
D 2026-10-14T16:25:49.018
J cmimetype text/x-fossil-wiki
J comment socket_inet-2.12\sand\ssocket_inet6-2.12\sfail\son\sOpenBSD\s7.9:\sthe\schild\sprocess\s(the\sserver)\sdies\swith\s"unable\sto\salloc\s4168\sbytes"\sand\sleaves\sa\score\sfile\sof\s1.6\sGB,\swhich\scan\sfill\s/tmp.\n\nThe\sserver\swrites\slines\sof\s720000\sbytes\sto\sa\snon-blocking\ssocket\sin\sa\sloop,\swith\s<code>after\s0</code>,\suntil\s<nowiki>[chan\sputs]</nowiki>\sfails\safter\sthe\sclient\sclosed\sthe\sconnection.\sWith\sunread\sdata\sin\sthe\sclient's\sreceive\sbuffer,\sOpenBSD\sreports\sthe\serror\sto\sthe\swriter\sonly\safter\sabout\s5\sseconds\s(FreeBSD\safter\s0.05\ss,\sLinux\simmediately).\sMeanwhile\sall\sthe\sdata\sis\squeued\sin\smemory,\suntil\sthe\sprocess\sexceeds\sits\sdata\ssize\slimit.\n\nThis\sis\sa\sproblem\sof\sthe\stest,\snot\sof\sthe\ssocket\schannel:\sthe\serror\sis\sreported\scorrectly\swhen\sit\scomes.\n\nProposed\sfix\sin\sbranch\s[/timeline?r=test-socket-2.12-openbsd|test-socket-2.12-openbsd]:\sthe\sserver\sdoes\snot\squeue\smore\sdata\swhile\sthe\sprevious\sline\sis\snot\ssent\syet.
J foundin 9.1.0
J login serhiy.storchaka
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter serhiy.storchaka
J subsystem 27.\sChannel\sTypes
J title socket-2.12\sfails\son\sOpenBSD:\sthe\sserver\schild\sruns\sout\sof\smemory
J type Bug
K e99187025f9687eb9c2a6f2066f2e97dcd040cd0
U serhiy.storchaka
Z b9088965845ed6180f99f0dc9149896d