[CDRIVER-3680] Valgrind OpenSSL tasks take over three hours to complete Created: 19/May/20  Updated: 28/Oct/23  Resolved: 20/Jan/23

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

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

Issue Links:
Related
is related to CDRIVER-3620 Audit evergreen matrix Closed
is related to CDRIVER-3317 Replace valgrind variant with Memory ... Closed

 Description   

Some thoughts:

  • Does the slowdown point to another issue with how we are running with Valgrind? test-valgrind-latest-server-auth-nosasl-openssl goes from ~10 minutes on some variants to exceeding 2 hours on the valgrind variant. Is a > 12x slowdown really normal?
  • I wonder if the slowdown is caused by OpenSSL code being run on Valgrind. If so, we could change these test tasks to compile with OpenSSL support (so we can test sessions, and other tests that require crypto) but connect over plain sockets.
  • Perhaps we can disable checks that ASAN already catches, and only leave the ones that ASAN does not catch (e.g. reads of uninitialized memory).


 Comments   
Comment by Ezra Chung [ 20/Jan/23 ]

Marking as fixed given current Evergreen configuration has widespread ASAN-enabled test coverage and Valgrind tasks have since been removed.
 

Comment by Ezra Chung [ 20/Jan/23 ]

PR: https://github.com/mongodb/mongo-c-driver/pull/1177
Commit: https://github.com/mongodb/mongo-c-driver/commit/c796edd584d7e49bbe165dc1a25e8f7a344009ce

Comment by Githook User [ 31/May/20 ]

Author:

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

Message: CDRIVER-3680 bump valgrind timeout
Branch: r1.16
https://github.com/mongodb/mongo-c-driver/commit/3bd1a9c015118e1caa3139080637e80aafc4b1c1

Comment by Githook User [ 25/May/20 ]

Author:

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

Message: CDRIVER-3680 bump valgrind timeout
Branch: r1.17
https://github.com/mongodb/mongo-c-driver/commit/2c1b6781fe8e243d3e5f3186b11e5b112a25993d

Comment by Githook User [ 20/May/20 ]

Author:

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

Message: CDRIVER-3680 bump valgrind timeout
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/a89b22344fa78fbdf797af70f84945f0c5635ffb

Comment by Kevin Albertson [ 19/May/20 ]

PR: https://github.com/mongodb/mongo-c-driver/pull/617

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