Artifacts Associated With Ticket b4af93cd9f
Ticket change [e19649bad1] (rid 209767) by dgp on 2023-03-06 17:30:50:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-plain"
- comment initialized to:
valgrind run reports uninitialized bytes usage in http11-1.13.0: ==26164== Syscall param socketcall.getsockopt(optlen) points to uninitialised byte(s) ==26164== at 0x586E8EA: getsockopt (in /usr/lib64/libc-2.17.so) ==26164== by 0x5D4D28: TcpGetOptionProc (tclUnixSock.c:1045) ==26164== by 0x5468A6: Tcl_GetChannelOption (tclIO.c:8144) ==26164== by 0x54D074: Tcl_FconfigureObjCmd (tclIOCmd.c:785) ==26164== by 0x434E1F: Dispatch (tclBasic.c:4997) ==26164== by 0x434EA7: TclNRRunCallbacks (tclBasic.c:5037) ==26164== by 0x434773: Tcl_EvalObjv (tclBasic.c:4756) ==26164== by 0x436DD5: TclEvalEx (tclBasic.c:5913) ==26164== by 0x559F7D: Tcl_FSEvalFileEx (tclIOUtil.c:1782) ==26164== by 0x5669A6: Tcl_MainEx (tclMain.c:405) ==26164== by 0x410188: main (tclAppInit.c:94) ==26164== Address 0x1ffeffe6bc is on thread 1's stack ==26164== in frame #1, created by TcpGetOptionProc (tclUnixSock.c:900)
- foundin initialized to: "core-8-branch"
- is_private initialized to: "0"
- login: "dgp"
- priority initialized to: "5 Medium"
- private_contact initialized to: "8e2300e85be5dd1445b9666eb9429055951e33be"
- resolution initialized to: "None"
- severity initialized to: "Important"
- status initialized to: "Open"
- submitter initialized to: "dgp"
- subsystem initialized to: "29. http Package"
- title initialized to: "uninitialized bytes in http11-1.13.0"
- type initialized to: "Bug"
Ticket change [ca568fa4d8] (rid 209768) by dgp on 2023-03-06 17:34:18:
- icomment:
Very likely same issue exposed by test socket_inet-7.3: ==26857== Syscall param socketcall.getsockopt(optlen) points to uninitialised byte(s) ==26857== at 0x586E8EA: getsockopt (in /usr/lib64/libc-2.17.so) ==26857== by 0x5D4D28: TcpGetOptionProc (tclUnixSock.c:1045) ==26857== by 0x5468A6: Tcl_GetChannelOption (tclIO.c:8144) ==26857== by 0x54D074: Tcl_FconfigureObjCmd (tclIOCmd.c:785) ==26857== by 0x434E1F: Dispatch (tclBasic.c:4997) ==26857== by 0x434EA7: TclNRRunCallbacks (tclBasic.c:5037) ==26857== by 0x434773: Tcl_EvalObjv (tclBasic.c:4756) ==26857== by 0x436DD5: TclEvalEx (tclBasic.c:5913) ==26857== by 0x559F7D: Tcl_FSEvalFileEx (tclIOUtil.c:1782) ==26857== by 0x5669A6: Tcl_MainEx (tclMain.c:405) ==26857== by 0x410188: main (tclAppInit.c:94) ==26857== Address 0x1ffeffe70c is on thread 1's stack ==26857== in frame #1, created by TcpGetOptionProc (tclUnixSock.c:900)
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [4100e9208f] (rid 209770) by apnadkarni on 2023-03-06 17:57:50:
- icomment:
Most likely because size needs to be initialized to sizeof(opt) before the call to getsockopt on line 1045.
- login: "apnadkarni"
- mimetype: "text/x-markdown"
- icomment:
Ticket change [17a4aaef16] (rid 209774) by dgp on 2023-03-06 18:18:31:
- icomment:
Thanks. That does seem to fix it. Fix committed to a branch. If it looks ok to you, either merge it, or tell me I should merge it.
- login: "dgp"
- mimetype: "text/plain"
- icomment:
Ticket change [b6bdf075f8] (rid 209788) by apnadkarni on 2023-03-07 01:41:05:
- icomment: "Please go ahead and merge it. Thanks"
- login: "apnadkarni"
- mimetype: "text/plain"
Ticket change [e0506be233] (rid 209852) by jan.nijtmans on 2023-03-07 20:11:09:
- assignee changed to: "apnadkarni"
- closedate changed to: "2460011.34108222"
- closer changed to: "jan.nijtmans"
- icomment: "Fixed [2dff4cb44b79138e|here]"
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [73960fa184] (rid 209897) by dgp on 2023-03-08 13:42:04:
- closedate changed to: "2460012.07089106"
- closer changed to: "dgp"
- icomment: "Thanks!"
- login: "dgp"
- mimetype: "text/plain"