Closed Bug 1358288 Opened 7 years ago Closed 7 years ago

js-ctypes call to GetVersionEx is using the wrong ABI

Categories

(Toolkit :: Telemetry, defect, P1)

39 Branch
Unspecified
Windows
defect

Tracking

()

RESOLVED FIXED
mozilla55
Tracking Status
firefox-esr45 --- wontfix
firefox-esr52 --- wontfix
firefox53 --- wontfix
firefox54 --- fixed
firefox55 --- fixed

People

(Reporter: bugzilla, Assigned: bugzilla)

References

Details

(Keywords: regression, Whiteboard: [measurement:client][ctypes.abi])

Attachments

(1 file)

The ABI needs to be winapi_abi, not default_abi!
(This is in TelemetryEnvironment.jsm)
Assignee: nobody → aklotz
Priority: -- → P1
Whiteboard: [measurement:client]
Comment on attachment 8860183 [details]
Bug 1358288: Fix incorrect ABI specification for js-ctypes declaration of GetVersionExW;

https://reviewboard.mozilla.org/r/132212/#review135268

Thanks!

A look through dxr shows that other code does this as well:
https://dxr.mozilla.org/mozilla-central/search?q=kernel32.declare&redirect=false

Do we have bugs on those?
Attachment #8860183 - Flags: review?(gfritzsche) → review+
Pushed by aklotz@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/ce93446fe101
Fix incorrect ABI specification for js-ctypes declaration of GetVersionExW; r=gfritzsche
https://hg.mozilla.org/mozilla-central/rev/ce93446fe101
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Whiteboard: [measurement:client] → [measurement:client][ctypes.abi]
(In reply to Georg Fritzsche [:gfritzsche] from comment #3)
> A look through dxr shows that other code does this as well:
> https://dxr.mozilla.org/mozilla-central/search?q=kernel32.
> declare&redirect=false
> 
> Do we have bugs on those?

In progress...
Comment on attachment 8860183 [details]
Bug 1358288: Fix incorrect ABI specification for js-ctypes declaration of GetVersionExW;

Approval Request Comment
[Feature/Bug causing the regression]: JS code in Telemetry
[User impact if declined]: Potential for crashes and/or data corruption
[Is this code covered by automated tests?]: Yes
[Has the fix been verified in Nightly?]: Yes
[Needs manual test from QE? If yes, steps to reproduce]: No
[List of other uplifts needed for the feature/fix]: None
[Is the change risky?]: No
[Why is the change risky/not risky?]: Trivial patch
[String changes made/needed]: None
Attachment #8860183 - Flags: approval-mozilla-beta?
Comment on attachment 8860183 [details]
Bug 1358288: Fix incorrect ABI specification for js-ctypes declaration of GetVersionExW;

[Approval Request Comment]
If this is not a sec:{high,crit} bug, please state case for ESR consideration: This is a stability issue
User impact if declined: Potential for crashing / data corruption
Fix Landed on Version: 55, 54 requested
Risk to taking this patch (and alternatives if risky): None. Trivial patch
String or UUID changes made by this patch: None

See https://wiki.mozilla.org/Release_Management/ESR_Landing_Process for more info.
Attachment #8860183 - Flags: approval-mozilla-esr52?
Blocks: 1122052
Keywords: regression
Version: unspecified → 39 Branch
Comment on attachment 8860183 [details]
Bug 1358288: Fix incorrect ABI specification for js-ctypes declaration of GetVersionExW;

Fix a potential crash. Beta54+. Should be in 54 beta 3.
Attachment #8860183 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
(In reply to Aaron Klotz [:aklotz] (a11y work receiving priority right now) from comment #7)
> [Is this code covered by automated tests?]: Yes
> [Has the fix been verified in Nightly?]: Yes
> [Needs manual test from QE? If yes, steps to reproduce]: No

Setting qe-verify- based on Aaron's assessment on manual testing needs and the fact that this fix has automated coverage.
Flags: qe-verify-
Comment on attachment 8860183 [details]
Bug 1358288: Fix incorrect ABI specification for js-ctypes declaration of GetVersionExW;

Cancelling ESR52 request. I have looked at the libffi code and there is no chance of crashing given the way it is implemented.
Attachment #8860183 - Flags: approval-mozilla-esr52?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: