forked from redis/redis
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sanitizer thread CI #301
Open
sundb
wants to merge
8
commits into
unstable
Choose a base branch
from
sanitizer_thread_ci
base: unstable
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
sanitizer thread CI #301
Changes from 7 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
19d291b
sanitizer thread CI
sundb b2229a4
Use jemalloc for thread sanitizer
sundb 739d524
Use libc for thread sanitizer
sundb ba9198f
add signal tag for some tests
sundb d5cded3
ignore signal test for thread sanitizer
sundb c67676d
Fix test failue
sundb d8c6b2d
Fix test failue
sundb 4ea471b
Merge branch 'unstable' into sanitizer_thread_ci
sundb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
signal:collect_stacktrace_data | ||
signal:invoke_callback | ||
signal:printCrashReport | ||
signal:sigalrmSignalHandler | ||
signal:sigsegvHandler | ||
race:g_callback | ||
race:sigShutdownHandler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -130,11 +130,13 @@ void serverLogRaw(int level, const char *msg) { | |||||
int off; | ||||||
struct timeval tv; | ||||||
int role_char; | ||||||
int daylight_active; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Initialize int daylight_active = 0; Committable suggestion
Suggested change
|
||||||
pid_t pid = getpid(); | ||||||
|
||||||
gettimeofday(&tv,NULL); | ||||||
struct tm tm; | ||||||
nolocks_localtime(&tm,tv.tv_sec,server.timezone,server.daylight_active); | ||||||
atomicGet(server.daylight_active, daylight_active); | ||||||
nolocks_localtime(&tm,tv.tv_sec,server.timezone,daylight_active); | ||||||
off = strftime(buf,sizeof(buf),"%d %b %Y %H:%M:%S.",&tm); | ||||||
snprintf(buf+off,sizeof(buf)-off,"%03d",(int)tv.tv_usec/1000); | ||||||
if (server.sentinel_mode) { | ||||||
|
@@ -1120,7 +1122,7 @@ static inline void updateCachedTimeWithUs(int update_daylight_info, const long l | |||||
struct tm tm; | ||||||
time_t ut = server.unixtime; | ||||||
localtime_r(&ut,&tm); | ||||||
server.daylight_active = tm.tm_isdst; | ||||||
atomicSet(server.daylight_active, tm.tm_isdst); | ||||||
} | ||||||
} | ||||||
|
||||||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The introduction of the
test-sanitizer-thread
job is a key part of the PR's objective to shift focus towards thread sanitizer testing. This job is well-configured to use specific compilers and set up the environment for thread sanitizer testing. However, there are security concerns related to the direct use of GitHub context variables inrun
steps, which could potentially allow code injection. To mitigate this risk, it's recommended to use environment variables to pass the GitHub context data to therun
scripts. Here's an example fix for one of the steps:This change should be applied to all instances where GitHub context variables are directly used in
run
steps throughout the workflow file.Committable suggestion