[CDRIVER-2319] Crash in sasl_client_new Created: 09/Oct/17  Updated: 28/Oct/23  Resolved: 02/Nov/17

Status: Closed
Project: C Driver
Component/s: auth, tests
Affects Version/s: 1.9.0
Fix Version/s: 1.9.0

Type: Bug Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The GSSAPI test has started failing. The first failure is here:

https://evergreen.mongodb.com/version/mongo_c_driver_f4e0214e8b52759527bbb3d97dc63a722a720e0a

Seems caused by that commit, indeed: that commit altered the code path that mongoc-ping.c uses to run a command, and the test uses mongoc-ping.c to test GSSAPI auth.

I'm commenting-out the test in run-auth-tests.sh, uncomment it once this is fixed.

It only crashes on Linux when SASL is enabled, and both SSL and automatic cleanup are disabled. The configure line is like:

cmake -DENABLE_SSL=OFF -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF .



 Comments   
Comment by A. Jesse Jiryu Davis [ 02/Nov/17 ]

It's related to the SASL global logging callback. This has been very difficult to diagnose and we haven't really determined the cause of the crash. Since this logging is only useful if MONGOC_ENABLE_TRACING is defined at compile time, and that is a developer feature, it's easiest to just not register a logging callback at all.

Comment by Githook User [ 02/Nov/17 ]

Author:

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

Message: Revert "CDRIVER-2319 disable GSSAPI test"

This reverts commit db0129bfe0243cd7671d0a5b3682982d646049e1.
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/8d993bd079b1eb691ac4fa1a4a0423403a18838c

Comment by Githook User [ 02/Nov/17 ]

Author:

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

Message: CDRIVER-2319 don't use SASL logging callback

This was only effective if tracing was enabled at compile time, and it
had begun causing very difficult-to-diagnose crashes when automatic
init and cleanup was disabled (which is going to be the default config
some day).
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/f4414503c6a82af264728954f270631da5747722

Comment by Githook User [ 09/Oct/17 ]

Author:

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

Message: CDRIVER-2319 disable GSSAPI test
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/db0129bfe0243cd7671d0a5b3682982d646049e1

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