Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 719278a65ec56ef82a98e6f7ad895f626965a4e2
Ticket: 707174ffffffffffffffffffffffffffffffffff
stub entry != function --> infinite loop
User & Date: dgp on 2003-03-20 22:23:44
Changes

  1. assignee changed to: "kennykb"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    
    On RedHat Linux 6.2 on Alpha, using the compiler:
    
    $ ccc -V
    Compaq C V6.2-504 on Linux 2.2.18 alpha
    Compiler Driver V6.2-504 (Linux) cc Driver
    
    And using the default configuration options
    (--enable-shared in particular), I see:
    
    $ make test
    ...
    TCL_LIBRARY="/home/dgp/itl/tcl/library"; export
    TCL_LIBRARY; \
    ./tcltest ./../tests/all.tcl  
    make: *** [test] Error 139
    
    Just trying to run the tcltest executable:
    $ ./tcltest
    Segmentation fault
    
    The problem is an infinite loop in Tcl_DeleteFileHandler.
    Lines 489-492:
    
        if (tclStubs.tcl_DeleteFileHandler !=
    Tcl_DeleteFileHandler) {
            tclStubs.tcl_DeleteFileHandler(fd);
            return;
        }
    
    With this platform/compiler/linker, the two addresses
    compared
    are in fact not the same, yet calling each of them lead
    (eventually)
    to the same routine, Tcl_DeleteFileHandler executing. 
    Perhaps
    these are some unwise shenanigans by this linker, but
    it would
    be best if Tcl were not broken out of the box.
    
    Strangely, the tclsh executable works fine, and everything
    is fine if built with --disable-shared.
    
    
    
    
    
  4. foundin changed to: "obsolete: 8.4.2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "dgp"
  9. subsystem changed to: "01. Notifier"
  10. title changed to: "stub entry != function --> infinite loop"
  11. type changed to: "Bug"