Skip to content
Tcl Source Code History Of Ticket e99187025f
Login

History Of Ticket e99187025f

Artifacts Associated With Ticket e99187025f

  1. Ticket change [1f59e51239] (rid 258046) by serhiy.storchaka on 2026-10-14 16:25:49:

    1. cmimetype initialized to: "text/x-fossil-wiki"
    2. comment initialized to:
      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 <code>after 0</code>, until <nowiki>[chan puts]</nowiki> 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 [/timeline?r=test-socket-2.12-openbsd|test-socket-2.12-openbsd]: the server does not queue more data while the previous line is not sent yet.
      
    3. foundin initialized to: "9.1.0"
    4. login: "serhiy.storchaka"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. severity initialized to: "Minor"
    8. status initialized to: "Open"
    9. submitter initialized to: "serhiy.storchaka"
    10. subsystem initialized to: "27. Channel Types"
    11. title initialized to:
      socket-2.12 fails on OpenBSD: the server child runs out of memory
      
    12. type initialized to: "Bug"
  2. Ticket change [e989ba0703] (rid 259076) by jan.nijtmans on 2026-10-18 20:24:50:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2461332.3505816087"
    3. closer changed to: "jan.nijtmans"
    4. comment changed to:
      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 <code>after 0</code>, until <nowiki>[chan puts]</nowiki> 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 [/timeline?r=test-socket-2.12-openbsd|test-socket-2.12-openbsd]: the server does not queue more data while the previous line is not sent yet.
      
    5. icomment:
      Fixed in [03198ed31cf64020|trunk], backported to core-9-0-branch
      
      Many thanks!
      
    6. login: "jan.nijtmans"
    7. mimetype: "text/x-fossil-wiki"
    8. resolution changed to: "Fixed"
    9. status changed to: "Closed"