Skip to content

mcount: Fix segfault on GCC7#2

Open
withgit-contributor wants to merge 1 commit intowith-git:masterfrom
withgit-contributor:fix-segfault
Open

mcount: Fix segfault on GCC7#2
withgit-contributor wants to merge 1 commit intowith-git:masterfrom
withgit-contributor:fix-segfault

Conversation

@withgit-contributor
Copy link
Copy Markdown

Taeung reported that uftrace crashed with segfault when it's built by
GCC 7.x. This was because gcc saves %xmm register on function prologue
using movaps but stack was not aglined in 16-byte boundary. It should
be aligned otherwise CPU generates an exception (see below link):

http://x86.renejeschke.de/html/file_module_x86_id_180.html

Fixes #1.

Signed-off-by: withgit-contributor withgit.contributor@gmail.com

Taeung reported that uftrace crashed with segfault when it's built by
GCC 7.x.  This was because gcc saves %xmm register on function prologue
using movaps but stack was not aglined in 16-byte boundary.  It should
be aligned otherwise CPU generates an exception (see below link):

  http://x86.renejeschke.de/html/file_module_x86_id_180.html

Fixes with-git#1.

Signed-off-by: withgit-contributor <withgit.contributor@gmail.com>
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.

1 participant