Bug #12061 | CPU usage | ||
---|---|---|---|
Submitted: | 20 Jul 2005 15:06 | Modified: | 9 Apr 2008 9:29 |
Reporter: | Pascal Gloor | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | 4.0.24 | OS: | FreeBSD (FreeBSD 5.2.1) |
Assigned to: | CPU Architecture: | Any |
[20 Jul 2005 15:06]
Pascal Gloor
[19 Sep 2005 22:09]
Andreas Longwitz
I have the same problem runnig FreeBSD 4.11 Stable and MySQL 4.0.24. The pipe you mentioned was not created by MySQL, it is the thread_kern_pipe from the thread-library libc_r and is created in uthread_init.c. This pipe is needed to catch signals being missed in calls to _select. Maybe the problem can be understand if libc_r is compiled with DEBUG_SIGNAL.
[20 Sep 2005 22:28]
Andreas Longwitz
Using DEBUG for signals shows that the problem arises if a signal is ignored in libc_r. Thats a bug in FreeBSD, a patch can be found at http://www.FreeBSD.org/cgi/query-pr.cgi?pr=bin/32295
[1 Oct 2005 7:14]
Greg Lehey
Nice analysis so far. It does look as if the server may not be handling the return values of poll() correctly. It's not made any easier by the fact that it takes a long time before it reoccurs. The obvious thing to do is to build the server with debug symbols (if it isn't already) and attach a debugger when it happens. That way we can at least find out where this is happening, and hopefully why the return value isn't resulting in an I/O.
[1 Oct 2005 7:34]
Valeriy Kravchuk
Pascal, Have you tried to apply the patch to FreeBSD proposed in http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/32295? Does it really help in your case? Please, inform about the results, if any.
[2 Nov 2005 0:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[9 Apr 2008 9:29]
Susanne Ebrecht
I'll close this issue now because it don't occur anymore by using newer MySQL with newer FreeBSD versions. If you will against our expectactions still have problems, please, feel free to open this bug again.