Artifacts Associated With Ticket 3545367fffffffff
Ticket change [c3da87a42c] (rid 111741) by twylite on 2012-07-18 11:58:39:
- assignee initialized to: "patthoyts"
- cmimetype initialized to: "text/plain"
- comment initialized to:
Hi, Some DDE tests fail on WIN32 in a trunk build from 2012/07/18 using MSVC10, 32-bit tclsh running on Windows 7 64-bit. Details: Build setup (32-bit): 'Setting environment for using Microsoft Visual Studio 2010 x86 tools' Testing platform: Windows 7 (64-bit), PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 30 Stepping 5, GenuineIntel C:\User\Tcl_BUILD\cmake-2012\tcl-trunk>fossil pull Server: http://core.tcl.tk/tcl C:\User\Tcl_BUILD\cmake-2012\tcl-trunk>fossil update updated-to: f0f8f508748b68a589768e9e7df3beea28279df9 2012-07-17 13:08:18 UTC tags: trunk Build commands: set BUILDENV=VC10 set VER=86b3 set INSTALLDIR=%CD%\Release_%VER%_%BUILDENV% set OPTS=threads set TCLSH=%INSTALLDIR%\bin\tclsh86t.exe mkdir %INSTALLDIR% pushd win nmake /f makefile.vc release tcltest OPTS=%OPTS% CFG_ENCODING=\\\"utf-8\\\" INSTALLDIR=%INSTALLDIR% nmake /f makefile.vc install OPTS=%OPTS% CFG_ENCODING=\\\"utf-8\\\" INSTALLDIR=%INSTALLDIR% nmake /f makefile.vc test ==== winDde-3.3 DDE request locally FAILED ==== Contents of test case: set a "" dde execute TclEval self [list set a foo] dde request TclEval self a ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ---- errorInfo: remote server cannot handle this command while executing "dde request TclEval self a" ("uplevel" body line 4) invoked from within "uplevel 1 $script" ---- errorCode: TCL DDE NOCANDO ==== winDde-3.3 FAILED ==== winDde-3.5 DDE request locally FAILED ==== Contents of test case: set a "" dde execute TclEval self [list set a foo] dde request -binary TclEval self a ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ---- errorInfo: remote server cannot handle this command while executing "dde request -binary TclEval self a" ("uplevel" body line 4) invoked from within "uplevel 1 $script" ---- errorCode: TCL DDE NOCANDO ==== winDde-3.5 FAILED ==== winDde-4.3 DDE request remotely FAILED ==== Contents of test case: set a "" set name ch\xEDld-4.3 set child [createChildProcess $name] dde execute TclEval $name [list set a foo] set a [dde request TclEval $name a] dde execute TclEval $name {set done 1} update set a ---- Test generated error; Return code was: 1 ---- Return code should have been one of: 0 2 ---- errorInfo: remote server cannot handle this command while executing "dde request TclEval $name a" ("uplevel" body line 6) invoked from within "uplevel 1 $script" ---- errorCode: TCL DDE NOCANDO ==== winDde-4.3 FAILED - foundin initialized to: "obsolete: 8.6b3"
- is_private initialized to: "0"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- status initialized to: "Open"
- submitter initialized to: "twylite"
- subsystem initialized to: "28. dde Package"
- title initialized to: "DDE test failures"
- type initialized to: "Bug"
Ticket change [04ae3d587b] (rid 120041) by nijtmans on 2012-07-18 20:08:12:
- assignee changed to: "nijtmans"
- icomment:
I cannot reproduce this with mingw. Will try with MSVC. $ make test TESTFLAGS="-file winDde.test" ..... Only running test files that match: winDde.test Tests began at Wed Jul 18 15:04:33 CEST 2012 winDde.test Tests ended at Wed Jul 18 15:05:07 CEST 2012 all.tcl: Total 46 Passed 46 Skipped 0 Failed 0 Sourced 1 Test Files.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
Ticket change [a2e47d8d8d] (rid 109968) by nijtmans on 2012-07-27 03:52:41:
- assignee changed to: "patthoyts"
- icomment:
Now I can reproduce it. But only when using win/makefile.vc for building Tcl, with the configure-based win/Makefile.in build all is OK. Somehow, makefile.vc is not setting up the right environment for doing the dde tests: Patrick, did you notice this before?
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
Ticket change [fb9eff9cba] (rid 92096) by nijtmans on 2012-07-27 03:54:45:
- subsystem changed to: "53. Configuration and Build Tools"
Ticket change [d82fdd8dfd] (rid 107394) by nijtmans on 2012-07-27 05:39:00:
- icomment:
Patrick, In makefile.vc, I see the lines: test-core: setup $(TCLTEST) dlls $(CAT32) set TCL_LIBRARY=$(ROOT:\=/)/../library introduced in: http://core.tcl.tk/tcl/info/a983ca9a1f There's a "../" too much in there. (that still doesn't help this issue.....)
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [c26213040a] (rid 111477) by twylite on 2012-07-27 18:38:31:
- icomment:
Confirmed that this is unique to 'nmake test'. If I install the build and run from the install path (with corrections for running outside the build tree - see 3549770) then these tests pass.
- login: "twylite"
- mimetype: "text/plain"
- username: "twylite"
- icomment:
Ticket change [c2d536e825] (rid 111548) by twylite on 2012-07-30 22:31:01:
- icomment:
I can reproduce this bug by invoking tcltest.exe directly (i.e. not using 'nmake test') in both build and install environments, if and only if I include a '-loadfile' option to tests/all.tcl. Using -load with the appropriate 'package ifneeded' works fine. The moment I use -loadfile the three tests fail. I notice that makefile.vc uses -loadfile whereas Makefile.in uses -load, which would explain why the symptoms are specific to the nmake approach.
- login: "twylite"
- mimetype: "text/plain"
- subsystem changed to: "34. tcltest Package"
- username: "twylite"
- icomment:
Ticket change [7820d8ed19] (rid 89900) by nijtmans on 2012-08-01 21:56:18:
- assignee changed to: "nijtmans"
- closedate changed to: "2012-08-01T14:56:18"
- closer changed to: "nijtmans"
- icomment:
Found the problem, so assigning back to me. Fix committed to trunk. The problem was in line 1506 of tclWinDde.c, where a UTF-8 string was handled as UNICODE. As long as the string is followed by at least 3 null-bytes (the test only uses a one-character variable name), no-one would see the difference. Please, confirm that it's fixed now.
- login: "nijtmans"
- mimetype: "text/plain"
- resolution changed to: "Fixed"
- status changed to: "Pending"
- subsystem changed to: "28. dde Package"
- username: "nijtmans"
Ticket change [a6ee5f16bb] (rid 98692) by nijtmans on 2012-08-02 16:57:22:
- icomment:
Turns out that "dde poke" had the same bug, unfortunately we cannot write a test-case for that. Adapted more test-cases to use unicode variable names. Fixed now on trunk.
- login: "nijtmans"
- mimetype: "text/plain"
- username: "nijtmans"
- icomment:
Ticket change [a95a8b8a35] (rid 99138) by twylite on 2012-08-03 16:15:15:
- closedate changed to: "2012-08-03T09:15:15"
- closer changed to: "twylite"
- icomment:
Okay, now that I've pulled from the right place and built the right thing, it all appears to work. Thanks :) Building [cc7f2bab] with bug-3545363 merged in; compiler MSVC10; OPTS=threads,symbols; 32-bit tclsh running on Windows 7 64-bit. nmake test: all.tcl: Total 47 Passed 47 Skipped 0 Failed 0 tclsh86tg.exe ..\..\tcl\tests\all.tcl -file windde.test all.tcl: Total 47 Passed 47 Skipped 0 Failed 0
- login: "twylite"
- mimetype: "text/plain"
- status changed to: "Closed"
- username: "twylite"