[CONCPP-60] Thrown exceptions may crash an application under ceratain conditions Created: 2021-02-04  Updated: 2021-02-04  Resolved: 2021-02-04

Status: Closed
Project: MariaDB Connector/C++
Component/s: General
Affects Version/s: 0.9.4
Fix Version/s: 1.0.0

Type: Bug Priority: Critical
Reporter: Lawrin Novitsky Assignee: Lawrin Novitsky
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

The crash occurs in the exception destructor. I could get it crash running compliance tests suite with wrong credentials, i.e. when connection method throws the exception. Other testsuites does not do, and I kinda failed to create a standalone test.
The reason is seemingly this pure Windows thing, when object is created in dll, and destructed in application(or vice versa). Making sure that copyconstructor exists only on the library side solved the problem.



 Comments   
Comment by Lawrin Novitsky [ 2021-02-04 ]

Commit ffb3ba5

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