Skip to content

GHA/linux: add HTTP/3 c-ares scan-build and asan jobs - #18693

Closed
vszakats wants to merge 10 commits into
curl:masterfrom
vszakats:sb-h3
Closed

vszakats wants to merge 10 commits into
curl:masterfrom
vszakats:sb-h3

Conversation

@vszakats

@vszakats vszakats commented Sep 23, 2025 •

Copy link
Copy Markdown
Member

They use Linuxbrew instead of locally built components.

Linuxbrew limitations compared to the locally built components in
GHA/http3-linux:

  • libngtcp2 currently supports OpenSSL only.
  • wolfssl can't coexist with openssl.
  • somewhat tricky configuration with autotools.

Upside is easy of use, always the latest versions (may be downside),
and availability of almost all packages.


@vszakats vszakats added the CI Continuous Integration label Sep 23, 2025
@vszakats
vszakats marked this pull request as draft September 23, 2025 08:19
@testclutch

This comment was marked as outdated.

vszakats added a commit to vszakats/curl that referenced this pull request Sep 23, 2025
Same issue as seen earlier in the tsan job. Fix it the same way, by
switching to cmake to avoid autotools' libtool confusing the analyzer.
Ref: 2a46df3 curl#18274

Configuration remains identical. I removed libssh2 from the installed
packages, because it was unused before, but cmake enabled it by default
and libssh2 has many memory leaks:
Ref: https://github.com/curl/curl/actions/runs/17941312820/job/51018425159

```
/usr/bin/llvm-symbolizer-18: /home/runner/work/curl/curl/bld/lib/.libs/libcurl.so.4: no version information available (required by /usr/bin/llvm-symbolizer-18)
 /usr/bin/llvm-symbolizer-18: symbol lookup error: /home/runner/work/curl/curl/bld/lib/.libs/libcurl.so.4: undefined symbol: __asan_option_detect_stack_use_after_return
 ==33900==WARNING: Can't read from symbolizer at fd 3
 [..]
 ==33900==WARNING: Can't write to symbolizer at fd 6
 ==33900==WARNING: Failed to use and restart external symbolizer
```
Ref: https://github.com/curl/curl/actions/runs/17939949191/job/51013953675?pr=18693

Cherry-picked from curl#18693
vszakats added a commit that referenced this pull request Sep 23, 2025
Same issue as seen earlier in the tsan job. Fix it the same way, by
switching to cmake to avoid autotools' libtool confusing the analyzer.
Ref: 2a46df3 #18274

Configuration remains identical. I removed libssh2 from the installed
packages, because it was unused before, but cmake enabled it by default
and libssh2 has memory leaks:
Ref: https://github.com/curl/curl/actions/runs/17941312820/job/51018425159

Fixing:
```
/usr/bin/llvm-symbolizer-18: /home/runner/work/curl/curl/bld/lib/.libs/libcurl.so.4: no version information available (required by /usr/bin/llvm-symbolizer-18)
/usr/bin/llvm-symbolizer-18: symbol lookup error: /home/runner/work/curl/curl/bld/lib/.libs/libcurl.so.4: undefined symbol: __asan_option_detect_stack_use_after_return
==33900==WARNING: Can't read from symbolizer at fd 3
[..]
==33900==WARNING: Can't write to symbolizer at fd 6
==33900==WARNING: Failed to use and restart external symbolizer
```
Ref: https://github.com/curl/curl/actions/runs/17939949191/job/51013953675?pr=18693

Cherry-picked from #18693
Closes #18696
@vszakats vszakats changed the title GHA: try enabling more features GHA/linux: add HTTP/3 + c-ares scan-build job Sep 23, 2025
@vszakats

Copy link
Copy Markdown
Member Author

Is this worth the 10 minutes it takes?

@vszakats
vszakats marked this pull request as ready for review September 23, 2025 10:56
@vszakats vszakats changed the title GHA/linux: add HTTP/3 + c-ares scan-build job GHA/linux: add HTTP/3 + c-ares scan-build and asan jobs Sep 23, 2025
@vszakats vszakats changed the title GHA/linux: add HTTP/3 + c-ares scan-build and asan jobs GHA/linux: add HTTP/3 c-ares scan-build and asan jobs Sep 23, 2025
@vszakats

Copy link
Copy Markdown
Member Author

It settled at 13 minutes for the scan-build and 5-6 minutes for the address sanitizer H3 build. Total of 20m.

The configs can be reused for normal, quicker, jobs, to enable H3 in them. Compared to http3-linux, these
only use pre-build binaries, from Linuxbrew. (consequently they bump automatically.)

@vszakats vszakats added the HTTP/3 h3 or quic related label Sep 23, 2025
@vszakats vszakats closed this in 9ebf778 Oct 2, 2025
@vszakats
vszakats deleted the sb-h3 branch October 2, 2025 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration HTTP/3 h3 or quic related

Development

Successfully merging this pull request may close these issues.

2 participants