Bug 226639 - Compile errors by unexpected values in ANGLE functions
Summary: Compile errors by unexpected values in ANGLE functions
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: WebKit Local Build
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-06-04 04:08 PDT by Eleni Maria Stea
Modified: 2021-06-07 13:28 PDT (History)
9 users (show)

See Also:


Attachments
Patch (2.03 KB, patch)
2021-06-04 04:16 PDT, Eleni Maria Stea
no flags Details | Formatted Diff | Diff
Patch (1.47 KB, patch)
2021-06-07 04:25 PDT, Eleni Maria Stea
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eleni Maria Stea 2021-06-04 04:08:13 PDT
ANGLE functions GetInteger64vRobustANGLE and GetInteger64i_vRobustANGLE expect a value of GLint64* aka long int * but we try to fit a pointer to a long long int. We need to fix the compile errors.
Comment 1 Eleni Maria Stea 2021-06-04 04:16:40 PDT
Created attachment 430567 [details]
Patch
Comment 2 Fujii Hironori 2021-06-06 18:50:15 PDT
ANGLE seems to use int64_t and uint64_t.
What about changing GCGLint64 and GCGLuint64?

typedef int64_t GCGLint64;
typedef uint64_t GCGLuint64;
Comment 3 Kimmo Kinnunen 2021-06-07 02:21:47 PDT
(In reply to Fujii Hironori from comment #2)
> ANGLE seems to use int64_t and uint64_t.
> What about changing GCGLint64 and GCGLuint64?
> 
> typedef int64_t GCGLint64;
> typedef uint64_t GCGLuint64;

This sounds like a good solution
Comment 4 Eleni Maria Stea 2021-06-07 03:56:57 PDT
sure, I am going to update it
Comment 5 Eleni Maria Stea 2021-06-07 04:25:28 PDT
Created attachment 430735 [details]
Patch
Comment 6 Kenneth Russell 2021-06-07 08:53:27 PDT
The failures on mac-AS-debug-wk2 look unrelated:

Application Specific Information:
CRASHING TEST: /canvas/webgl/origin-clean-conformance.html

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.JavaScriptCore      	0x0000000103235374 WTFCrash + 20
1   com.apple.WebCore             	0x00000001200c0e70 WTFCrashWithInfo(int, char const*, char const*, int) + 32
2   com.apple.WebCore             	0x0000000121559bd4 WebCore::SharedRoutingArbitrator::endRoutingArbitrationForToken(WebCore::SharedRoutingArbitrator::Token const&) + 124
3   com.apple.WebKit              	0x000000010ce7a068 WebKit::AudioSessionRoutingArbitratorProxy::endRoutingArbitration() + 68
4   com.apple.WebKit              	0x000000010b7c64b4 void IPC::callMemberFunctionImpl<WebKit::AudioSessionRoutingArbitratorProxy, void (WebKit::AudioSessionRoutingArbitratorProxy::*)(), std::__1::tuple<> >(WebKit::AudioSessionRoutingArbitratorProxy*, void (WebKit::AudioSessionRoutingArbitratorProxy::*)(), std::__1::tuple<>&&, std::__1::integer_sequence<unsigned long>) + 124
5   com.apple.WebKit              	0x000000010b7c5fe0 void IPC::callMemberFunction<WebKit::AudioSessionRoutingArbitratorProxy, void (WebKit::AudioSessionRoutingArbitratorProxy::*)(), std::__1::tuple<>, std::__1::integer_sequence<unsigned long> >(std::__1::tuple<>&&, WebKit::AudioSessionRoutingArbitratorProxy*, void (WebKit::AudioSessionRoutingArbitratorProxy::*)()) + 124
6   com.apple.WebKit              	0x000000010b7c2a14 void IPC::handleMessage<Messages::AudioSessionRoutingArbitratorProxy::EndRoutingArbitration, WebKit::AudioSessionRoutingArbitratorProxy, void (WebKit::AudioSessionRoutingArbitratorProxy::*)()>(IPC::Decoder&, WebKit::AudioSessionRoutingArbitratorProxy*, void (WebKit::AudioSessionRoutingArbitratorProxy::*)()) + 160
7   com.apple.WebKit              	0x000000010b7c2778 WebKit::AudioSessionRoutingArbitratorProxy::didReceiveMessage(IPC::Connection&, IPC::Decoder&) + 200
8   com.apple.WebKit              	0x000000010bd5f6cc IPC::MessageReceiverMap::dispatchMessage(IPC::Connection&, IPC::Decoder&) + 384
9   com.apple.WebKit              	0x000000010cd96ac8 WebKit::AuxiliaryProcessProxy::dispatchMessage(IPC::Connection&, IPC::Decoder&) + 44
10  com.apple.WebKit              	0x000000010d09600c WebKit::WebProcessProxy::didReceiveMessage(IPC::Connection&, IPC::Decoder&) + 48
Comment 7 Kenneth Russell 2021-06-07 08:54:29 PDT
Comment on attachment 430735 [details]
Patch

Looks good to me given that this change compiles. r+
Comment 8 EWS 2021-06-07 13:27:57 PDT
Committed r278571 (238569@main): <https://commits.webkit.org/238569@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 430735 [details].
Comment 9 Radar WebKit Bug Importer 2021-06-07 13:28:19 PDT
<rdar://problem/78960589>