Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prevent calling path_map_match when path_edges are empty. #2219

Merged
merged 1 commit into from Feb 7, 2020

Conversation

yuzheyan
Copy link
Contributor

@yuzheyan yuzheyan commented Feb 7, 2020

Issue

This is a duck fix to avoid seg fault. When the path edges are empty but there are valid match results, trace route attributes will fail since it try to access the path edges vector.

There are deeper issue to investigate other than prevent the seg fault happen. Working on the investigation now (why we return valid match results without path edges in the shortest path finding)

Copy link
Member

@kevinkreiser kevinkreiser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah lets do the real fix in a separate PR. thanks!

@kevinkreiser kevinkreiser merged commit 4d0a8d2 into master Feb 7, 2020
@yuzheyan yuzheyan deleted the Segment_fault_walk_around branch February 7, 2020 16:25
yuzheyan added a commit that referenced this pull request Feb 7, 2020
* master:
  prevent calling path_map_match when path_edges are empty. (#2219)
  Disable alt_name processing (#2213)
  nomenclature update for intersection geom index
  serialize transition time at intersections (#2207)
  Add guidance view capability (#2209)
  RAD scripts fixes (#2199)
  Add multi run RAD script (#2206)
yuzheyan added a commit that referenced this pull request Feb 11, 2020
* master:
  missed leg weight to 3 decimal places (#2227)
  Zero Distance Match Leg Causes Nan Duration (#2229)
  Fixed the sharp turn phrase (#2226)
  Cleanup in test
  Cleanup whitespace in directions.proto
  Cleanup unused argument etp in narrativebuilder
  Code review feedback: test vector references, style nit
  Update to front and back.
  j/k: move TrimBuild to other geometry utilities.
  Test coverage, export TrimShape into header namespace; check for empty shape.
  Strip const from primitive types.
  Fix pointer invalidation bug in TrimShape.
  prevent calling path_map_match when path_edges are empty. (#2219)
@yuzheyan yuzheyan mentioned this pull request Feb 27, 2020
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants