[CDRIVER-2538] Benchmark build occasionally segfaults Created: 08/Mar/18  Updated: 28/Oct/23  Resolved: 23/Apr/18

Status: Closed
Project: C Driver
Component/s: tests
Affects Version/s: None
Fix Version/s: 1.10.0

Type: Bug Priority: Major - P3
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The following benchmark builds ended with segfaults:
https://evergreen.mongodb.com/task/mongo_c_driver_perf_c_driver_benchmark_mongo32_BenchMarkTests_8744119d0293908358f3aec5e95b5534ca0c47c0_18_03_06_17_05_21
https://evergreen.mongodb.com/task/mongo_c_driver_perf_c_driver_benchmark_mongo32_BenchMarkTests_30085af2124de68fd5ad714309f3ea2688489dee_18_03_02_02_42_22

Unfortunately they aren't consistently breaking, and I didn't have any luck reproducing them.

Let's add a debug build side-by-side with backtracing enabled so the next time it fails we can get more info.



 Comments   
Comment by Githook User [ 23/Apr/18 ]

Author:

{'email': 'jesse@emptysquare.net', 'username': 'ajdavis', 'name': 'A. Jesse Jiryu Davis'}

Message: Merge pull request #1 from kevinAlbs/master

CDRIVER-2538 change assert to BSON_ASSERT
Branch: master
https://github.com/mongodb/mongo-c-driver-performance/commit/b1b306369d0bfbfb3831b5b1e31b1b17eb5c5413

Comment by Githook User [ 23/Apr/18 ]

Author:

{'email': 'kevin.albertson@10gen.com', 'username': 'kevinAlbs', 'name': 'Kevin Albertson'}

Message: CDRIVER-2538 change assert to BSON_ASSERT
Branch: master
https://github.com/mongodb/mongo-c-driver-performance/commit/582ef26ae9a5baf5770d58c8da9e841ccc424546

Comment by Githook User [ 23/Apr/18 ]

Author:

{'email': 'kevin.albertson@10gen.com', 'username': 'kevinAlbs', 'name': 'Kevin Albertson'}

Message: CDRIVER-2538 fix benchmark build, remove debug
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/0f59d75917392957b825862c0f8c3b80e1da24bf

Comment by Kevin Albertson [ 19/Apr/18 ]

Alright, this debug benchmark isn't catching anything. Next steps:

  • revert the the changes above and remove the debug benchmark
  • check if a stack trace on the release will at least give us function names. If so, then enable it.
  • possibly have the task upload the core dump
  • locally build and test with ASAN/UBSAN to see if that gives any helpful info
Comment by Githook User [ 09/Mar/18 ]

Author:

{'email': 'kevin.albertson@10gen.com', 'name': 'Kevin Albertson', 'username': 'kevinAlbs'}

Message: CDRIVER-2538 add debug benchmark build
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/5cdd0b72001bd53b0d01c188c39d9e4dfdddc2ac

Generated at Wed Feb 07 21:15:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.