Skip to content
Tcl Source Code History Of Ticket 1696642fff
Login

History Of Ticket 1696642fff

Artifacts Associated With Ticket 1696642fff

  1. Ticket change [81a50fbae4] (rid 117077) by msofer on 2007-04-08 23:32:21:

    1. assignee initialized to: "andreas_kupries"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      With today's head on linux, running a --disable-shared --enable-symbols=all test under gdb (make gdb-test), there is a sigpipe in http.test. Partial backtrace attached. (Bug found by dgp)
      
      
      
    4. foundin initialized to: "obsolete: 8.5a6"
    5. is_private initialized to: "0"
    6. priority initialized to: "7 High"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "msofer"
    10. subsystem initialized to: "25. Channel System"
    11. title initialized to: "sigpipe in http.test"
    12. type initialized to: "Bug"
  2. Add attachment "backtrace.txt" [dc194710df] (rid 108070) by msofer on 2007-04-09 06:32:21.

  3. Ticket change [91f5b79449] (rid 120706) by msofer on 2007-04-09 06:32:22:

    1. icomment:
      
      
      File Added - 224193: backtrace.txt
      
      
      
    2. login: "msofer"
    3. mimetype: "text/plain"
    4. username: "msofer"
  4. Ticket change [0dd1159b37] (rid 114432) by dgp on 2007-04-09 21:05:15:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      same issue is in the 8.5a5 release.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  5. Ticket change [e5ce16f6da] (rid 104189) by dgp on 2007-04-09 21:18:50:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      ditto 8.5a4...
      
      ditto 8.5a2...
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  6. Ticket change [e32c7b3985] (rid 87747) by dgp on 2007-04-09 21:36:18:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      
      and older releases than that
      don't have a gdb-test target,
      so further testing is non-trivial.
      
      Apparently there's some long-term
      issue lurking here.
      
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  7. Ticket change [cb58fd127d] (rid 95497) by andreas_kupries on 2007-04-10 03:33:20:

    1. icomment:
      Logged In: YES 
      user_id=75003
      Originator: NO
      
      Given that there is a backtrace does this mean that the core crashed ?
      
      I thought that a SIGPIPE simply causes a Tcl error to be thrown, something which can be caught ? Although, I have seen that only for actual pipes i.e. 'tclsh ... | ...' and the sigpipe happens when the consumer exists before the tclsh, pulling the rug out under tclsh.
      
      What does SIGPIPE means for a socket connection ? ... Ok, google (sigpipe, socket) delivers <<http://docs.hp.com/en/32650-90372/ch02s14.html>>, quoting:
      
          A SIGPIPE is generated when a send operation is attempted on a broken socket.
          One way of breaking a socket is to do a shutdown(,2) on a socket.
      
      That is the same semantics as for actual pipes, so I guess that we should behave in the same wat, throw a Tcl error.
      
      So we simply might have to catch the sigpipe and throw as tcl errors, as we do for regular pipes. ... The relevant files for that seem to be "tclUnixInit.c" and "tclUnixPipe.c", just look for 'SIGPIPE'. ... Hm. The code in UnixInit does a global SIG_IGN for this signal, to ignore it, so this should apply to sockets as well!
      
      Which of the test cases in http.test is actually breaking ?
      Could it be that gdb overrides our handling of sigpipe ?
      In that case the 'crash' might simply an artifact of execution under gdb and not an actual bug.
      
      
      
      
      
    2. login: "andreas_kupries"
    3. mimetype: "text/plain"
    4. username: "andreas_kupries"
  8. Ticket change [1d7a731fa7] (rid 90818) by dgp on 2007-04-10 10:08:13:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      better example of the issue
      is test io-29.27.  Comments
      there indicate that running
      such tests in a debugger will
      have this problem.
      
      Perhaps some constraints would
      be useful to allow the
      `make gdb-test` target to
      run to completion, but seems
      less likely there's any real
      bug behind this.  dropping prio.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. username: "dgp"
  9. Ticket change [e2c2664f09] (rid 87685) by dgp on 2007-04-10 10:08:14:

    1. priority changed to: "3 Low"
    2. title changed to: "sigpipes in test suite"
  10. Ticket change [8ebffe6ca3] (rid 120166) by das on 2007-04-10 19:40:20:

    1. icomment:
      Logged In: YES 
      user_id=90580
      Originator: NO
      
      For exactly  this reason, I have the following in my .gdbinit:
      handle SIGPIPE nostop noprint
      I routinely run the testsuite in gdb from Xcode, and this allows it to complete without interruptions...
      
      
      
    2. login: "das"
    3. mimetype: "text/plain"
    4. username: "das"
  11. Ticket change [e9061e0ce4] (rid 104741) by dgp on 2007-04-10 20:25:54:

    1. icomment:
      Logged In: YES 
      user_id=80530
      Originator: NO
      
      
      aha! an effective workaround.
      prio lower still.
      
      
    2. login: "dgp"
    3. mimetype: "text/plain"
    4. priority changed to: "2"
    5. username: "dgp"
  12. Ticket change [5b71ecc5ed] (rid 118326) by das on 2007-04-11 16:52:31:

    1. priority changed to: "3 Low"
  13. Ticket change [b07a97cafe] (rid 97986) by das on 2007-04-11 16:59:28:

    1. priority changed to: "2"
  14. Ticket change [d73e92e2bc] (rid 259435) by serhiy.storchaka on 2026-10-20 13:35:22:

    1. foundin changed to: "8.6.18, 9.0.5, 9.1.0"
    2. icomment:
      Still the case on main. Not a Tcl bug: Tcl ignores SIGPIPE (unix/tclUnixInit.c) and handles EPIPE, but gdb stops on the signal anyway, e.g. in io-29.27.
      
      Proposed in branch [b0abe7aa01|gdb-ignore-sigpipe]: the <code>gdb-test</code> and <code>gdb</code> targets of unix/Makefile.in pass <code>-ex "handle SIGPIPE nostop noprint"</code> to gdb (the workaround from this ticket). With it, io-29.27 runs to completion under <code>make gdb-test</code>.
      
    3. login: "serhiy.storchaka"
    4. mimetype: "text/x-fossil-wiki"
  15. Ticket change [f69b0a78e0] (rid 260491) by jan.nijtmans on 2026-10-26 20:52:36:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2461340.3698642822"
    3. closer changed to: "jan.nijtmans"
    4. comment changed to:
      With today's head on linux, running a --disable-shared --enable-symbols=all test under gdb (make gdb-test), there is a sigpipe in http.test. Partial backtrace attached. (Bug found by dgp)
      
    5. icomment:
      Fixed in [4576331fff3ad26e|trunk], core-9-0-branch and core-8-6-branch
      
      Many thanks!
      
    6. login: "jan.nijtmans"
    7. mimetype: "text/x-fossil-wiki"
    8. resolution changed to: "Fixed"
    9. severity changed to: "Minor"
    10. status changed to: "Closed"