Artifacts Associated With Ticket 510001ffffffffff
Ticket change [ec17f42c39] (rid 103649) by davygrvy on 2002-01-29 02:48:32:
- assignee initialized to: "stwo"
- cmimetype initialized to: "text/plain"
- comment initialized to:
setsockopt() on windows takes a SOCKET type, not an int which isn't the same size on Win64. I don't have a patch ready, but noticed it while fixing porting issues. TclSockMinimumBuffers() is found in generic/tclIOSock.c
- foundin initialized to: "None"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "davygrvy"
- subsystem initialized to: "52. Portability Support"
- title initialized to: "TclSockMinimumBuffers needs plat imp"
- type initialized to: "Bug"
Ticket change [d1df5fa239] (rid 113428) by dgp on 2003-11-13 08:43:40:
- foundin changed to: "obsolete: 8.3.4"
Ticket change [12ecdae4bf] (rid 124133) by hobbs on 2007-02-10 01:47:06:
- foundin changed to: "obsolete: 8.4.15"
Ticket change [250c27e4df] (rid 131217) by dkf on 2007-02-12 00:40:03:
- priority changed to: "7 High"
Ticket change [6a63dc296c] (rid 128141) by stwo on 2009-04-15 03:54:06:
- assignee changed to: "davygrvy"
Ticket change [e278406068] (rid 87634) by davygrvy on 2009-04-15 04:45:18:
- icomment:
IMHO, this function was over-factored into generic originally.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment:
Ticket change [5b7eeaae15] (rid 118337) by nijtmans on 2012-03-29 16:52:06:
- assignee changed to: "nijtmans"
- foundin changed to: "obsolete: 8.5.11"
Ticket change [3494fab776] (rid 106778) by nijtmans on 2012-03-29 17:26:23:
- icomment:
proposal for solution committed to branch bug-510001 For Tcl8.4 and 8.5 it effectively means removing the stub entry for TclSockMinimumBuffers on WIN64 (On win32 everything stays as is). Extension writers using this function (are there any?) will notice that the function is gone. Tcl uses a small static function with the correct signature in stead, which does the right thing. In Tcl 8.6, it is already solved by changing the signature having ClientData as first parameter. This way, everything is kept binary compatible. Extension writers who want this function will have to use their own, or wait for Tcl 8.6.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [4ee6909647] (rid 125728) by nijtmans on 2012-03-29 17:26:33:
- resolution changed to: "Fixed"
Ticket change [3cc7bf7402] (rid 120967) by dgp on 2012-04-04 21:29:24:
- icomment:
current 8.4 branch hangs in the test suite at test event-11.5 . gdb points the blame at a routine: Program received signal SIGINT, Interrupt. TclSockMinimumBuffersOld (sock=0, size=0) at /home/dgp/fossil/tcl8.4/unix/../generic/tclStubInit.c:65 And that leads me to report it here. - login: "dgp"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- username: "dgp"
- icomment:
Ticket change [3662366904] (rid 107095) by dgp on 2012-04-04 21:30:09:
- icomment:
8.5 branch experiences a similar hang in test chan-16.9
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [593fee9242] (rid 117946) by dkf on 2012-04-04 21:31:55:
- icomment:
Problem also experienced on OSX. Call graph is: Sampling process 47709 for 3 seconds with 1 millisecond of run time between samples Sampling completed, processing symbols... Analysis of sampling tcltest (pid 47709) every 1 millisecond Call graph: 2508 Thread_2507 2508 start 2508 main 2508 Tcl_Main 2508 Tcl_FSEvalFile 2508 Tcl_EvalEx 2508 TclEvalObjvInternal 2508 TclObjInterpProc 2508 TclCompEvalObj 2508 TclExecuteByteCode 2508 TclEvalObjvInternal 2508 Tcl_UplevelObjCmd 2508 Tcl_EvalObjEx 2508 Tcl_EvalObjv 2508 TclEvalObjvInternal 2508 TclObjInterpProc 2508 TclCompEvalObj 2508 TclExecuteByteCode 2508 TclEvalObjvInternal 2508 Tcl_UplevelObjCmd 2508 Tcl_EvalObjEx 2508 Tcl_EvalObjv 2508 TclEvalObjvInternal 2508 TclObjInterpProc 2508 TclCompEvalObj 2508 TclExecuteByteCode 2508 TclEvalObjvInternal 2508 Tcl_UplevelObjCmd 2508 Tcl_EvalObjEx 2508 Tcl_EvalEx 2508 TclEvalObjvInternal 2508 Tcl_CatchObjCmd 2508 Tcl_EvalObjEx 2508 TclCompEvalObj 2508 TclExecuteByteCode 2508 TclEvalObjvInternal 2508 Tcl_SocketObjCmd 2508 Tcl_OpenTcpServer 2508 CreateSocket 2508 TclSockMinimumBuffersOld 2508 TclSockMinimumBuffersOld 2508 Thread_2603 2508 thread_start 2508 _pthread_start 2508 select$DARWIN_EXTSN 2508 select$DARWIN_EXTSN Total number in stack (recursive counted multiple, when >=5): 8 TclEvalObjvInternal Sort by top of stack, same collapsed (when >= 5): TclSockMinimumBuffersOld 2508 select$DARWIN_EXTSN 2508 Sample analysis of process 47709 written to file /dev/stdout - login: "dkf"
- mimetype: "text/plain"
- priority changed to: "7 High"
- username: "dkf"
- icomment:
Ticket change [5ab07138ed] (rid 118186) by dkf on 2012-04-04 21:34:29:
- icomment:
I *suspect* you've managed to make the code be defined to just call itself. Bumping prio to 9 as this now hangs the test suite on multiple maintenance branches.
- login: "dkf"
- mimetype: "text/plain"
- priority changed to: "9 Immediate"
- username: "dkf"
- icomment:
Ticket change [bd5fb008da] (rid 101895) by dgp on 2012-04-04 21:40:18:
- icomment:
#if !defined(_WIN64) /* See bug 510001: TclSockMinimumBuffers needs plat imp */ # undef TclSockMinimumBuffers # define TclSockMinimumBuffers(a,b) TclSockMinimumBuffersOld((int)(a),b) #endif
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [58fbf39a10] (rid 117892) by dgp on 2012-04-04 21:41:29:
- icomment:
That's at the bottom of tclIntDecls.h. So on any system that's not WIN64, we've got TCMBO endlessly calling itself recursively.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [58b554a334] (rid 117848) by dgp on 2012-04-04 21:45:31:
- icomment:
workaround committed. Solves the problem, but I don't know that it's the right fix.
- login: "dgp"
- mimetype: "text/plain"
- username: "dgp"
- icomment:
Ticket change [fea44d3aa4] (rid 108624) by nijtmans on 2012-04-04 21:58:37:
- closedate changed to: "2012-04-04T14:58:37"
- closer changed to: "nijtmans"
- icomment:
Yes, that's the right fix. Thanks!
- login: "nijtmans"
- mimetype: "text/plain"
- priority changed to: "5 Medium"
- status changed to: "Closed"
- username: "nijtmans"
Ticket change [80af33f4d5] (rid 116911) by nijtmans on 2012-04-05 05:45:07:
- icomment:
Moved the #undef up in the file, placing it together other #undef's which handle macros conflicting with later definitions in that file as well. All should be OK now.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [a5c235c6e5] (rid 110429) by davygrvy on 2012-04-05 10:39:58:
- icomment:
WOW. A 10 year old suggestion :) You guys rock. I've out of the scene for ages, but just recently started on a new extension to get my feet back in coding again. Long live Tcl.
- login: "davygrvy"
- mimetype: "text/plain"
- username: "davygrvy"
- icomment: