Skip to content

System deadlock - reopen ticket #173

Description

@tamir-laminar

I can't re-open tickets, but I noticed a system deadlock bug that was partially handled here:

#112

The bug is when the file is corrupted (or we have some bug in the underline library), and we get panic:

panic when reading doc format: runtime error: slice bounds out of range [:-1]

we are in deadlock (waiting for channel that nothing writes to it).

If you look at the code:

	go func() {
		defer func() {
			if e := recover(); e != nil {
				log.Printf("panic when reading doc format: %v", e)
			}
		}()

in the case of panic we don't write to mc channel, casing a dead lock.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions