|
2026-10-18
| ||
| 20:24 | • Closed ticket [e99187025f]: socket-2.12 fails on OpenBSD: the server child runs ... artifact: e989ba0703 user: jan.nijtmans | |
| 20:23 | Fix [e99187025f], [dbf9884c56] and [59e7e7fdfb]: socket-related test portability improvements check-in: aba76913eb user: jan.nijtmans tags: core-9-0-branch | |
| 20:23 | Fix [e99187025f], [dbf9884c56] and [59e7e7fdfb]: socket-related test portability improvements check-in: 03198ed31c user: jan.nijtmans tags: trunk, main | |
|
2026-10-14
| ||
| 16:25 | • New ticket [e99187025f] socket-2.12 fails on OpenBSD: the server child runs out ... artifact: 1f59e51239 user: serhiy.storchaka | |
| 16:20 | Fix [e99187025f]: socket-2.12 failed on OpenBSD: the server queued a new 720000-byte line in memory ... closed check-in: 813171276c user: serhiy.storchaka tags: test-socket-2.12-openbsd | |
socket-2.12 fails on OpenBSD: the server child runs out of memory
Closed / Fixede99187025f9687eb9c2a6f2066f2e97dcd040cd0Created 49 days agoUpdated 45 days ago
Descriptionwiki2026-10-14 16:25:49
socket_inet-2.12 and socket_inet6-2.12 fail on OpenBSD 7.9: the child process (the server) dies with "unable to alloc 4168 bytes" and leaves a core file of 1.6 GB, which can fill /tmp.
The server writes lines of 720000 bytes to a non-blocking socket in a loop, with after 0, until [chan puts] fails after the client closed the connection. With unread data in the client's receive buffer, OpenBSD reports the error to the writer only after about 5 seconds (FreeBSD after 0.05 s, Linux immediately). Meanwhile all the data is queued in memory, until the process exceeds its data size limit.
This is a problem of the test, not of the socket channel: the error is reported correctly when it comes.
Proposed fix in branch test-socket-2.12-openbsd: the server does not queue more data while the previous line is not sent yet.
Referenced by3
aba76913ebFix [e99187025f], [dbf9884c56] and [59e7e7fdfb]: socket-related test portability improvements check-in2026-10-18 20:23:4603198ed31cFix [e99187025f], [dbf9884c56] and [59e7e7fdfb]: socket-related test portability improvements check-in2026-10-18 20:23:23813171276cFix [e99187025f]: socket-2.12 failed on OpenBSD: the server queued a new 720000-byte line in memory on every iteration until it got the write error, which OpenBSD reports only seconds after the client closed the connection, so the child process ran out of memory. Do not queue more data while the previous line is not sent. check-in2026-10-14 16:20:10
jan.nijtmanswiki2026-10-18 20:24:50
Fixed in [trunk], backported to core-9-0-branch
Many thanks!
Log in (anonymous is fine) to add a comment.