Skip to content

Fix bug 1617998 (HandlerSocket may access freed memory on startup)#939

Merged
laurynas-biveinis merged 1 commit intopercona:5.6from
laurynas-biveinis:bug1617998-5.6
Aug 29, 2016
Merged

Fix bug 1617998 (HandlerSocket may access freed memory on startup)#939
laurynas-biveinis merged 1 commit intopercona:5.6from
laurynas-biveinis:bug1617998-5.6

Conversation

@laurynas-biveinis
Copy link
Copy Markdown
Contributor

There is a race condition between HS worker threads initializing
default SE and default temp SE fields and the server main thread
initializing the same globally w/o locking.

As HS workers do not care about the default (temp) SE, initialise
their THD handles without plugin support.

http://jenkins.percona.com/job/percona-server-5.6-param/1343/

There is a race condition between HS worker threads initializing
default SE and default temp SE fields and the server main thread
initializing the same globally w/o locking.

As HS workers do not care about the default (temp) SE, initialise
their THD handles without plugin support.
@percona-ysorokin
Copy link
Copy Markdown
Collaborator

LGTM

@laurynas-biveinis laurynas-biveinis merged commit 0146d92 into percona:5.6 Aug 29, 2016
@laurynas-biveinis laurynas-biveinis deleted the bug1617998-5.6 branch August 29, 2016 16:43
satya-bodapati pushed a commit to satya-bodapati/percona-server that referenced this pull request Feb 8, 2019
Summary:
JIRA: https://jira.percona.com/browse/FB8-86

Reference Patch: facebook/mysql-5.6@78fa270

Crash safe index file is created when any change is made to the index
file. The index file is first copied over to the crash safe one and then stuff
is added/removed from the crash safe index file. Finally, the old index file is
deleted and crash safe index file is renamed to the index file. There might be a
scenario where mysql crashes after stuff is changed in the crash safe file
but before the old index file is deleted. In this case we should delete the
crash safe index file at restart. If we don't delete it subsequent changes to
the index file can corrupt it because it can be copied to the old crash safe
file which already has some data in it.
Pull Request resolved: facebook/mysql-5.6#939

Reviewed By: lth

Differential Revision: D13924478

Pulled By: lth

fbshipit-source-id: 003c1b56614
inikep pushed a commit to inikep/percona-server that referenced this pull request Apr 23, 2020
Summary:
JIRA: https://jira.percona.com/browse/FB8-86

Reference Patch: facebook/mysql-5.6@78fa270

Crash safe index file is created when any change is made to the index
file. The index file is first copied over to the crash safe one and then stuff
is added/removed from the crash safe index file. Finally, the old index file is
deleted and crash safe index file is renamed to the index file. There might be a
scenario where mysql crashes after stuff is changed in the crash safe file
but before the old index file is deleted. In this case we should delete the
crash safe index file at restart. If we don't delete it subsequent changes to
the index file can corrupt it because it can be copied to the old crash safe
file which already has some data in it.
Pull Request resolved: facebook/mysql-5.6#939

Reviewed By: lth

Differential Revision: D13924478

Pulled By: lth

fbshipit-source-id: 8f38dbfdedb
inikep added a commit to inikep/percona-server that referenced this pull request Feb 24, 2021
Summary:
JIRA: https://jira.percona.com/browse/FB8-86

Reference Patch: facebook/mysql-5.6@78fa270
Reference Patch: facebook/mysql-5.6@72c25d615d8
Reference Patch: facebook/mysql-5.6@78b6b8bc826
Reference Patch: facebook/mysql-5.6@00be4805f47

Crash safe index file is created when any change is made to the index
file. The index file is first copied over to the crash safe one and then stuff
is added/removed from the crash safe index file. Finally, the old index file is
deleted and crash safe index file is renamed to the index file. There might be a
scenario where mysql crashes after stuff is changed in the crash safe file
but before the old index file is deleted. In this case we should delete the
crash safe index file at restart. If we don't delete it subsequent changes to
the index file can corrupt it because it can be copied to the old crash safe
file which already has some data in it.
Pull Request resolved: facebook/mysql-5.6#939

Reviewed By: lth

Differential Revision: D13924478

Pulled By: lth
inikep added a commit to inikep/percona-server that referenced this pull request Nov 15, 2021
… (percona#939)

Summary:
JIRA: https://jira.percona.com/browse/FB8-86

Reference Patch: facebook/mysql-5.6@78fa270
Reference Patch: facebook/mysql-5.6@72c25d615d8
Reference Patch: facebook/mysql-5.6@78b6b8bc826
Reference Patch: facebook/mysql-5.6@00be4805f47

Crash safe index file is created when any change is made to the index
file. The index file is first copied over to the crash safe one and then stuff
is added/removed from the crash safe index file. Finally, the old index file is
deleted and crash safe index file is renamed to the index file. There might be a
scenario where mysql crashes after stuff is changed in the crash safe file
but before the old index file is deleted. In this case we should delete the
crash safe index file at restart. If we don't delete it subsequent changes to
the index file can corrupt it because it can be copied to the old crash safe
file which already has some data in it.
Pull Request resolved: facebook/mysql-5.6#939

Reviewed By: lloyd

Differential Revision: D13924478 (facebook/mysql-5.6@98a250f)

Pulled By: lth

fbshipit-source-id: 157947a2d38
ldonoso pushed a commit to ldonoso/percona-server that referenced this pull request Mar 15, 2022
… (percona#939)

Summary:
JIRA: https://jira.percona.com/browse/FB8-86

Reference Patch: facebook/mysql-5.6@78fa270
Reference Patch: facebook/mysql-5.6@72c25d615d8
Reference Patch: facebook/mysql-5.6@78b6b8bc826
Reference Patch: facebook/mysql-5.6@00be4805f47

Crash safe index file is created when any change is made to the index
file. The index file is first copied over to the crash safe one and then stuff
is added/removed from the crash safe index file. Finally, the old index file is
deleted and crash safe index file is renamed to the index file. There might be a
scenario where mysql crashes after stuff is changed in the crash safe file
but before the old index file is deleted. In this case we should delete the
crash safe index file at restart. If we don't delete it subsequent changes to
the index file can corrupt it because it can be copied to the old crash safe
file which already has some data in it.
Pull Request resolved: facebook/mysql-5.6#939

Reviewed By: lloyd

Differential Revision: D13924478

Pulled By: lth
ldonoso pushed a commit to ldonoso/percona-server that referenced this pull request Mar 15, 2022
… (percona#939)

Summary:
JIRA: https://jira.percona.com/browse/FB8-86

Reference Patch: facebook/mysql-5.6@78fa270
Reference Patch: facebook/mysql-5.6@72c25d615d8
Reference Patch: facebook/mysql-5.6@78b6b8bc826
Reference Patch: facebook/mysql-5.6@00be4805f47

Crash safe index file is created when any change is made to the index
file. The index file is first copied over to the crash safe one and then stuff
is added/removed from the crash safe index file. Finally, the old index file is
deleted and crash safe index file is renamed to the index file. There might be a
scenario where mysql crashes after stuff is changed in the crash safe file
but before the old index file is deleted. In this case we should delete the
crash safe index file at restart. If we don't delete it subsequent changes to
the index file can corrupt it because it can be copied to the old crash safe
file which already has some data in it.
Pull Request resolved: facebook/mysql-5.6#939

Reviewed By: lloyd

Differential Revision: D13924478

Pulled By: lth
ldonoso pushed a commit to ldonoso/percona-server that referenced this pull request Mar 18, 2022
… (percona#939)

Summary:
JIRA: https://jira.percona.com/browse/FB8-86

Reference Patch: facebook/mysql-5.6@78fa270
Reference Patch: facebook/mysql-5.6@72c25d615d8
Reference Patch: facebook/mysql-5.6@78b6b8bc826
Reference Patch: facebook/mysql-5.6@00be4805f47

Crash safe index file is created when any change is made to the index
file. The index file is first copied over to the crash safe one and then stuff
is added/removed from the crash safe index file. Finally, the old index file is
deleted and crash safe index file is renamed to the index file. There might be a
scenario where mysql crashes after stuff is changed in the crash safe file
but before the old index file is deleted. In this case we should delete the
crash safe index file at restart. If we don't delete it subsequent changes to
the index file can corrupt it because it can be copied to the old crash safe
file which already has some data in it.
Pull Request resolved: facebook/mysql-5.6#939

Reviewed By: lloyd

Differential Revision: D13924478

Pulled By: lth
ldonoso pushed a commit to ldonoso/percona-server that referenced this pull request Apr 12, 2022
… (percona#939)

Summary:
JIRA: https://jira.percona.com/browse/FB8-86

Reference Patch: facebook/mysql-5.6@78fa270
Reference Patch: facebook/mysql-5.6@72c25d615d8
Reference Patch: facebook/mysql-5.6@78b6b8bc826
Reference Patch: facebook/mysql-5.6@00be4805f47

Crash safe index file is created when any change is made to the index
file. The index file is first copied over to the crash safe one and then stuff
is added/removed from the crash safe index file. Finally, the old index file is
deleted and crash safe index file is renamed to the index file. There might be a
scenario where mysql crashes after stuff is changed in the crash safe file
but before the old index file is deleted. In this case we should delete the
crash safe index file at restart. If we don't delete it subsequent changes to
the index file can corrupt it because it can be copied to the old crash safe
file which already has some data in it.
Pull Request resolved: facebook/mysql-5.6#939

Reviewed By: lloyd

Differential Revision: D13924478

Pulled By: lth
inikep added a commit to inikep/percona-server that referenced this pull request Apr 15, 2024
… (percona#939)

Summary:
JIRA: https://jira.percona.com/browse/FB8-86

Reference Patch: facebook/mysql-5.6@78fa270
Reference Patch: facebook/mysql-5.6@72c25d615d8
Reference Patch: facebook/mysql-5.6@78b6b8bc826
Reference Patch: facebook/mysql-5.6@00be4805f47

Crash safe index file is created when any change is made to the index
file. The index file is first copied over to the crash safe one and then stuff
is added/removed from the crash safe index file. Finally, the old index file is
deleted and crash safe index file is renamed to the index file. There might be a
scenario where mysql crashes after stuff is changed in the crash safe file
but before the old index file is deleted. In this case we should delete the
crash safe index file at restart. If we don't delete it subsequent changes to
the index file can corrupt it because it can be copied to the old crash safe
file which already has some data in it.
Pull Request resolved: facebook/mysql-5.6#939

Reviewed By: lloyd

Differential Revision: D13924478

Pulled By: lth
inikep added a commit to inikep/percona-server that referenced this pull request Apr 16, 2024
… (percona#939)

Summary:
JIRA: https://jira.percona.com/browse/FB8-86

Reference Patch: facebook/mysql-5.6@78fa270
Reference Patch: facebook/mysql-5.6@72c25d615d8
Reference Patch: facebook/mysql-5.6@78b6b8bc826
Reference Patch: facebook/mysql-5.6@00be4805f47

Crash safe index file is created when any change is made to the index
file. The index file is first copied over to the crash safe one and then stuff
is added/removed from the crash safe index file. Finally, the old index file is
deleted and crash safe index file is renamed to the index file. There might be a
scenario where mysql crashes after stuff is changed in the crash safe file
but before the old index file is deleted. In this case we should delete the
crash safe index file at restart. If we don't delete it subsequent changes to
the index file can corrupt it because it can be copied to the old crash safe
file which already has some data in it.
Pull Request resolved: facebook/mysql-5.6#939

Reviewed By: lloyd

Differential Revision: D13924478

Pulled By: lth
inikep added a commit to inikep/percona-server that referenced this pull request Apr 17, 2024
… (percona#939)

Summary:
JIRA: https://jira.percona.com/browse/FB8-86

Reference Patch: facebook/mysql-5.6@78fa270
Reference Patch: facebook/mysql-5.6@72c25d615d8
Reference Patch: facebook/mysql-5.6@78b6b8bc826
Reference Patch: facebook/mysql-5.6@00be4805f47

Crash safe index file is created when any change is made to the index
file. The index file is first copied over to the crash safe one and then stuff
is added/removed from the crash safe index file. Finally, the old index file is
deleted and crash safe index file is renamed to the index file. There might be a
scenario where mysql crashes after stuff is changed in the crash safe file
but before the old index file is deleted. In this case we should delete the
crash safe index file at restart. If we don't delete it subsequent changes to
the index file can corrupt it because it can be copied to the old crash safe
file which already has some data in it.
Pull Request resolved: facebook/mysql-5.6#939

Reviewed By: lloyd

Differential Revision: D13924478

Pulled By: lth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants