Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-10-29
00:22 • Closed ticket [1055676fff]: Crash in test suite plus 7 other changes artifact: cc06349932 user: msofer
2004-10-28
22:29 • Ticket [1055676fff]: 4 changes artifact: a060d52698 user: dgp
22:25 • Ticket [1055676fff]: 4 changes artifact: 44532bde48 user: dkf
21:58 • Ticket [1055676fff]: 4 changes artifact: 75e29cbbdc user: dgp
21:58 • Add attachment 1055676.patch to ticket [1055676fff] artifact: 948ae1277f user: dgp
21:58 • Ticket [1055676fff] Crash in test suite status still Open with 5 other chang... artifact: ff94d036d1 user: dgp
21:44 • Ticket [1055676fff]: 4 changes artifact: 94d10bf1ca user: dgp
05:44 • Ticket [1055676fff]: 4 changes artifact: a51839e05c user: dkf
05:28 • Ticket [1055676fff]: 6 changes artifact: b493a352fe user: dkf
2004-10-27
22:03 • New ticket [1055676fff]. artifact: 6bc185c6ff user: dkf

Crash in test suite

Closed / Fixed1055676fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-10-27 22:03:35
Tcl HEAD on Fedora Core/Athlon, configured
--enable-symbols=all

make test "TESTFLAGS=-singleproc 1 -file [rs]*.test"
... leads to (no other complaints) ...
stack.test

Bad stack top -586884 at pc 949 in TclExecuteByteCode
(min 3, max 12)
 executing foreach file [lsort [GetMatchingFiles]] {
        set tail [file tail $file]
        puts [outputChannel] $tail...
TclExecuteByteCode execution failure: bad stack top
make: *** [test] Error 134

Cannot duplicate by just testing all the r*.tests or
just the s*.tests. :^(
dkfplain2004-10-28 05:28:58
Logged In: YES 
user_id=79902

Narrowed it down to:
make test "TESTFLAGS=-singleproc 1 -file 'rename.test
stack.test'"
Seem to require *both* test files to fail.
dkfplain2004-10-28 05:44:45
Logged In: YES 
user_id=79902

Still crashes if I add '-match stack-3.1' to that command
line! None of the tests in rename.test (or the other tests
in stack.test) need to be executed for stack.test to fail
dgpplain2004-10-28 21:44:09
Logged In: YES 
user_id=80530

rename.test includes

  rename list l.new

outside of any test.  Since this is
a rename of a compiled command,
the compile Epoch is bumped.

Because of -singleproc 1, this
invalidates the bytecode of the
tcltest::runAllTests proc, and
the next INST_START_CMD
bytecode causes bytecode execution
to be replaced by direct script evaluation.
The crash happens after that.
dgpplain2004-10-28 21:58:09
Logged In: YES 
user_id=80530

here's the patch that fixes
the problem.
dgpplain2004-10-28 21:58:10
File Added - 106829: 1055676.patch
dkfplain2004-10-28 22:25:15
Logged In: YES 
user_id=79902

Cool.  Create a test that exercises the problem (and
demonstrates that the fix works) and apply away. :^)
dgpplain2004-10-28 22:29:20
Logged In: YES 
user_id=80530

Yeah, get right on that, miguel.
msoferplain2004-10-29 00:22:25
Logged In: YES 
user_id=148712

Thanks Don! New test execute-8.3 and patch committed to HEAD.
Log in (anonymous is fine) to add a comment.

Attachments: