Skip to content

Deadlock if invalid format of stop words #12

Open
@mbyd916

Description

@mbyd916

For stop words, valid format is : one stop word in each line.

Extra spaces followed stop word may cause error, and will be sent to errCh (unbuffered channel). Refers to dictionary.go#L38.
But dictionary.go#L68 still waits for tokenCh, therefore dictionary.go#L70 can not receive from errCh, finally DeadLock occurs.

There is the same problem, if error(dictionary.go#L49 ) occurs.

stop word followed by extra space

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions