Overview
| Artifact ID: | 8087cd40a891e58a2a9f2797747e3b17268d1cbe |
|---|---|
| Ticket: | 3164655fffffffffffffffffffffffffffffffff
socket: getaddrinfo() crashed on HP-UX |
| User & Date: | fridolin on 2011-01-24 11:42:23 |
Changes
- assignee changed to: "mdejong"
- cmimetype changed to: "text/plain"
- 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)
- foundin changed to: "None"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "fridolin"
- subsystem changed to: "52. Portability Support"
- title changed to: "socket: getaddrinfo() crashed on HP-UX "
- type changed to: "Bug"