Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 01917d495c9aedd67de554613c2ea63918956d44
Ticket: 833d14d19c129802bb7724be5cfde31d7d962a67
Segfault or corrupted double-linked list errors on exit
User & Date: sbron on 2014-10-30 09:51:12
Changes

  1. icomment:
    I didn't forget to attach the full script. The problem is that I only get the errors from a big application that I have been unable to reduce to a smaller version that still reproduces the issue.
    
    The application can run with a regular tclsh, but it does load several binary extensions, such as Tk, Itcl, Mk4tcl, vfs::zip, tktray, and dbus.
    
    I ran the program under valgrind and saw several Invalid read and Invalid write reports. Most came out of Mk4tcl.so, but there were also two from tkMenu.c.
    
    Next, I wrote enough of a Tcl-only replacement for Mk4tcl to take the program through the steps that originally led to the problem. I also stubbed out all calls to the other binary packages. With that version of the program I don't see the errors anymore, but valgrind still reports the invalid read/write from tkMenu.c.
    
    I am now not sure anymore if there is a problem in Tk that only reveals itself under very obscure circumstances, or if Mk4tcl is really to blame. It is strange though that even reduced to a pure Tcl/Tk application, valgrind still reports issues.
    
  2. login: "sbron"
  3. mimetype: "text/plain"