[ODBC-280] Process crashes after some time Created: 2020-04-21 Updated: 2020-06-30 Resolved: 2020-04-26 |
|
| Status: | Closed |
| Project: | MariaDB Connector/ODBC |
| Component/s: | General |
| Affects Version/s: | 3.1.7 |
| Fix Version/s: | 3.1.9 |
| Type: | Bug | Priority: | Major |
| Reporter: | Matthias Rauber | Assignee: | Lawrin Novitsky |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Windows Server 2019 Datacenter; MariaDB Server 10.3 x64 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
Similiar to odbc-275 the process using the odbc driver crashes after some time
followed by a mysql warning entry with the text similiar to:
Contrary to the linked issue, my connection string already contains the full ip adress of the host (127.0.0.1 on the current configuration). I could not reproduce the issue on our old Windows Server 2012 development machine. |
| Comments |
| Comment by Lawrin Novitsky [ 2020-04-21 ] | |||||||||||||||||||||||||
|
Thank you for your report. Would it be possible to get a dump or at least a stacktrace for this crash? Do you have auto reconnect enabled? and if no, would it work around the issue? | |||||||||||||||||||||||||
| Comment by Matthias Rauber [ 2020-04-21 ] | |||||||||||||||||||||||||
|
Some further information: The exact exception message is the following
Following a stacktrace:
A bit of poking around (and by all means, dismiss what i say if its not plausible. its my first time debugging something like that) revealed that the strdup function seams to wrongly calculate the size of the plugin path? i will try to write a small application that produces the same error and will than attach a memory dump. | |||||||||||||||||||||||||
| Comment by Matthias Rauber [ 2020-04-22 ] | |||||||||||||||||||||||||
|
To reliably reproduce the error the following requirements has to be met
I created a github (https://github.com/ergofit/odbc-280) repository containing the neccesary solution, sql structure and a memory dump from the crashing process. | |||||||||||||||||||||||||
| Comment by Lawrin Novitsky [ 2020-04-26 ] | |||||||||||||||||||||||||
|
I could not reliably reproduce the crash, but few times I did can. But basically I've seen the same picture as in the dump file. Thank you for all I am probably gonna close the ticket anyway. I tried to attach here the file with fixed library, so you could try it in your environment, but for some reason that didn't work. Maybe some new restrictions on attached files have been imposed here. | |||||||||||||||||||||||||
| Comment by Lawrin Novitsky [ 2020-04-26 ] | |||||||||||||||||||||||||
|
The fix has been pushed in the commit 2b420d7 | |||||||||||||||||||||||||
| Comment by Lawrin Novitsky [ 2020-04-26 ] | |||||||||||||||||||||||||
|
I could eventually upload the dll file |