Tcl Source Code

Hex Artifact Content
Login

Artifact 51a8f99e04b5e91b8c96364feb9ef65a6a2b0757:

Attachment "ttx" to ticket [593810ffff] added by andreas_kupries 2002-08-21 02:06:45.
0000: 23 6d 65 6d 6f 72 79 20 76 61 6c 69 64 61 74 65  #memory validate
0010: 20 6f 6e 0a 70 61 63 6b 61 67 65 20 72 65 71 75   on.package requ
0020: 69 72 65 20 54 68 72 65 61 64 0a 0a 73 65 74 20  ire Thread..set 
0030: 74 20 5b 74 68 72 65 61 64 3a 3a 63 72 65 61 74  t [thread::creat
0040: 65 5d 0a 70 75 74 73 20 74 68 72 65 61 64 3d 24  e].puts thread=$
0050: 74 0a 0a 74 68 72 65 61 64 3a 3a 73 65 6e 64 20  t..thread::send 
0060: 24 74 20 7b 73 65 74 20 78 20 5b 73 6f 63 6b 65  $t {set x [socke
0070: 74 20 6c 6f 63 61 6c 68 6f 73 74 20 73 6d 74 70  t localhost smtp
0080: 5d 7d 0a 74 68 72 65 61 64 3a 3a 73 65 6e 64 20  ]}.thread::send 
0090: 24 74 20 7b 70 75 74 73 20 24 78 20 6c 69 6e 65  $t {puts $x line
00a0: 20 3b 20 66 6c 75 73 68 20 24 78 7d 09 3b 20 23   ; flush $x}.; #
00b0: 20 43 52 41 53 48 0a                              CRASH.