Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: f9c4a3b417fdb496f14b60dc46f9b9d15ab09acf
Ticket: 1888596fffffffffffffffffffffffffffffffff
Segfault with tclhttpd and TLS
User & Date: eriklns on 2008-02-07 08:57:04
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed 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 changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "eriklns"
  10. subsystem changed to: "None"
  11. title changed to: "Segfault with tclhttpd and TLS"
  12. type changed to: "Bug"