Bug 223978 - REGRESSION(r274244): [GTK][WPE] Two http/tests/security/contentSecurityPolicy tests crash
Summary: REGRESSION(r274244): [GTK][WPE] Two http/tests/security/contentSecurityPolicy...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Carlos Alberto Lopez Perez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2021-03-30 19:37 PDT by Carlos Alberto Lopez Perez
Modified: 2021-03-31 01:42 PDT (History)
10 users (show)

See Also:


Attachments
Patch (3.12 KB, patch)
2021-03-30 19:51 PDT, Carlos Alberto Lopez Perez
no flags Details | Formatted Diff | Diff
Patch (4.06 KB, patch)
2021-03-30 20:32 PDT, Carlos Alberto Lopez Perez
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Alberto Lopez Perez 2021-03-30 19:37:30 PDT
This two tests crash after r274244 on GTK and WPE ports

Regressions: Unexpected crashes (2)
 http/tests/security/contentSecurityPolicy/1.1/scripthash-allowed-by-legacy-enforced-policy-and-blocked-by-report-policy.py [ Crash ]
 http/tests/security/contentSecurityPolicy/1.1/scripthash-blocked-by-legacy-enforced-policy-and-blocked-by-report-policy.py [ Crash ]



A libsoup critical warning is emitted when running this tests:

(process:4649): libsoup-CRITICAL **: 04:19:24.386: soup_filter_input_stream_read_until: assertion '!include_boundary || (boundary_length < length)' failed

Debugging the issue it seems is related that the Apache server now doesn't send a "Content-length" header with the size of the body for the new version of the tests with cgi/python
Therefore in that case we should end the text stream with an empty \r\n
Comment 1 Carlos Alberto Lopez Perez 2021-03-30 19:51:07 PDT
Created attachment 424728 [details]
Patch
Comment 2 Carlos Alberto Lopez Perez 2021-03-30 20:32:37 PDT
Created attachment 424731 [details]
Patch
Comment 3 EWS 2021-03-31 01:41:21 PDT
Committed r275274: <https://commits.webkit.org/r275274>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 424731 [details].
Comment 4 Radar WebKit Bug Importer 2021-03-31 01:42:13 PDT
<rdar://problem/76043842>