Skip to content

Must not abort if exception thrown in threadpool #123

Closed

Description

@springmeyer

There are many functions being used in the threadpool that might throw. Whenever this is the case there MUST be a try/catch around the async code. Otherwise a C++ exception will go unhandled and lead to an abort (aka terminate) which will stop the entire node process similar to a crash. This should never happen and bugs like this need to be avoided. Another case of this try/catch going missing is mapbox/carmen-cache#56.

I'm creating this issue because I just hit a case where glyphs.SerializeAsString() threw and caused an abort inside RangeAsync.

Activity

  1. changed the title [-]Will abort if exception throw in threadpool[/-] [+]Must not abort if exception thrown in threadpool[/+] on Nov 22, 2016
  2. added a commit that references this issue on Nov 23, 2016
  3. springmeyer commented on Mar 2, 2017

    @springmeyer
    ContributorAuthor

    Handled by #128

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