summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| | | | | | | | | | | | | | | | | | | | | | | | | | * | | merge 8.5dgp2014-05-017-26/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | |\ \ \ | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | | | | | | | | | | | We must Preserve channels if we're going to use TclChanCaughtErrorBypass()dgp2014-05-011-4/+22
| |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to get error information after channel routines are called (and have possibly called for the channel to go away).
* | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix more corner-cases like ↵jan.nijtmans2014-05-014-12/+30
| |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [0e92c404f19ede5b2eb06e6db27647d3138cc56|0e92c404f1]: The only place where a type of &tclByteArrayType can be trusted is when determining its length, because the character length of a (UTF-8) string is always equal to the byte length of the byte array.
* | | | | | | | | | | | | | | | | | | | | | | | | | | Better (safer) fix for [0e92c404f1]jan.nijtmans2014-04-301-1/+1
| |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | | | | | | | | Stop the segfaults in [close] during [gets] tests.dgp2014-04-302-11/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not sure this is the right behavior, but it's better than crashing.
* | | | | | | | | | | | | | | | | | | | | | | | | | Panic message to pinpoint the cause of iocmd-21.23 segfault.dgp2014-04-301-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | | | | | | | | Another segfault demo test, this one with [close] during [gets].dgp2014-04-301-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | | | | | | | | Make sure no shared ChannelBuffers get recycled.dgp2014-04-291-0/+11
| |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | | | | | | | Fix bug exposed when buffer recycling is disabled.dgp2014-04-291-2/+4
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | | | | | Revise the logic for setting TCL_ENCODING_END in the outputEncodingFlagsdgp_no_buffer_recycledgp2014-04-291-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | so it does not rely on buffer recycling.
| * | | | | | | | | | | | | | | | | | | | | | | | Disable buffer recycling to expose bugs for fixing.dgp2014-04-251-1/+1
|/ / / / / / / / / / / / / / / / / / / / / / / /
| | | | | | | | | | | | | | | | | | | | | * | | merge 8.5dgp2014-04-245-49/+110
| | | | | | | | | | | | | | | | | | | | | |\ \ \ | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | | | | | | [3493120] Plug memory leak in thread exit.dgp2014-04-234-2/+35
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | |
| * | | | | | | | | | | | | | | | | | | | | | | *nix segfault cleared: we should reset a thread key after freeing of alloc ↵bug_3493120sebres2014-04-231-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cache (in tclUnixThrd.c)
| * | | | | | | | | | | | | | | | | | | | | | | Memory leak after thread exit, fixed (alloc cache released by exit), belong ↵sebres2014-04-223-2/+34
| | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | to ticket [3493120] Moved over to branch bug-3493120. This is not ready for the core-8-5-branch. Segfaults all over the place in a thread-enabled build on a CentOS system.
* | | | | | | | | | | | | | | | | | | | | | | Add refcounting and preservation to [testchannel transform] to stop segfaultdgp2014-04-221-47/+75
|/ / / / / / / / / / / / / / / / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | in test iogt-2.4.
| | | | | | | | | | | | | | | | | | | * | | merge 8.5dgp2014-04-214-8/+78
| | | | | | | | | | | | | | | | | | | |\ \ \ | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | | | | Added a refcounting mechanism to ChannelBuffers. Other edits todgp2014-04-214-10/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | stop segfaults in tests iocmd-21.2[12].
* | | | | | | | | | | | | | | | | | | | | | Another test exposing another segfault.dgp2014-04-171-0/+16
| |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | |
| | | | | | | | | | | | | | | | | | * | | merge 8.5dgp2014-04-171-95/+50
| | | | | | | | | | | | | | | | | | |\ \ \ | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | | | Reflected channels. Keep a set of method names cached so we don't createdgp2014-04-171-40/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | new each operation, and we can benefit from any lookup info cached in intreps.
* | | | | | | | | | | | | | | | | | | | | Simplify reflected channels.dgp2014-04-171-55/+7
| |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of having two modes of Close operations and the need to choose between them with a special value of the methods field, when the initialize pass fails for some reason, simply do not create the channel so there's nothing that needs closing. Then the methods field no longer holds anything used, so eliminate it. All the methods checking is done by [chan create].
| | | | | | | | | | | | | | | | | * | | merge 8.5dgp2014-04-1618-347/+452
| | | | | | | | | | | | | | | | | |\ \ \ | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / |/| | | | | | | | | | | | | | | | | / / | | | | | | | | | | | | | | | | | |/ /
* | | | | | | | | | | | | | | | | | | Repair new test so all parts will be effective.dgp2014-04-161-0/+3
| | | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | | Test for [d19a30db57] extendedsebres2014-04-161-0/+1
| |_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / |/| | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | Test for [d19a30db57].dgp2014-04-161-0/+5
| | | | | | | | | | | | | | | | | |
* | | | | | | | | | | | | | | | | | merge fork: Segmentation fault using some functions of tcl::clock, fixed, ↵jan.nijtmans2014-04-161-18/+21
|\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|_|_|_|_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | belong to ticket [d19a30db57]
| * | | | | | | | | | | | | | | | | Segmentation fault using some functions of tcl::clock, fixed, belong to ↵sebres2014-04-161-18/+21
| | |_|_|_|_|_|_|_|_|_|_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ticket [d19a30db57]
* | | | | | | | | | | | | | | | | Fix compiler warnings in win32/cygwin build.jan.nijtmans2014-04-162-6/+14
|/ / / / / / / / / / / / / / / /
* | | | | | | | | | | | | | | | Upgrade from Winsock 1.1 to Winsock 2.2, which is always available on ↵jan.nijtmans2014-04-164-98/+19
| |_|_|_|_|_|_|_|_|_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Win2000+. See: [http://msdn.microsoft.com/en-us/library/windows/desktop/ms742213%28v=vs.85%29.aspx] for details. Move winsock initialization to TclpInitPlatform(void), so we can be sure everywhere that we have an initialized winsock2. Stub entries for TclWinGetServByName/TclWinGetSockOpt/TclWinSetSockOpt are no longer necessary (will be removed in 9.0, but are kept in 8.x)
* | | | | | | | | | | | | | | Purge (now unused) argc and argv fields.dgp2014-04-151-107/+3
| |_|_|_|_|_|_|_|_|_|_|/ / / |/| | | | | | | | | | | | |
* | | | | | | | | | | | | | [88aef05cda] Stop reentrancy segfault in reflected channels by managingdgp2014-04-152-2/+39
| |_|_|_|_|_|_|_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | callbacks as (copies of) lists, not shared Tcl_Obj arrays. Still could use cleanup and improvements.
* | | | | | | | | | | | | [792641f95b]: Normalized win32 paths should never contain backslash.jan.nijtmans2014-04-102-9/+11
| |_|_|_|_|_|_|_|_|/ / / |/| | | | | | | | | | |
* | | | | | | | | | | | Provide full Tcl patchlevel to tcl.pc and move private libs to "Libs.private".jan.nijtmans2014-04-081-4/+3
| |_|_|_|_|_|_|_|/ / / |/| | | | | | | | | |
* | | | | | | | | | | Moved tests socket-8.2 and socket-8.3 to socket-14.3 and socket-14.4 and ↵oehhar2014-04-041-29/+31
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | made them robust against connect failures
| * | | | | | | | | | Move tests 8.2 and 8.3 out of the IPv4/IPv6 loop to 14.13 and 14.14.max2014-04-041-31/+32
| | | | | | | | | | |
| * | | | | | | | | | Fix/improve tests.max2014-04-041-37/+30
| | | | | | | | | | |
| * | | | | | | | | | Add tests for bugs [336441ed59] and [581937ab1e] from core-8-5-branch.max2014-04-041-0/+29
| | | | | | | | | | |
| * | | | | | | | | | * Rework WaitForConnect() to fix synchronous completion of asynchronous ↵max2014-04-042-35/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | connections. * Let TcpInputProc() and TcpOutputProc() fail before calling any I/O syscalls when an asynchronous connection has failed. * Adjust the tests accordingly.
| * | | | | | | | | | Make the naming of TcpState variables consistentmax2014-04-041-49/+53
| | | | | | | | | | |
| * | | | | | | | | | Marked all communication variables which are set by notifier thread with ↵oehhar2014-04-021-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "volatile".
| * | | | | | | | | | Imported fix for bug [97069ea11a] from branch bug-97069ea11a: empty error ↵oehhar2014-04-011-1/+11
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | message on stalled background flush after async socket connect fail
| * | | | | | | | | | | Removed thread debugging printf messagesoehhar2014-04-011-110/+13
| | | | | | | | | | | |
* | | | | | | | | | | | Fix for Bug [97069ea11a]: Set return message in close if a flush error is ↵oehhar2014-04-041-1/+11
|\ \ \ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | reported (which may be an error from a background flush)
| * | | | | | | | | | | | Revert the tests for bug#97069ea11a from socket.test, because it is hard to ↵bug_97069ea11amax2014-04-041-33/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test with the socket command in a platform-independent way. As the bug is in tclIOChan.c and should be tested there with a dummy channel driver that can reliably reproduce the situation that suppresses the error message.
| * | | | | | | | | | | | Centralize and clarify the user of 169.254.0.0 as a non-reachable address.max2014-04-011-3/+9
| | | | | | | | | | | | |
| * | | | | | | | | | | | Add test cases for Bug [97069ea11a].max2014-04-011-0/+27
| | |/ / / / / / / / / / | |/| | | | | | | | | |
| * | | | | | | | | | | Fix test failure socket-2.9: "1 {not owner}" instead of "1 {couldn't open ↵oehhar2014-04-011-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | socket address already in use}" by only setting returned error message if not jet set.
| * | | | | | | | | | | Set return message in close if a flush error is reported (which may be an ↵oehhar2014-04-011-2/+13
| | |_|_|_|_|_|_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | error from a background flush). Ticket [97069ea11a]
* | | | | | | | | | | Fix bug [581937ab1e]: fire readable event on async socket connect failureoehhar2014-04-022-33/+57
|\ \ \ \ \ \ \ \ \ \ \