Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
a7cbce06
Commit
a7cbce06
authored
Mar 23, 2020
by
Eugene Kosov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unoptimized -fsanitize=undefined build on clang requires more stack space
parent
fb74de97
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
CMakeLists.txt
CMakeLists.txt
+1
-1
include/my_pthread.h
include/my_pthread.h
+1
-1
No files found.
CMakeLists.txt
View file @
a7cbce06
...
...
@@ -216,7 +216,7 @@ ENDIF()
OPTION
(
WITH_UBSAN
"Enable undefined behavior sanitizer"
OFF
)
IF
(
WITH_UBSAN
)
MY_CHECK_AND_SET_COMPILER_FLAG
(
"-fsanitize=undefined -fno-sanitize=alignment -U_FORTIFY_SOURCE"
DEBUG RELWITHDEBINFO
)
MY_CHECK_AND_SET_COMPILER_FLAG
(
"-fsanitize=undefined -fno-sanitize=alignment -U_FORTIFY_SOURCE
-DWITH_UBSAN
"
DEBUG RELWITHDEBINFO
)
ENDIF
()
OPTION
(
WITH_MSAN
"Enable memory sanitizer"
OFF
)
...
...
include/my_pthread.h
View file @
a7cbce06
...
...
@@ -693,7 +693,7 @@ extern void my_mutex_end(void);
We need to have at least 256K stack to handle calls to myisamchk_init()
with the current number of keys and key parts.
*/
#if
def __SANITIZE_ADDRESS__
#if
defined(__SANITIZE_ADDRESS__) || defined(WITH_UBSAN)
#define DEFAULT_THREAD_STACK (364*1024L)
#else
#define DEFAULT_THREAD_STACK (292*1024L)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment