valgrind woes in unix sockets
Closed / Fixed48cf01315d8e9edb6e2e0df1befc53304d5b8dfeCreated 13 years agoUpdated 13 years ago
Descriptionplain2014-06-03 18:56:47
Starting with checkin http://core.tcl.tk/tcl/info/8f4a29e820b869090933cc262bc94ef359fd8175 Valgrind is unhappy with test http-3.29. This unhappiness has merged into, and continues on the trunk. ==31994== 1 errors in context 1 of 121: ==31994== Invalid read of size 8 ==31994== at 0x5AA95C: Tcl_CreateFileHandler (tclUnixNotfy.c:592) ==31994== by 0x5A7BAD: TcpWatchProc (tclUnixSock.c:902) ==31994== by 0x52EF48: ChanWatch (tclIO.c:442) ==31994== by 0x536517: UpdateInterest (tclIO.c:8183) ==31994== by 0x536730: Tcl_CreateChannelHandler (tclIO.c:8329) ==31994== by 0x536BDC: CreateScriptRecord (tclIO.c:8536) ==31994== by 0x536EE7: Tcl_FileEventObjCmd (tclIO.c:8696) ==31994== by 0x4316CA: Dispatch (tclBasic.c:4357)
dgpplain2014-06-04 02:08:55
OK, that trouble got fixed up in checkin http://core.tcl.tk/tcl/info/9b3b3adf47823f5980b57a1df6432be39c5858c3 and the valgrind issues that remain and merged to trunk with test http-3.29 are: ==9476== 1 errors in context 1 of 109: ==9476== Use of uninitialised value of size 8 ==9476== at 0x5698F5: Tcl_ErrnoId (tclPosixStr.c:37) ==9476== by 0x546FC0: Tcl_PosixError (tclIOUtil.c:2081) ==9476== by 0x5A7F83: TcpConnect (tclUnixSock.c:1178) ==9476== by 0x5A80FF: Tcl_OpenTcpClient (tclUnixSock.c:1250) ==9476== by 0x53C87F: Tcl_SocketObjCmd (tclIOCmd.c:1600) ==9476== by 0x4316CA: Dispatch (tclBasic.c:4357) ==9476== by 0x431751: TclNRRunCallbacks (tclBasic.c:4390) ==9476== by 0x430E77: Tcl_EvalObjv (tclBasic.c:4121) ==9476== ==9476== ==9476== 1 errors in context 2 of 109: ==9476== Conditional jump or move depends on uninitialised value(s) ==9476== at 0x5698DD: Tcl_ErrnoId (tclPosixStr.c:37) ==9476== by 0x546FC0: Tcl_PosixError (tclIOUtil.c:2081) ==9476== by 0x5A7F83: TcpConnect (tclUnixSock.c:1178) ==9476== by 0x5A80FF: Tcl_OpenTcpClient (tclUnixSock.c:1250) ==9476== by 0x53C87F: Tcl_SocketObjCmd (tclIOCmd.c:1600) ==9476== by 0x4316CA: Dispatch (tclBasic.c:4357) ==9476== by 0x431751: TclNRRunCallbacks (tclBasic.c:4390) ==9476== by 0x430E77: Tcl_EvalObjv (tclBasic.c:4121) ==9476== ==9476== ==9476== 1 errors in context 3 of 109: ==9476== Use of uninitialised value of size 8 ==9476== at 0x56A098: Tcl_ErrnoMsg (tclPosixStr.c:496) ==9476== by 0x546FB7: Tcl_PosixError (tclIOUtil.c:2080) ==9476== by 0x5A7F83: TcpConnect (tclUnixSock.c:1178) ==9476== by 0x5A80FF: Tcl_OpenTcpClient (tclUnixSock.c:1250) ==9476== by 0x53C87F: Tcl_SocketObjCmd (tclIOCmd.c:1600) ==9476== by 0x4316CA: Dispatch (tclBasic.c:4357) ==9476== by 0x431751: TclNRRunCallbacks (tclBasic.c:4390) ==9476== by 0x430E77: Tcl_EvalObjv (tclBasic.c:4121) ==9476== ==9476== ==9476== 1 errors in context 4 of 109: ==9476== Conditional jump or move depends on uninitialised value(s) ==9476== at 0x56A080: Tcl_ErrnoMsg (tclPosixStr.c:496) ==9476== by 0x546FB7: Tcl_PosixError (tclIOUtil.c:2080) ==9476== by 0x5A7F83: TcpConnect (tclUnixSock.c:1178) ==9476== by 0x5A80FF: Tcl_OpenTcpClient (tclUnixSock.c:1250) ==9476== by 0x53C87F: Tcl_SocketObjCmd (tclIOCmd.c:1600) ==9476== by 0x4316CA: Dispatch (tclBasic.c:4357) ==9476== by 0x431751: TclNRRunCallbacks (tclBasic.c:4390) ==9476== by 0x430E77: Tcl_EvalObjv (tclBasic.c:4121) ==9476== ==9476== ==9476== 1 errors in context 5 of 109: ==9476== Conditional jump or move depends on uninitialised value(s) ==9476== at 0x5A7F65: TcpConnect (tclUnixSock.c:1169) ==9476== by 0x5A80FF: Tcl_OpenTcpClient (tclUnixSock.c:1250) ==9476== by 0x53C87F: Tcl_SocketObjCmd (tclIOCmd.c:1600) ==9476== by 0x4316CA: Dispatch (tclBasic.c:4357) ==9476== by 0x431751: TclNRRunCallbacks (tclBasic.c:4390) ==9476== by 0x430E77: Tcl_EvalObjv (tclBasic.c:4121) ==9476== by 0x433675: TclEvalEx (tclBasic.c:5259) ==9476== by 0x54678B: Tcl_FSEvalFileEx (tclIOUtil.c:1809)
dgpplain2014-06-04 02:48:11
ok, think I've got this. A bit tricky. Valgrind wants the variable "error" in TcpConnect to be initialized before use. Sensible desire. But in this case an init to 0 is the wrong thing. error = errno appears to be right. Evidence suggest it works anyway.
dgp Closed ticket [48cf01315d].
[History diff]2014-06-04 03:26:51
Log in (anonymous is fine) to add a comment.