Skip to content
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

plugin/trace: fix struct allignment #4112

Merged
merged 2 commits into from Sep 9, 2020
Merged

plugin/trace: fix struct allignment #4112

merged 2 commits into from Sep 9, 2020

Conversation

miekg
Copy link
Member

@miekg miekg commented Sep 9, 2020

A 64 bit entity needs to be the first in a struct to make it work on 32
bit systems.

Fixes: #4111

A 64 bit entity needs to be the first in a struct to make it work on 32
bit systems.

Fixes: #4111

Signed-off-by: Miek Gieben <miek@miek.nl>
Signed-off-by: Miek Gieben <miek@miek.nl>
@codecov-commenter
Copy link

codecov-commenter commented Sep 9, 2020

Codecov Report

Merging #4112 into master will decrease coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4112      +/-   ##
==========================================
- Coverage   57.10%   57.05%   -0.05%     
==========================================
  Files         222      222              
  Lines       11279    11280       +1     
==========================================
- Hits         6441     6436       -5     
- Misses       4346     4350       +4     
- Partials      492      494       +2     
Impacted Files Coverage Δ
plugin/erratic/erratic.go 68.00% <ø> (ø)
plugin/trace/trace.go 79.06% <ø> (ø)
plugin/kubernetes/metrics.go 78.57% <0.00%> (-21.43%) ⬇️
plugin/clouddns/clouddns.go 82.72% <0.00%> (-2.73%) ⬇️
plugin/forward/setup.go 64.77% <0.00%> (+0.22%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ca43f84...0bb0bab. Read the comment docs.

@miekg miekg merged commit e082bb5 into master Sep 9, 2020
@miekg miekg deleted the trace-struct branch September 9, 2020 08:45
nyodas pushed a commit to DataDog/coredns that referenced this pull request Oct 26, 2020
* plugin/trace: fix struct allignment

A 64 bit entity needs to be the first in a struct to make it work on 32
bit systems.

Fixes: coredns#4111

Signed-off-by: Miek Gieben <miek@miek.nl>

* plugin/erratic does makes the same mistake

Signed-off-by: Miek Gieben <miek@miek.nl>
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.

atomic.AddUint64 in 32-bit cause panic
3 participants