Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 8087cd40a891e58a2a9f2797747e3b17268d1cbe
Ticket: 3164655fffffffffffffffffffffffffffffffff
socket: getaddrinfo() crashed on HP-UX
User & Date: fridolin on 2011-01-24 11:42:23
Changes

  1. assignee changed to: "mdejong"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    with Tcl/Tk HEAD we found random crashes only on HP-UX in a socket command. gdb shows
    this trace:
    
    #0  0xc019b4f0 in free+0x140 () from /usr/lib/libc.2
    #1  0xc0162218 in __getipnodebyname_r+0x9b8 () from /usr/lib/libc.2
    #2  0xc01617bc in getipnodebyname+0x94 () from /usr/lib/libc.2
    #3  0xc0160860 in getaddrinfo+0x288 () from /usr/lib/libc.2
    
    Guessing from the comments, I found a patch. At the first sight, it seems to fix the
    problem, but it is not very well tested. I'll add a comment, if the problem with this
    patch remains. It is simply:
    
    Index: tclIOSock.c
    ===================================================================
    RCS file: /cvsroot/tcl/tcl/generic/tclIOSock.c,v
    retrieving revision 1.15
    diff -w -s -r1.15 tclIOSock.c
    183c183
    < #if defined(AI_ADDRCONFIG) && !defined(_AIX)
    ---
    > #if defined(AI_ADDRCONFIG) && !defined(_AIX) && !defined(__hpux)
    
    
    
    
    
    
    
  4. foundin changed to: "None"
  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: "fridolin"
  10. subsystem changed to: "52. Portability Support"
  11. title changed to: "socket: getaddrinfo() crashed on HP-UX "
  12. type changed to: "Bug"