socket: getaddrinfo() crashed on HP-UX
Closed / Fixed3164655fffffffffffffffffffffffffffffffffCreated 16 years agoUpdated 15 years ago
Descriptionplain2011-01-24 11:42:23
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)
fridolinplain2011-01-25 16:09:24
Now we tested the patch a lot. No random crashes anymore.
andreas_kupriesplain2011-01-25 23:29:01
Reassigned to Reinhard, IPv6 maintainer. This looks to be in that area.
rmaxplain2011-06-07 19:54:02
Fix applied to rmax-ipv6-branch and will soon be merged to trunk.
rmax Closed ticket [3164655fff].
[History diff]2011-06-07 19:54:04
Log in (anonymous is fine) to add a comment.