[CDRIVER-884] Superfluous "still reachable" blocks from the test suite Created: 28/Sep/15  Updated: 19/Oct/16  Resolved: 29/Sep/15

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.2-beta1
Fix Version/s: 1.2-rc0

Type: Bug Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Hannes Magnusson
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Running the test suite under valgrind will report endless of "still reachable" blocks.

These are caused by not cleaning up the test suite upon forked child exit.

There are also some warnings from sasl that we can't do anything about and should just ignore:

==17989== 32 bytes in 1 blocks are still reachable in loss record 515 of 581         
==17989==    at 0x4C2DC90: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==17989==    by 0x632769E: _dlerror_run (dlerror.c:141)                              
==17989==    by 0x6327060: dlopen@@GLIBC_2.2.5 (dlopen.c:87)                         
==17989==    by 0x611D333: _sasl_get_plugin (in /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25)
==17989==    by 0x611D611: _sasl_load_plugins (in /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25)
==17989==    by 0x6112030: sasl_client_init (in /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25)
==17989==    by 0x4E607EE: _mongoc_do_init (mongoc-init.c:91)                        
==17989==    by 0x58D036A: __pthread_once_slow (pthread_once.c:114)                  
==17989==    by 0x4E6080D: mongoc_init (mongoc-init.c:119)                           
==17989==    by 0x4E60847: _mongoc_init_ctor (mongoc-init.c:162)                     
==17989==    by 0x40105B9: call_init.part.0 (dl-init.c:72)                           
==17989==    by 0x40106CA: call_init (dl-init.c:30)                                  
==17989==    by 0x40106CA: _dl_init (dl-init.c:120)   



 Comments   
Comment by Hannes Magnusson [ 29/Sep/15 ]

Not sure what happened to the Github comments. But here are the commits:

https://github.com/mongodb/mongo-c-driver/commit/67997e6e2ffa4652f64cf2d83765c621111635ee
https://github.com/mongodb/mongo-c-driver/commit/8d50a48a441e3913aea4474365ad9f066181305f

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