Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
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
Operations
Operations
Metrics
Environments
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
cpp-libs
Actor Framework
Commits
91148be1
Commit
91148be1
authored
Nov 19, 2020
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add UBSan check to build matrix
parent
0221960c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
5 deletions
+38
-5
.ci/run.sh
.ci/run.sh
+30
-2
Jenkinsfile
Jenkinsfile
+8
-3
No files found.
.ci/run.sh
View file @
91148be1
...
...
@@ -28,8 +28,9 @@ elif [ $# = 2 ]; then
if
[
"
$1
"
=
'test'
]
&&
[
-d
"
$2
"
]
;
then
Mode
=
'test'
BuildDir
=
"
$2
"
elif
[
"
$1
"
=
'assert'
]
&&
[
"
$2
"
=
'LeakSanitizer'
]
;
then
elif
[
"
$1
"
=
'assert'
]
;
then
Mode
=
'assert'
What
=
"
$2
"
else
usage
fi
...
...
@@ -85,10 +86,37 @@ runLeakSanitizerCheck() {
fi
}
runUBSanitizerCheck
()
{
UBSanCheckStr
=
"
int main(int argc, char**) {
int k = 0x7fffffff;
k += argc;
return 0;
}
"
echo
"
${
UBSanCheckStr
}
"
>
UBSanCheck.cpp
c++ UBSanCheck.cpp
-o
UBSanCheck
-fsanitize
=
undefined
-fno-omit-frame-pointer
out
=
`
./UBSanCheck 2>&1 |
grep
-o
'signed integer overflow'
`
if
[
-z
"
$out
"
]
;
then
echo
"unable to detected undefined behavior on this platform!"
return
1
fi
}
if
[
"
$Mode
"
=
'build'
]
;
then
runBuild
elif
[
"
$Mode
"
=
'test'
]
;
then
runTest
else
runLeakSanitizerCheck
case
"
$What
"
in
LeakSanitizer
)
runLeakSanitizerCheck
;;
UBSanitizer
)
runUBSanitizerCheck
;;
*
)
echo
"unrecognized tag:
$What
!"
return
1
esac
fi
Jenkinsfile
View file @
91148be1
...
...
@@ -93,13 +93,18 @@ config = [
'ASAN_OPTIONS=detect_leaks=1'
,
],
]],
// One extra debug build with static libraries.
[
'
debian-10
'
,
[
// One extra debug build with static libraries
and UBSanitizer
.
[
'
fedora-32
'
,
[
numCores:
4
,
tags:
[
'docker'
],
tags:
[
'docker'
,
'UBSanitizer'
],
builds:
[
'debug'
],
extraBuildFlags:
[
'BUILD_SHARED_LIBS:BOOL=OFF'
,
'CAF_SANITIZERS:STRING=address,undefined'
,
],
extraBuildEnv:
[
'CXXFLAGS=-fno-sanitize-recover=undefined'
,
'LDFLAGS=-fno-sanitize-recover=undefined'
,
],
]],
// Other UNIX systems.
...
...
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