Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: fcc1675f0f572edd0bb448ad79fbdafdf2273034
Ticket: 218891ffffffffffffffffffffffffffffffffff
While using Oratcl extension, calls to exit product a segmen
User & Date: nobody on 2000-10-26 01:07:17
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2560 Bug
    Version: 8.2b3
    SubmitDate: '1999-08-18'
    LastModified: '1999-11-30'
    Severity: CRIT
    Status: Released
    Submitter: techsupp
    ChangedBy: hobbs
    RelatedBugIDs: 3373
    OS: Solaris
    OSVersion: 2.7
    Machine: Other
    FixedDate: '1999-11-30'
    FixedInVersion: 8.2.3
    ClosedDate: '2000-10-25'
    
    
    Name:
    Todd Helfter
    
    Extensions:
    Oratcl 2.5
    
    CustomShell:
    No local modifications to Tcl/core
    
    Comments:
    the segmentation fault occurs after the call to TclpUnloadFile() in
        tclLoad.c .  By unloading the oratcl library file, calls to atexit()
        that were done by the Oracle libraries can no longer be referenced.
        
        Commenting out the package unload corrects the problem as does calling
        _exit() instead of exit() in tclEvent.c
        
        This happens in all versions of Tcl released later than tcl-8.0.5
        (8.1, 8.1.1, 8.2b(1-3)
    
    ReproducibleScript:
    package require oratcl
        set handle [oralogon log/pass@db]
        exit
    
    ObservedBehavior:
    segmentation fault  occurs on the exit
    
    DesiredBehavior:
    no segmentation fault
    
    
    
    8.2.3 was changed to not unload any DLLs when finalizing,
    allowing for code like the (bad) use of atexit above to function
    without a core.  8.3 should be improved to allow the user to
    specify whether the dll should be unloaded or not. 
    -- 11/30/1999 hobbs
    
  4. foundin changed to: "obsolete: 8.2b3"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to:
    While using Oratcl extension, calls to exit product a segmen
    
  11. type changed to: "Bug"