5 messages in com.mysql.lists.bugsBug in embedded libmysqld library or ...
FromSent OnAttachments
Niksa Jurinovic26 Dec 2001 18:41 
Miguel Angel Solorzano26 Dec 2001 22:56 
Michael Widenius27 Dec 2001 04:50 
Miguel Angel Solorzano29 Dec 2001 01:41 
Michael Widenius30 Dec 2001 04:53 
Subject:Bug in embedded libmysqld library or configuration problem?
From:Michael Widenius (mon@mysql.com)
Date:12/30/2001 04:53:53 AM
List:com.mysql.lists.bugs

Hi!

"Miguel" == Miguel Angel Solorzano <mig@mysql.com> writes:

Miguel> At 14:51 27/12/2001 +0200, Michael Widenius wrote: Miguel> Hi!

The above patch may fix the problem, but it's still wrong as it just hides the real problem and you are likely to get crashes later instead.

<cut>

- A stack trace when you get the core dump.

Miguel> I didn't get the stack trace on Suse, then how the same problem there Miguel> is on Windows then I did the call stack on VC++:

Miguel> -end of call stack-

Miguel> LIBMYSQLD! _assert + 670 bytes Miguel> vio_read(st_vio * 0x0d3ebc00, char * 0x00949f68, int 16384) line 112 +
26 bytes Miguel> net_clear(st_net * 0x0d3eb148) line 178 + 25 bytes

<cut>

Thanks for the clear explanation.

Here is a patch that solves this problem once and for all:

(/my/mysql) bk diffs sql/net_serv.cc ===== sql/net_serv.cc 1.32 vs edited ===== 170c170 < #ifndef EXTRA_DEBUG

---

#if !defined(EXTRA_DEBUG) && !defined(EMBEDDED_LIBRARY)

(/my/mysql) bk diffs -c sql/net_serv.cc ===== sql/net_serv.cc 1.32 vs edited ===== *** /tmp/net_serv.cc-1.32-4839 Sat Dec 22 15:13:31 2001 --- edited/sql/net_serv.cc Sun Dec 30 12:43:17 2001 *************** *** 167,173 ****

void net_clear(NET *net) { ! #ifndef EXTRA_DEBUG int count; /* One may get 'unused' warn */ bool is_blocking=vio_is_blocking(net->vio); if (is_blocking) --- 167,173 ----

void net_clear(NET *net) { ! #if !defined(EXTRA_DEBUG) && !defined(EMBEDDED_LIBRARY) int count; /* One may get 'unused' warn */ bool is_blocking=vio_is_blocking(net->vio); if (is_blocking)

Regards, Monty