Skip to content

segfault when processing .list files #55

Closed

Description

@yakra

Observed when testing out newly-added -U / --userlist capability.
Bash output not recorded. :(

Commandline:
./siteupdate -e -U yakra mapcat oscar -l logs -n nmp_merged -c stats -u /home/yakra/TravelMapping/UserData/list_files -w /home/yakra/TravelMapping/HighwayData

I did not observe a crash when -U yakra mapcat oscar was at the end of this commandline, but that is most likely only coincidence. The rest of the arguments were still processed OK in both cases; failure happened when Processing traveler list files

ISTR something like:
Processing traveler list files: yakra.list mapcat.listoscar.list with no space between mapcat.list & oscar.list.

After 20 repeated tries, I was not able to reproduce the bug.
Try cranking up the number of threads to increase the odds of collisions.

Activity

  1. yakra commented on Jan 25, 2019

    @yakra
    OwnerAuthor

    No spaces:
    [23.3] Processing traveler list files: master_son.list extremebandman.listbaugh17.list barefoot_driver.list
    observed, without actual crashes in script output. Assuming this is unrelated, an artifact of streaming stuff to std::cout without a mutex.

  2. yakra commented on Jan 26, 2019

    @yakra
    OwnerAuthor

    Makes sense to take the 3 current bugs chronologically:
    #44, #55, #54

  3. yakra commented on Jan 27, 2019

    @yakra
    OwnerAuthor

    8 threads: 1 crash in 100 runs (3lists.log & 3lists_full.log).
    crashlog.sh commandline: ./siteupdate -t 8 -U yakra mapcat oscar -l logs -n nmp_merged -c stats -u /home/yakra/TravelMapping/UserData/list_files -w /home/yakra/TravelMapping/HighwayData | tee siteupdate_m1.log
    No further shell output; it just dies.

  4. yakra commented on Jan 27, 2019

    @yakra
    OwnerAuthor

    if added to ReadListThread:
    no crashes in 100 runs, 8 threads.
    Closing issue.

  5. yakra commented on Jan 27, 2019

    @yakra
    OwnerAuthor

    Related issues:

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

  6. yakra commented on Jun 4, 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.

  7. reopened this on Jun 4, 2019
  8. yakra commented on Jun 11, 2019

    @yakra
    OwnerAuthor

    lab1, hung up on attempt 0133

    [dan@lab crashlogs]$ ./report.sh
    0019.log: [22.5] Computing stats..........
    0024.log: [22.4] Computing stats.......
    0027.log: [22.6] Computing stats........
    0053.log: [22.6] Computing stats........
    0054.log: [17.0] Creating route hash table for list processing:
    
    0086.log: [23.8] Creating per-traveler stats logs and augmenting data structure........
    0094.log: [22.3] Computing stats........
    0107.log: [22.5] Computing stats.......
    
    cout << et.et() << "Processing traveler list files:";
    // -->
    cout << et.et() << "Processing traveler list files:" << std::flush;

    From there, the new printfs don't flush stdout. Convert back to std::cout for the sake of simplicity of DIFFs. Change << -> +; add std::to_string as needed.

  9. 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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions