Skip to content

rare crash while reading WPT files #56

Closed

Description

@yakra

Logs produced while troubleshooting #44 showed evidence of crashes while Reading waypoints for all routes.
This happened while running siteupdate 100 times via a shell script. I didn't catch it in the act, and didn't see what (if anything) Bash had to say.

Noteworthy:
in void read_wpts_for_highway_system:
all_wpt_files->erase(path + "/" + r->region->code + "/" + r->system->systemname + "/" + r->root + ".wpt"); happens without a mutex

Edit: Per the comment in siteupdate.cpp when "Finding unprocessed wpt files.", there's some monkey business going on here, and a mutex is needed.

Activity

  1. yakra commented on Jan 24, 2019

    @yakra
    OwnerAuthor

    Caught it in the act. Bash says nothing.

    Edit: This while working on implementing #57. 2 trials out of 10. Either these changes were enough to make it more probable, or it's just luck.

  2. yakra commented on Jan 25, 2019

    @yakra
    OwnerAuthor

    After adding awf_mtx, no crashes while reading WPTs in 400 consecutive runs (vice 7 before adding awf_mtx).
    Number of unprocessed WPTs reported correctly 400 times.
    Going to call this closed, but I still have #44, #54 & #55 to contend with.

  3. yakra commented on Jan 27, 2019

    @yakra
    OwnerAuthor

    No problems observed, but adding in an if statement to check for empty list, as done with other threads.
    Consider this issue re-opened & re-closed. :)

  4. yakra commented on Jan 27, 2019

    @yakra
    OwnerAuthor

    Related issues:

    #56 ReadWptThread
    #44 NmpMergedThread
    #55 ReadListThread
    #58 ConcAugThread
    #54 ComputeStatsThread
    #59 UserLogThread

  5. yakra commented on Jun 7, 2019

    @yakra
    OwnerAuthor

    It's back!
    Or rather, nothing has changed here in a while IIRC, but running with 16 threads on lab2 gives more opportunity to observe this.
    No core dump or any text in bash to let us know what's going on.

  6. reopened this on Jun 7, 2019
  7. yakra commented on Jun 23, 2019

    @yakra
    OwnerAuthor

    Changed from a "modify the list" technique to a "modify the iterator" technique.
    Siteupdate has now been running in a loop on lab2 for > 38 hours & 1313 passes now, with no crashes. Going to re-close this.
    See #58 (comment) and forum post.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions