Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2e1c7327553fdeacfa92c742354e0ec6164c42fa505f036a7f0cdb6278f42dc7
Ticket: baa51423c28a3baf31271b979bd18cf58116a77c
tclWinConsole: needEvent variable is used uninitialized
User & Date: fvogel on 2022-08-20 07:04:13
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed to:
    Since [c085b9090c8ae821] (<i>New Windows console driver. Fixes [21280817d1] thread proliferation and [44bbccdd8c] fconfigure std{out,err}.</i>), in a freshly built Tcl from core-8-branch, when running "package require Tk" I get a MSVC Runtime Library debug check triggering: "Run-Time Check Failure #3: The variable 'needEvent' is being used without being initialized."
    
    I believe this comes from a missing initialization in ConsoleCheckProc in tclWinConsole.c:838 but there must be something more about this because when I add this initialization:
    
        int needEvent = 0;
    
    then the console runs (run-time check error is gone) but the continuation lines are broken in the console: it is no longer possible to enter more characters. Example: just enter: "proc a {} {", hit the enter key and it's stuck.
    
  5. foundin changed to: "core-8-branch"
  6. is_private changed to: "0"
  7. login: "fvogel"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "a013af67114eccc19ad12b04f14923acea9e96b7"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "fvogel"
  14. subsystem changed to: "52. Portability Support"
  15. title changed to:
    tclWinConsole: needEvent variable is used uninitialized
    
  16. type changed to: "Bug"