[CONC-128] Segfault when closing connection Created: 2015-05-22 Updated: 2015-05-25 |
|
| Status: | Open |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | 2.0.0, 2.1 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Sauli Lehtimäki | Assignee: | Georg Richter |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Debian 7 / 3.2.0-4-486 #1 Debian 3.2.65-1+deb7u2 i686 GNU/Linux |
||
| Attachments: |
|
| Description |
|
Hi, I found MariaDB C-connector to cause segfault sometimes when closing database connection. Please see backtrace attached (also screenshots 1-3). We have a multithreaded server which opens multiple connections to MariaDB. When the server is closing a DB connection a random crash happens. This problem is not easy to reproduce and usually requires several hundreds of connections, plus it has possibly something to do with a situation where multiple clients are accessing the same database table in parallel where there are triggers related (at least this causes crash to be happening more often, db dead locks?). Backtrace is from version 2.0.0, but I tested also version 2.1.0 and the same thing happens. Server was running in a single core VirtualBox environment with database server on the same virtual machine. BR, ---------------------------------------------------- Backtrace: #0 0xb7712422 in __kernel_vsyscall () , sa_mask = {__val = {1769472, 135070432, 134523120, 3066999364, 7332, 3066999332, 134516448, 134515844, |
| Comments |
| Comment by Georg Richter [ 2015-05-25 ] |
|
Hi, would it be possible to provide a short test case which reproduces this bug? Thanks! Georg |