Bug #42630 assertion `off + 8 < packet->data->len' failed using tutorial-monitor.lua
Submitted: 5 Feb 2009 17:40 Modified: 9 Jan 2015 10:07
Reporter: Diego Medina Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Proxy: Scripts Severity:S3 (Non-critical)
Version:0.7.0 r565 OS:Any
Assigned to: Assigned Account CPU Architecture:Any

[5 Feb 2009 17:40] Diego Medina
Description:
Using the tutorial lua script share/doc/mysql-proxy/tutorial-monitor.lua

and sending a query through the proxy like

mysql> use test;

I get on the terminal where I started the proxy

(critical) network_mysqld_proto_get_lenenc_int: assertion `off + 8 < packet->data->len' failed

How to repeat:
1- compile the proxy from the bzr repository

1a- Edit the lua script and add  { resultset_is_needed = true } to the proxy.queries:append commands (line 169) 

2- run the proxy like this

./sbin/mysql-proxy --proxy-backend-addresses=127.0.0.1:5067 --proxy-lua-script=share/doc/mysql-proxy/tutorial-monitor.lua

3- open a new terminal and send this query

USE test;

(or use any other database)

4- Go back to the proxy terminal and look for 

(critical) network_mysqld_proto_get_lenenc_int: assertion `off + 8 < packet->data->len' failed

I tested with a 5.1.30 and 5.0.67 MySQL server back end
[23 Apr 2009 12:00] bocquet denis
what's new about this ?