summaryrefslogtreecommitdiffstats
path: root/generic
Commit message (Collapse)AuthorAgeFilesLines
* These edits make all tests outside of socket-14.* pass on OSX Mavericks.dgp_async_socketdgp2014-06-031-1/+3
| | | | Several socket-14.* tests failing there, and those that pass are very slow about it. Firewall or poor networking configuration may be playing a role.
* These edits make the tests socket-14.11.[01] stop hanging, but also introducedgp2014-06-021-6/+12
| | | a whole raft of test failures. WIP.
* Correct the interest masks in the Tcl_CreateFileHandler() calls in ↵dgp2014-05-311-5/+12
|\ | | | | | | PipeWatchProc(). When we are interested in both readable and writable events of a command pipeline channel, we only want the readable from the read end of the pipe, and the writable from the write end of the pipe.
| * Correct the interest masks in the Tcl_CreateFileHandler() calls indgp2014-05-311-5/+12
| | | | | | | | | | PipeWatchProc(). When we are interested in both readable and writable events of a command pipeline channel, we only want the readable from the read end of the pipe, and the writable from the write end of the pipe.
* | Refinements of FlushChannel() and its callers. Notably includes removal of ↵dgp2014-05-292-111/+66
|\ \ | |/ | | | | the flag BUFFER_READY.
| * Refinements of FlushChannel() and its callers. Notably includes removaldgp2014-05-282-97/+65
| |\ | | | | | | of the flag BUFFER_READY.
| | * Update comment to explain assumptions.dgp_flush_channeldgp2014-05-281-3/+10
| | |
| | * Further simplifications to FlushChannel(). This makes clear thedgp2014-05-282-81/+38
| | | | | | | | | BUFFER_READY flag serves no necessary purpose, so it is removed.
| | * Expand the IsBufferFull() macro to check non-NULL bufPtr..dgp2014-05-281-7/+10
| | |
| | * Increase size of test io-29.34 so that it more portably tests the case wheredgp2014-05-281-0/+9
| | | | | | | | | | | | the OS networking machinery gets backed up and blocks. Added several TODO comments on potential simplifications.
| | * Move code that can only matter in the first loop iteration out of the loop.dgp2014-05-271-13/+6
| |/
* | Merged the workarounds and fixes for wrapped executables on variousandreask2014-05-281-1/+85
|\ \ | |/ | | | | | | platforms into the trunk. For details see the merged revision and its ancestor.
| * 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.
* | Fix gcc warning (signed-unsigned compare)jan.nijtmans2014-05-211-1/+1
| |
| |
| \
*-. \ Rework the management of the CHANNEL_BLOCKED and CHANNEL_EOF flags, in ↵dgp2014-05-204-236/+178
|\ \ \ | | |/ | | | | | | particular not allowing them to leak between multiple layers of a stacked channel. Much common code refactored into ChanRead().
| | * Rework the management of the CHANNEL_BLOCKED and CHANNEL_EOF flags, indgp2014-05-202-159/+155
| | |\ | | | | | | | | | | | | 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
| | | |
| | | * 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-161-9/+37
| | | |\ | | | |/ | | |/|
| | | * Push the setting and clearing of CHANNEL_BLOCKED flag to the more innerdgp2014-05-151-11/+12
| | | | | | | | | | | | parts of the channel read machinery.
| * | | Same improvements to the zlib transform operations.dgp_trunk_flag_repairdgp2014-05-191-40/+5
| | | |
| * | | Simplify ReflectInput(). Also stop intruding on channel internals withdgp2014-05-191-36/+16
| | | | | | | | | | | | direct clearing of CHANNEL_EOF flag.
| * | | Simplify the inputProc of [testchannel transform].dgp2014-05-171-23/+18
| | | |
| * | | Merge flag changes. - Wow, no trouble with [chan push] demonstrated.dgp2014-05-161-39/+37
| | | |
| * | | merge trunkdgp2014-05-161-9/+37
| |\ \ \
| * \ \ \ Refactored much management of the BLOCKED and EOF flags into ChanRead() thendgp2014-05-131-99/+104
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | 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. zlib-8.5 also needed adjustment to reflect that an EOF set must come with an empty string read when flags are functioning properly.
| | * | | 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-131-79/+97
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | | | | |
| | | * | | Fixup ChanRead() header. Note (dstSize > 0) precondition.dgp2014-03-211-2/+8
| | | | | |
| | | * | | 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.
* | | | | | [47d66253c9]: "lsearch -sorted -integer" on 64bit system jan.nijtmans2014-05-173-38/+39
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | | | | | | ***POTENTIAL INCOMPATIBILITY*** Changes results of both [lsearch -integer] and [lsort -integer].
| * | | | | Possible fix for [47d66253c92197d30bff280b02e0a9e62f07cee2|47d66253c9]: ↵bug_47d66253c9jan.nijtmans2014-05-123-38/+39
| | | | | | | | | | | | | | | | | | | | | | | | "lsearch -sorted -integer" on 64bit system
* | | | | | merge 8.5dgp2014-05-161-9/+37
|\ \ \ \ \ \ | |_|/ / / / |/| | | | / | | |_|_|/ | |/| | |
| * | | | merge 8.5bug_io_32_11dgp2014-05-162-2/+11
| |\ \ \ \ | | | |/ / | | |/| |
| * | | | Merge completion of dgp-read-bytes branch.dgp2014-05-1614-1231/+849
| |\ \ \ \
| * | | | | Bug fix - accept consumption of the trailing newline in crlf with nodgp2014-05-161-9/+37
| | | | | | | | | | | | | | | | | | characters produced. Also delete false assertions.
* | | | | | Have the [chan push] machinery ReadRaw() directly into the argument to bedgp2014-05-121-14/+20
| |_|_|/ / |/| | | | | | | | | passed to the read method of the channel transformation command. Save a copy.
* | | | | [6d2f249a01] Handle a failure to comprehend half-way through the compilation ↵dkf2014-05-111-7/+17
| | | | | | | | | | | | | | | | | | | | of a chain of compileable ensembles.
* | | | | Repair another "impossible" test and the segfault it reveals.dgp2014-05-091-0/+2
| | | | |
* | | | | Test iocmd-32.1 is not "impossible" but after writing it properly it does ↵dgp2014-05-091-1/+11
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | segfault trying to use a deleted interp. Fixed.
| * | | | Test iocmd-32.1 is not "impossible" but after writing it properly itdgp2014-05-091-1/+11
| | | | | | | | | | | | | | | does segfault trying to use a deleted interp. Fixed.
| | | | |
| \ \ \ \
*-. \ \ \ \ Merge the reforms of dgp-trunk-read branch into trunk. (port of dgp-read-bytes)dgp2014-05-084-845/+602
|\ \ \ \ \ \ | | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 the reforms of dgp-read-bytes branch into 8.5+ releases.dgp2014-05-085-862/+704
| | |\ \ \ \ | | | | |/ / | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-083-9/+27
| | | |\ \ \ | | | |/ / / | | |/| | |
| | | * | | merge 8.5dgp2014-05-061-2/+13
| | | |\ \ \
| | | * \ \ \ Merge GotFlag() backport from 8.5. Conflicts galore!dgp2014-05-051-90/+82
| | | |\ \ \ \