summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* [894da183c8] Fix and test for bug at the point it was introduced.bug_894da183c8dgp2015-04-292-1/+35
|
* Move code that can only matter in the first loop iteration out of the loop.dgp2014-05-271-13/+6
|
* Comment out lines of test io-53.4 that appear to do nothing of any value.dgp2014-05-241-5/+5
|
* Followup on [72c54e1659]. Removed unused variable.andreask2014-05-231-1/+0
|
* Workarounds and fixes for wrapped executables on various platforms andreask2014-05-221-1/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | regarding the handling of wrapped dynamic libraries. The basic flow of operation is to copy such libraries into a temp file, hand them to the OS loader for processing, and then to delete them immediately, to prevent them from being accessible to other executables. On platforms where that is not possible the library is left in place and things are arranged to delete it on regular process exit. An example of the latter are older revisions of HPUX which report that the file is busy when trying to delete it. Younger revisions of HPUX have changed to allow the deletion, but are also buggy, the OS loader mangles its data structures so that a second library loaded in this manner fails. More recently it was found that Linux which is usually ok with deleting the file and gets everything right shows the same trouble as modern HPUX when the "docker" containerization system is involved, or more specifically the AUFS in use there. Deleting the loaded library file mangles data structures and breaks loading of the following libraries. For a demonstration which does not involve Tcl at all see the ticket https://github.com/dotcloud/docker/issues/1911 in the docker tracker. This of course breaks the use of wrapped executables within docker containers. This commit introduces the function TclSkipUnlink() which centralizes the handling of such exceptions to unlinking the library after unload, and provides code handling the known cases. IOW HPUX is generally forced to not unlink, and ditto when we detect that the copied library file resides within an AUFS. The latter must however be explicitly activated by setting the define -DTCL_TEMPLOAD_NO_UNLINK during build. We still need proper configure tests to set it on the relevant platforms (i.e. Linux). The AUFS detection and handling can be overridden by the environment variable TCL_TEMPLOAD_NO_UNLINK which can force the behaviour either way (skip or not). In case the user knows best, or wishes to test if the problem with AUFS has been fixed.
* Rework the management of the CHANNEL_BLOCKED and CHANNEL_EOF flags, indgp2014-05-204-161/+172
|\ | | | | | | particular not allowing them to leak between multiple layers of a stacked channel. Much common code refactored into ChanRead().
| * Simplify the inputProc of [testchannel transform].dgp_channel_flag_repairdgp2014-05-171-21/+18
| |
| * Repair broken tests iogt-2.[123].dgp2014-05-171-0/+3
| | | | | | | | | | | | What happened is that now that EOF flags no loger leak acros channel stack layers, an EOF in the bottom channel isn't detected in the top one until the ChanRead call at the top level actually returns 0 bytes. This causes one more query/ma
| * Improved use of EOF state to avoid worthless allocations.dgp2014-05-161-10/+12
| |
| * Move the resets and testings of the BLOCKED flag to where they make more sense.dgp2014-05-161-22/+17
| |
| * merge 8.5dgp2014-05-165-11/+186
| |\ | |/ |/|
* | Fix for failing tests *io-32.11*dgp2014-05-162-9/+96
|\ \
| * \ merge 8.5bug_io_32_11dgp2014-05-1612-28/+139
| |\ \ | |/ / |/| |
* | | Portable test to demo bug otherwise seen only on Windows.dgp2014-05-151-0/+20
| | |
* | | Fix [3118489]: NUL in filenames. (On Windows, protect against invalid use of ↵jan.nijtmans2014-05-153-2/+70
| | | | | | | | | | | | ':' in filenames as well)
| * | Merge completion of dgp-read-bytes branch.dgp2014-05-1631-1484/+1351
| |\ \
| * | | Bug fix - accept consumption of the trailing newline in crlf with nodgp2014-05-161-9/+37
| | | | | | | | | | | | characters produced. Also delete false assertions.
| * | | More tests to demo the bug more directly.dgp2014-05-161-0/+39
| | | |
| * | | Branch to demo bug introduced in the parent commit.dgp2014-05-151-0/+20
| | | |
| | | * Push the setting and clearing of CHANNEL_BLOCKED flag to the more innerdgp2014-05-151-11/+12
| | | | | | | | | | | | parts of the channel read machinery.
| | | * merge 8.5dgp2014-05-141-0/+3
| | | |\ | |_|_|/ |/| | |
* | | | Fix 3 test-cases which started failing on Windowsjan.nijtmans2014-05-141-0/+3
| | | |
| | | * Rework Tcl_ReadRaw() mostly taking things out of the loop that never repeat.dgp2014-05-131-36/+20
| | | |
| | | * Salvaged what was left of value in the dgp-read-bytes-detour branch.dgp2014-05-132-81/+111
| | | |\ | |_|/ / |/| | | | | | | | | | | | | | | | | | | Refactored much management of the BLOCKED and EOF flags into ChanRead() then began repairing some of the logic about them. Tests iogt-2.* now fail because they've been crafted as experiments recording the fine detail of reflected channel driver calls, and fixing the management of channel flags is changing that.
| | | * missing declarationdgp_read_bytes_detourdgp2014-03-211-0/+1
| | | |
| | | * Correct namespace bugs in normally skipped tests.dgp2014-03-211-6/+8
| | | | | | | | | | | | Constrain them as "knownBug" rather than "unknownFailure".
| | | * Added comment explaining the "knownBug"dgp2014-03-211-0/+9
| | | |
| | | * Convert "impossible" test to a "knownBug" test. Exposes a segfault!dgp2014-03-211-4/+5
| | | |
| | | * Restore default suppression of large file test.dgp2014-03-211-1/+1
| | | |
| | | * Fixup ChanRead() header. Note (dstSize > 0) precondition.dgp2014-03-211-2/+8
| | | |
| | | * io-34.21 - fix bugs in normally skipped test.dgp2014-03-211-4/+4
| | | | | | | | | | | | io-35.18b - knownBug is not buggy on this branch.
| | | * Documentation header for ChanRead()dgp2014-03-211-2/+23
| | | |
| | | * Both callers of ChanRead() have simlar epilogs. Shift that into ChanReaddgp2014-03-201-73/+50
| | | | | | | | | | | | and refactor.
* | | | [958bc05fbe]: Clarify "clock format" using "%R"jan.nijtmans2014-05-131-2/+3
| | | |
* | | | Restore the largefileSupport constraint on Darwin, where tests (chan)io-34.21dgp2014-05-122-2/+2
| | | | | | | | | | | | take an unbearable 90 seconds each to complete.
* | | | Correct namespace bugs in normally skipped tests.dgp2014-05-091-6/+8
| | | | | | | | | | | | Constrain them as "knownBug" rather than "unknownFailure".
* | | | Added comment explaining the "knownBug" in iogt-6.1dgp2014-05-091-0/+9
| | | |
* | | | Tests (chan)io-34.21 are constrained for largefileSupport, and that'sdgp2014-05-092-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | disabled by default, which means never tested, which means the ridiculous bugs in them are never found and fixed. Fixed the bugs, changed the default. Large File Suppport (4GB) is commonplace now. Let those without it suffer a few failing tests reporting that fact to them.
* | | | Test iocmd-32.1 is not "impossible" but after writing it properly itdgp2014-05-092-6/+15
| | | | | | | | | | | | does segfault trying to use a deleted interp. Fixed.
* | | | Make Cygwin's "configure" work from another directory than /unix. (Not ↵jan.nijtmans2014-05-092-4/+4
| | | | | | | | | | | | | | | | everything works this way!)
* | | | Merge the reforms of dgp-read-bytes branch into 8.5+ releases.dgp2014-05-086-863/+861
|\ \ \ \ | | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | Large overhaul of I/O read operations - Protects integer overflow of buffers, reusing append machinery - Forces -buffersize changes to take place when commanded - Uses assertions to simplify code in "can't happen" situations - Eliminated duplication of -translation processing - Fixes bugs io-35.18b and io-35.20
| * | | Merge 8.5.dgp_read_bytesdgp2014-05-084-11/+29
| |\ \ \ | |/ / / |/| | |
* | | | Stop leak in iocmd-21.22.dgp2014-05-081-0/+1
| | | |
* | | | Corrected description of where tcl_platform(user) comes from on Unix.dkf2014-05-071-2/+2
| | | |
* | | | Stop leaks of cloned Tcl_ChannelTypes.dgp2014-05-071-8/+20
| | | |
* | | | Stop leak in io-53.5.dgp2014-05-071-0/+1
| | | |
* | | | Stop leak in io-33.7.dgp2014-05-061-1/+2
| | | |
* | | | Stop memory leak in io-29.34dgp2014-05-061-0/+2
| | | |
* | | | Stop memory leak in io-29.27.dgp2014-05-061-0/+1
| | | |
| * | | merge 8.5dgp2014-05-062-3/+33
| |\ \ \ | |/ / / |/| | |