Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 122bbc56bfe297f07c1b6e3f407ca97b72abe1f3
Ticket: 2073255fffffffffffffffffffffffffffffffff
Tcl_GetString(NULL) doesn't crash on HP-UX
User & Date: nijtmans on 2008-08-25 09:08:29
Changes

  1. assignee changed to: "nijtmans"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    When calling Tcl_GetString(NULL) on HP-UX, the effect is:
    
        UpdateStringProc should not be invoked for type 
        Abort(coredump)
    
    The reason for this is a 'strange' feature of the HP-UX
    C compiler:by default NULL-pointer references
    are allowed and simply return 0. The problem with this
    is that pointer reference mistakes can cause strange
    behavior far from the place where the actual error is,
    such as the Tcl_GetString(NULL) example.
    
    Proposed solution: Add the "+z" options to CFLAGS
    (see patch)
    
  4. foundin changed to: "obsolete: 8.5.4"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "nijtmans"
  10. subsystem changed to: "52. Portability Support"
  11. title changed to: "Tcl_GetString(NULL) doesn't crash on HP-UX"
  12. type changed to: "Bug"