Skip to content
Tcl Source Code History Of Ticket 1888596
Login

History Of Ticket 1888596

Artifacts Associated With Ticket 1888596

  1. Ticket change [f9c4a3b417] (rid 91752) by eriklns on 2008-02-07 08:57:04:

    1. assignee initialized to: "nobody"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      I experienced a segfault with Tcl8.4.17, when running tclhttpd (under Linux; I'm unsure whether the OS matters).
      
      Reproducing the segfault involves tclhttpd (3.5.1) and probably tls1.5 as follows:
      
      - Launch tclhttpd and make it listen at a https port, using TLS. I'm using libtls1.5.so, and configured tclhttpd to use TLSv1 only, using the standard configuration file settings. Although libtls1.5.so doesn't show up in the backtrace below, I can't get the  segfault to occur when using regular (non-TLS) channels.
      
      - From a http client, send a request with a malformed header. Receiving the malformed header is what triggers the server. I'm using the Tcl http client package, like this:
      
          http::register https $httpsPort [list ::tls::socket \
              -request 1 -require 1 -ssl2 0 -ssl3 0 -tls1 1 \
              -cafile [file join $Dir(cert) cacert.pem]]
          http::geturl https://$host:$port -headers [list {garbage 1}]
      
        (You may need to retry submitting several times before the server crashes)
      
      A full backtrace from the core dump has been attached.
      
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "eriklns"
    10. subsystem initialized to: "None"
    11. title initialized to: "Segfault with tclhttpd and TLS"
    12. type initialized to: "Bug"
  2. Ticket change [7aa7944856] (rid 90366) by eriklns on 2008-02-07 15:57:05:

    1. icomment:
      
      
      File Added - 265401: backtrace.txt
      
      
      
    2. login: "eriklns"
    3. mimetype: "text/plain"
    4. username: "eriklns"
  3. Add attachment "backtrace.txt" [3f82574e85] (rid 121470) by eriklns on 2008-02-07 15:57:05.

  4. Ticket change [c45958c4b7] (rid 111836) by dkf on 2008-02-09 05:30:50:

    1. assignee changed to: "andreas_kupries"
  5. Ticket change [532e3277c1] (rid 126438) by dkf on 2012-05-30 17:56:09:

    1. foundin changed to: "obsolete: 8.4.17"
    2. priority changed to: "7 High"
    3. subsystem changed to: "25. Channel System"
  6. Ticket change [396a0b0662] (rid 112385) by dkf on 2012-05-30 17:58:28:

    1. icomment:
      Hmm, tls package not in stack trace...
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  7. Ticket change [14a1628132] (rid 257771) by serhiy.storchaka on 2026-10-12 17:51:03:

    1. icomment:
      I cannot reproduce it. A writable fileevent script that closes its channel,
      replaces or deletes its own handler and then fails does not crash 8.6.18 or 9.1,
      and valgrind shows no errors. <code>TclChannelEventScriptInvoker()</code> now
      saves the event mask before evaluating the script, preserves the channel and
      does not touch the script records if the channel was closed.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
    4. resolution changed to: "Works For Me"
    5. status changed to: "Pending"