[MXS-384] Command line option to suppress dlclose at end of run Created: 2015-09-25  Updated: 2017-12-01  Resolved: 2017-07-27

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: 1.2.0
Fix Version/s: 2.2.0

Type: New Feature Priority: Minor
Reporter: martin brampton (Inactive) Assignee: Esa Korhonen
Resolution: Fixed Votes: 0
Labels: None
Environment:

Any



 Description   

It would make it easier to run Valgrind effectively if a command line option was added to MaxScale to suppress calling dlclose at the end of a run. The critical points currently appear to be lines 287 and 364 of server/core/load_utils.c. This could have a negative impact on some tests, but most would be unaffected, and most of the time the option would not be used.



 Comments   
Comment by martin brampton (Inactive) [ 2015-10-04 ]

Without suppressing the use of dlclose, simply running valgrind produces incomplete traces, often rendering the results useless. Certainly it is possible to combine use of valgrind with gdb, but this is cumbersome. The suggested change would not be hard to implement, and, once done, would make simple use of valgrind alone much more effective. It doesn't have high priority, but it seems to me to have value.

Comment by Esa Korhonen [ 2017-07-27 ]

Added command line parameter --debug=disable-module-unloading

Generated at Thu Feb 08 03:58:53 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.