[CDRIVER-930] Authentication timeout test failing on Windows 32-bit CMake Visual Studio 2013 Created: 13/Oct/15  Updated: 18/Nov/15  Resolved: 19/Oct/15

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.3.0
Fix Version/s: 1.3.0-beta0

Type: Bug Priority: Critical - P2
Reporter: Hannes Magnusson Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

 [2015/10/12 16:56:02.792] Begin /Client/authenticate_timeout
 [2015/10/12 16:56:22.793] sh: line 24:  5116 Segmentation fault      ./Debug/test-libmongoc.exe -d -f -p
 [2015/10/12 16:56:22.793] set +o errexit; cat server.log; mongo-orchestration stop;



 Comments   
Comment by Githook User [ 19/Oct/15 ]

Author:

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

Message: CDRIVER-930 skip auth test if built without auth
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/d3c5b2b833e6ca9b019321ff3d1476cf150c5626

Comment by A. Jesse Jiryu Davis [ 19/Oct/15 ]

When I implemented test_mongoc_client_authenticate_timeout I forgot I must skip it if auth is not compiled in (which it is not on our win32 build variant, since a 32-bit OpenSSL build is not provided for us there by the build team).

In test_mongoc_client_authenticate_timeout:

  • we give the driver an auth URI
  • start a "ping" command
  • wait for the mock server to receive "saslStart"
  • "ping" fails before sending any message, because the driver can't auth without SSL compiled in
  • we do request = mock_server_receives_command (server, "admin") but no such command arrives
  • we check request->command_name but request is NULL
  • test segfaults

Not a driver bug, just need to skip the test if SSL is not compiled in, the same as other auth tests.

Comment by A. Jesse Jiryu Davis [ 19/Oct/15 ]

We simply don't build with auth on Windows 32-bit (lack of OpenSSL on build machines), so we have to skip the auth timeout test. That's my fault, I've included a fix for the test in my CDRIVER-906 review.

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