Skip to content

util::exception is never caught #7323

@MarcelloPerathoner

Description

@MarcelloPerathoner

Issue

There are ~93 places in the code where osrm::util::exception is thrown but not one place where it is caught.

This causes all osrm binaries to exit with SIGABRT and no logs of the error. Discovered while patching Cucumber.

Note: osrm::RuntimeError is a subclass of osrm::util::exception so it is not sufficient to catch that.

Steps to reproduce

$ grep -rE "throw .*util::exception" src include | wc -l
93
$ grep -rE "catch.*util::exception" src include | wc -l
0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions