Bug #29117 init_file test crashes with embedded server
Submitted: 14 Jun 2007 17:25 Modified: 26 Jun 2007 18:37
Reporter: Timothy Smith Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Tests Severity:S2 (Serious)
Version:5.1 OS:Any
Assigned to: Alexey Botchkov CPU Architecture:Any
Tags: pbfail

[14 Jun 2007 17:25] Timothy Smith
Description:
Recently the embedded server test have been failing in the 5.1-maint team tree on init_file.

How to repeat:
https://intranet.mysql.com/secure/pushbuild/showpush.pl?dir=mysql-5.1-new-maint&order=627

Suggested fix:
Perhaps was caused by patch for bug #26664?
[15 Jun 2007 7:15] Magnus BlÄudd
Crash occurs in 'my_net_local_init' when calling "my_net_set_read_timeout' on a vio that is not yet initialized.

Initial debuging shows that the embedded server uses "my_net_local_init" from libmysql - probably it should use the other one, where "#ifdef EMBEDDED_SERVER" would comment that code out.
[19 Jun 2007 7:12] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/29055

ChangeSet@1.2666, 2007-06-19 11:13:11+05:00, holyfoot@mysql.com +1 -0
  Bug #29117 (init_file test crashes with embedded server)
  
  we use net->vio in my_net_local_init, but in the my_net_init
  implementation we set it after the call, so work with unspecified
  net->vio value
[25 Jun 2007 21:49] Bugs System
Pushed into 5.1.21-beta
[25 Jun 2007 21:51] Bugs System
Pushed into 5.0.46
[25 Jun 2007 21:52] Bugs System
Pushed into 4.1.24
[26 Jun 2007 18:37] Paul Dubois
Noted in 4.1.24, 5.0.46, 5.1.21 changelogs.

A network structure was initialized incorrectly, leading to
embedded server crashes.