Tk Library Source Code

View Ticket
Login
Ticket UUID: 2972571
Title: comm send fails when the command ends in a backslash
Type: Bug Version: None
Submitter: tomkiti Created on: 2010-03-18 12:48:34
Subsystem: comm Assigned To: andreas_kupries
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2010-09-16 02:50:04
Resolution: Fixed Closed By: andreas_kupries
    Closed on: 2010-09-15 19:50:04
Description:
The "comm::comm send" command fails when the sent command ends in a backslash character. This can happen when the last argument to a command is a binary string that ends in 0x5C (the backslash character). In this case, the "send" command blocks indefinitely. This can easily be replicated by sending the command {puts \\}.

It looks like the problem is in the ::comm::Word0 function, which returns the error "no complete word found/1". This problem only exists in comm-4.6.1. It does not exist in comm-4.6.
User Comments: andreas_kupries added on 2010-09-16 02:50:04:

allow_comments - 1

Fixed. The string internally (seen by the receiver) is "{puts \\}" and not handling \\ on its own caused misdetection of a "\}" at the end, instead of the proper end of the word.

comm version 4.6.2.