Skip to content

crash in variable bindings when retrying mysql query #21

Closed
mariux opened this issue Aug 19, 2015 · 4 comments
Closed

crash in variable bindings when retrying mysql query #21

mariux opened this issue Aug 19, 2015 · 4 comments
Assignees
Labels
Milestone

Comments

@mariux
Copy link
Contributor

mariux commented Aug 19, 2015

@mylittlepony

2015-08-19 14:12:36 +0200 mxqd[2380]: WARNING: MySQL mysql_stmt_execute(): ERROR 2013 (HY000): Lost connection to MySQL server during query
2015-08-19 14:12:36 +0200 mxqd[2380]: ERROR: mx_mysql_statement_execute(): Resource temporarily unavailable
2015-08-19 14:12:36 +0200 mxqd[2380]: WARNING: mx_mysql_do_statement() failed: Resource temporarily unavailable
2015-08-19 14:12:36 +0200 mxqd[2380]: WARNING: MySQL mysql_stmt_bind_param(): ERROR 2036 (HY000): Using unsupported buffer type: 7427968  (parameter: 19)
2015-08-19 14:12:36 +0200 mxqd[2380]: EMERGENCY: MySQL mysql_stmt_bind_param(): ERROR 2036 (HY000): Using unsupported buffer type: 7427968  (parameter: 19)
2015-08-19 14:12:36 +0200 mxqd[2380]: ERROR: mx_mysql_statement_execute(): Protocol error
*** Error in `mxqd': double free or corruption (!prev): 0x0000000000715790 ***
@mariux
Copy link
Contributor Author

mariux commented Aug 19, 2015

@peanutbutterjellytime

2015-08-19 14:12:37 +0200 mxqd[33612]: WARNING: MySQL mysql_stmt_execute(): ERROR 2013 (HY000): Lost connection to MySQL server during query
2015-08-19 14:12:37 +0200 mxqd[33612]: ERROR: mx_mysql_statement_execute(): Resource temporarily unavailable
2015-08-19 14:12:37 +0200 mxqd[33612]: WARNING: mx_mysql_do_statement() failed: Resource temporarily unavailable
2015-08-19 14:12:37 +0200 mxqd[33612]: WARNING: MySQL mysql_stmt_bind_result(): ERROR 2036 (HY000): Using unsupported buffer type: 8  (parameter: 1)
2015-08-19 14:12:37 +0200 mxqd[33612]: EMERGENCY: MySQL mysql_stmt_bind_result(): ERROR 2036 (HY000): Using unsupported buffer type: 8  (parameter: 1)
2015-08-19 14:12:37 +0200 mxqd[33612]: ERROR: mx_mysql_statement_fetch(): Protocol error
*** Error in `mxqd': double free or corruption (!prev): 0x00000000006a1330 ***

@mariux
Copy link
Contributor Author

mariux commented Aug 19, 2015

bind parameters are freed in mysql_statement_close() which is wrong behaviour if doing retries after connection is lost during complex statements.

@mariux mariux added this to the 1.0 milestone Aug 19, 2015
@mariux mariux self-assigned this Aug 19, 2015
@mariux
Copy link
Contributor Author

mariux commented Aug 19, 2015

untested ;)

@mariux mariux closed this as completed in 4828d23 Aug 24, 2015
@mariux
Copy link
Contributor Author

mariux commented Aug 24, 2015

finally fixed in 193a3b4

@mariux mariux changed the title unknown crash crash in variable bindings when retrying mysql query Aug 24, 2015
Sign in to join this conversation on GitHub.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant