commit [8aca9a8e96] causes test failures
Closed / Duplicate3601260fffffffffffffffffffffffffffffffffCreated 14 years agoUpdated 14 years ago
Descriptionplain2013-01-17 14:54:55
Running env.test on Win32 (core-8-5-branch) gives following errors, see below.
The strange thing is:
- Although merged to "turnk" already, the problem doesn't appear on trunk, only on core-8-5-branch.
- Only win32 shows the problem, on UNIX there is no problem.
So, I suspect that the patch is OK, but it exposes another
variable-related bug on Win32. What to do? The simplest
is to revert the change on core-8-5-branch (place back
the previous tclVar.c, and then
merge-mark to trunk.
Regards,
Jan Nijtmans
======================================================
Tests began at Thu Jan 17 15:45:51 CET 2013
env.test
==== env-2.1 adding environment variables FAILED
==== Contents of test case:
getenv
---- Result was:
child killed: segmentation violation
---- Result should have been (exact matching):
==== env-2.1 FAILED
==== env-2.2 adding environment variables FAILED
==== Contents of test case:
getenv
---- Result was:
child killed: segmentation violation
---- Result should have been (exact matching):
NAME1=test string
==== env-2.2 FAILED
==== env-2.3 adding environment variables FAILED
==== Contents of test case:
getenv
---- Result was:
child killed: segmentation violation
---- Result should have been (exact matching):
NAME1=test string
NAME2=more
==== env-2.3 FAILED
==== env-2.4 adding environment variables FAILED
==== Contents of test case:
getenv
---- Result was:
child killed: segmentation violation
---- Result should have been (exact matching):
NAME1=test string
NAME2=more
XYZZY=garbage
==== env-2.4 FAILED
==== env-3.1 changing environment variables FAILED
==== Contents of test case:
set result [getenv]
unset env(NAME2)
set result
---- Result was:
child killed: segmentation violation
---- Result should have been (exact matching):
NAME1=test string
NAME2=new value
XYZZY=garbage
==== env-3.1 FAILED
==== env-4.1 unsetting environment variables FAILED
==== Contents of test case:
set result [getenv]
unset env(NAME1)
set result
---- Result was:
child killed: segmentation violation
---- Result should have been (exact matching):
NAME1=test string
XYZZY=garbage
==== env-4.1 FAILED
==== env-4.2 unsetting environment variables FAILED
==== Contents of test case:
set result [getenv]
unset env(XYZZY)
set result
---- Result was:
child killed: segmentation violation
---- Result should have been (exact matching):
XYZZY=garbage
==== env-4.2 FAILED
==== env-4.3 setting international environment variables FAILED
==== Contents of test case:
set env(\ua7) \ub6
getenv
---- Result was:
child killed: segmentation violation
---- Result should have been (exact matching):
\u00a7=\u00b6
==== env-4.3 FAILED
==== env-4.4 changing international environment variables FAILED
==== Contents of test case:
set env(\ua7) \ua7
getenv
---- Result was:
child killed: segmentation violation
---- Result should have been (exact matching):
\u00a7=\u00a7
==== env-4.4 FAILED
==== env-4.5 unsetting international environment variables FAILED
==== Contents of test case:
set env(\ub6) \ua7
unset env(\ua7)
set result [getenv]
unset env(\ub6)
set result
---- Result was:
child killed: segmentation violation
---- Result should have been (exact matching):
\u00b6=\u00a7
==== env-4.5 FAILED
Test file error: child killed: segmentation violation
Tests ended at Thu Jan 17 15:45:52 CET 2013
all.tcl: Total 0 Passed 0 Skipped 0 Failed 0
Sourced 1 Test Files.
nijtmansplain2013-01-17 21:57:36
See branch "bug-3601260", this demonstrates that reverting [8aca9a8e96] fixes this.
nijtmansplain2013-01-24 21:57:43
Problem still present in core-8-5-branch. Fix (by reverting most recent change in tclVar.c) in branch "bug-3601260".
dgpplain2013-01-24 22:34:25
can the segfault be caught to produce a stack trace?
dgpplain2013-01-24 22:37:24
Looks like running `tcltest.exe $printenvScript` ought to reliably do it.
nijtmansplain2013-01-24 23:14:56
When compiling with debug symbols, no crash
occurs, but still the tests fail:
======================================
Tests began at Thu Jan 24 17:09:32 CET 2013
env.test
==== env-2.1 adding environment variables FAILED
==== Contents of test case:
getenv
---- Result was:
couldn't read file "0": no such file or directory
---- Result should have been (exact matching):
==== env-2.1 FAILED
==== env-2.2 adding environment variables FAILED
==== Contents of test case:
getenv
---- Result was:
couldn't read file "0": no such file or directory
---- Result should have been (exact matching):
NAME1=test string
==== env-2.2 FAILED
==== env-2.3 adding environment variables FAILED
==== Contents of test case:
getenv
---- Result was:
couldn't read file "0": no such file or directory
---- Result should have been (exact matching):
NAME1=test string
NAME2=more
==== env-2.3 FAILED
==== env-2.4 adding environment variables FAILED
==== Contents of test case:
getenv
---- Result was:
couldn't read file "0": no such file or directory
---- Result should have been (exact matching):
NAME1=test string
NAME2=more
XYZZY=garbage
==== env-2.4 FAILED
==== env-3.1 changing environment variables FAILED
==== Contents of test case:
set result [getenv]
unset env(NAME2)
set result
---- Result was:
couldn't read file "0": no such file or directory
---- Result should have been (exact matching):
NAME1=test string
NAME2=new value
XYZZY=garbage
==== env-3.1 FAILED
==== env-4.1 unsetting environment variables FAILED
==== Contents of test case:
set result [getenv]
unset env(NAME1)
set result
---- Result was:
couldn't read file "0": no such file or directory
---- Result should have been (exact matching):
NAME1=test string
XYZZY=garbage
==== env-4.1 FAILED
==== env-4.2 unsetting environment variables FAILED
==== Contents of test case:
set result [getenv]
unset env(XYZZY)
set result
---- Result was:
couldn't read file "0": no such file or directory
---- Result should have been (exact matching):
XYZZY=garbage
==== env-4.2 FAILED
==== env-4.3 setting international environment variables FAILED
==== Contents of test case:
set env(\ua7) \ub6
getenv
---- Result was:
couldn't read file "0": no such file or directory
---- Result should have been (exact matching):
\u00a7=\u00b6
==== env-4.3 FAILED
==== env-4.4 changing international environment variables FAILED
==== Contents of test case:
set env(\ua7) \ua7
getenv
---- Result was:
couldn't read file "0": no such file or directory
---- Result should have been (exact matching):
\u00a7=\u00a7
==== env-4.4 FAILED
==== env-4.5 unsetting international environment variables FAILED
==== Contents of test case:
set env(\ub6) \ua7
unset env(\ua7)
set result [getenv]
unset env(\ub6)
set result
---- Result was:
couldn't read file "0": no such file or directory
---- Result should have been (exact matching):
\u00b6=\u00a7
==== env-4.5 FAILED
dgpplain2013-01-30 20:33:00
dgpanyone on Windows can repro 3601260 ? dgpShould just appear with running env.test on 8.5 branch tip. ... jdcdgp: env.test result: env.test: Total 20 Passed 20 Skipped 0 Failed 0 dgpthanks, jdc! dgpNo repro then? Mysterious. jdcnot in my setup with nmake build + vc10 32 bit dgphmmm... wonder if it needs the context of a full `make test` to express? jdci'm running a full tests, hold on ... jdcno problem, want me to try VC9 / VC10 64 bit/ VC11 ? dgpI'll copy your results to the ticket.
dgpplain2013-01-30 20:45:26
dgpPerhaps a --enable-symbols=mem build might trigger more reliably? jdctrying ... jdcworking fine compiled with OPTS=symbols STATS=memdbg
nijtmansplain2013-01-30 20:53:59
Tried it with 32-bit and 64-bit mingw-w64 compilers as provided by Cygwin:
$ x86_64-w64-mingw32-gcc --version
x86_64-w64-mingw32-gcc (GCC) 4.5.3
$ i686-w64-mingw32-gcc --version
i686-w64-mingw32-gcc (GCC) 4.5.3
Both have the same problem. I will try it with later
mingw(-64) compilers as well.
Changing the line:
CFLAGS_OPTIMIZE= -O2 -fomit-frame-pointer
to
CFLAGS_OPTIMIZE= -O0 -fomit-frame-pointer
doesn't help, so it doesn't look like an optimizer bug.
;-(
dgpplain2013-02-04 21:19:22
The mysteries have been resolved over in 3602706. Pursuing fixes there.
dgpplain2013-02-04 21:19:23
allow_comments - 1
Log in (anonymous is fine) to add a comment.