Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2006-03-29
12:25 • Closed ticket [1427570fff]: interpreter crash in winpipe.c with threaded code</i... artifact: aba4dc5ff4 user: hobbs
2006-03-10
11:42 • Ticket [1427570fff]: 1 change artifact: a4b03307f8 user: dgp
2006-02-20
01:05 • Ticket [1427570fff]: 4 changes artifact: cab4724efa user: welcomx
2006-02-09
01:37 • Ticket [1427570fff]: 7 changes artifact: 1754590a76 user: hobbs
01:32 • Ticket [1427570fff]: 4 changes artifact: a6b59da861 user: souellet_rambo
01:03 • Ticket [1427570fff]: 4 changes artifact: 10200b7802 user: souellet_rambo
01:03 • Add attachment test_crash2.tcl to ticket [1427570fff] artifact: 60919ae89d user: souellet_rambo
01:03 • Open ticket [1427570fff]: interpreter crash in winpipe.c with threaded code ... artifact: 4ada0ee1d6 user: souellet_rambo
00:22 • Pending ticket [1427570fff]. artifact: 10e172c3c4 user: hobbs
2006-02-08
21:36 • Ticket [1427570fff]: 4 changes artifact: 3bd94ef172 user: souellet_rambo
21:36 • Add attachment test_crash.tcl to ticket [1427570fff] artifact: 300438fd01 user: souellet_rambo
14:36 • New ticket [1427570fff] interpreter crash in winpipe.c with threaded code. artifact: f103980462 user: souellet_rambo

interpreter crash in winpipe.c with threaded code

Closed / Fixed1427570fffffffffffffffffffffffffffffffffCreated 21 years agoUpdated 21 years ago
Descriptionplain2006-02-08 14:36:35
% puts $tcl_patchLevel
8.4.12
% array get tcl_platform
osVersion 5.1 byteOrder littleEndian threaded 1 machine
intel platform windows os {Windows NT} user souellet
wordSize 4

The following code often cause the interpreter to crash
in winpipe.c at line 913 or 2529.

I am running on Windows XP. The crash does not happend
on unix.
souellet_ramboplain2006-02-08 21:36:45
File Added - 166657: test_crash.tcl
hobbsplain2006-02-09 00:22:33
Logged In: YES 
user_id=72656

I have no problem using ActiveTcl 8.4.12.0:
(using tkcon, if that makes a difference)

(bin) 23 % source C:/temp/dl/test_crash.tcl
5
2
7
4
6
1
10
8
15 9
11 3
13
18
16
12 17
14
20
19
(bin) 24 % source C:/temp/dl/test_crash.tcl
1
2
3
4
6
5
7
13
10
8
9
11
20
12 16
19
14
18
15
17
(bin) 24 % source C:/temp/dl/test_crash.tcl
1
2
4
3
7
6
10
11
9
8
12
14 16 5
13 17 19 20
15 18
souellet_ramboplain2006-02-09 01:03:56
Logged In: YES 
user_id=1447062

It seem it doesn't happens all that often. I modified the
test  program. This new version runs until it crashs, it
usually takes less than 15 sec.
souellet_ramboplain2006-02-09 01:03:57
File Added - 166678: test_crash2.tcl
souellet_ramboplain2006-02-09 01:32:48
Logged In: YES 
user_id=1447062

I just tried it with tkcon, it does not happens.
Try it with tclsh:

tclsh test_crash2.tcl
hobbsplain2006-02-09 01:37:23
Logged In: YES 
user_id=72656

Confirmed crash with panic:

Tcl_Release couldn't find reference for 0xf18860
welcomxplain2006-02-20 01:05:14
Logged In: YES 
user_id=1456166

sdhn       tyyy yt yz
dgp Ticket [1427570fff]: 1 change [History diff]2006-03-10 11:42:43
hobbsplain2006-03-29 12:25:51
Logged In: YES 
user_id=72656

This was a Thread bug in AppExitHandler - it was looping on
exit, accessing the next item in a list that we had just
spliced out and freed.  Fixed post-2.6.3.
Log in (anonymous is fine) to add a comment.

Attachments: