Overview
| Artifact ID: | 6e16edb16d835691942b289483fc546129965a76d95663704dabd769d9d29dc9 |
|---|---|
| Ticket: | d1554fca55e91bacf9a719eb87cbd6e8a3f0df78
Crash with ::tls::socket |
| User & Date: | chrstphrchvz on 2023-08-11 07:01:56 |
Changes
- icomment:
[https://core.tcl-lang.org/tips/doc/trunk/tip/562.md|TIP 562] means that the channel function <tt>closeProc()</tt> is deprecated, and <tt>close2Proc()</tt> is mandatory in Tcl 9. But TclTLS only implements a <tt>closeProc()</tt>, and not a <tt>close2Proc()</tt> (nor am I aware of any efforts to implement one). So <tt>TclClose()</tt> assumes <tt>close2Proc()</tt> is available, and crashes since the function pointer for it is <tt>NULL</tt> (which it was set to by <tt>memset()</tt> in <tt>Tls_ChannelType()</tt>).
- login: "chrstphrchvz"
- mimetype: "text/x-fossil-wiki"