[MDEV-3279] LP:675185 - [Hardy SRU] dash bug causes mysqld_safe to spin at 100% CPU Created: 2010-11-14 Updated: 2018-06-05 Resolved: 2012-10-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Jakob Unterwurzacher (Inactive) | Assignee: | Kristian Nielsen |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
Symptoms are: After mysql server upgrades + restarts the old mysqld_safe keeps running and consumes 100% cpu, strace shows: This is a bug (race condition) in dash, partly fixed by http://git.kernel.org/?p=utils/dash/dash.git;a=commit;h=3800d4934391b144fd261a7957aea72ced7d47ea . This fixes the test case and mysqld_safe, but introduces another regression: http://eeek.borgchat.net/lists/dash/msg00268.html (patch for that in the thread) TEST CASE: Script in the commit message (link above). Allows to reproduce this always, even on Karmic still. (Proposed fix of using #Unable to render embedded object: File (/bin/bash instead of #) not found./bin/sh is not as straigtforward as expected. bash called as sh goes into sh compatibility mode, called as bash it may behave subtle differently) NOTES: mysqld_safe was replaced by an upstart job in Lucid. But Hardy has support for 3 more years, justifiying a fix. |
| Comments |
| Comment by Jakob Unterwurzacher (Inactive) [ 2010-11-14 ] |
|
Re: [Hardy SRU] dash bug causes mysqld_safe to spin at 100% CPU |
| Comment by Jakob Unterwurzacher (Inactive) [ 2010-11-14 ] |
|
fix.diff |
| Comment by Rasmus Johansson (Inactive) [ 2010-11-15 ] |
|
Re: [Hardy SRU] dash bug causes mysqld_safe to spin at 100% CPU https://wiki.ubuntu.com/StableReleaseUpdates thanks chuck |
| Comment by Rasmus Johansson (Inactive) [ 2010-11-16 ] |
|
Re: [Hardy SRU] dash bug causes mysqld_safe to spin at 100% CPU |
| Comment by Rasmus Johansson (Inactive) [ 2010-11-22 ] |
|
Re: [Hardy SRU] dash bug causes mysqld_safe to spin at 100% CPU |
| Comment by Jakob Unterwurzacher (Inactive) [ 2010-11-22 ] |
|
Re: [Hardy SRU] dash bug causes mysqld_safe to spin at 100% CPU |
| Comment by Kristian Nielsen [ 2010-11-23 ] |
|
Re: [Hardy SRU] dash bug causes mysqld_safe to spin at 100% CPU Fix will be available from 5.1.52 and 5.2.4. |
| Comment by Kristian Nielsen [ 2011-02-15 ] |
|
Re: [Hardy SRU] dash bug causes mysqld_safe to spin at 100% CPU |
| Comment by Rasmus Johansson (Inactive) [ 2012-09-20 ] |
|
Re: [Hardy SRU] dash bug causes mysqld_safe to spin at 100% CPU Also, it is not the right approach to change #Unable to render embedded object: File (/bin/sh to #) not found./bin/bash since Regarding the init scripts, I see that Percona Server is not packaged with |
| Comment by Rasmus Johansson (Inactive) [ 2012-09-20 ] |
|
Re: [Hardy SRU] dash bug causes mysqld_safe to spin at 100% CPU |
| Comment by Rasmus Johansson (Inactive) [ 2012-09-20 ] |
|
Launchpad bug id: 675185 |