Failed to precompile HTTP on i686

Open Beginner friendly
#1,558 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
julia
Domain
backend

Research direction

Start with the linked code in src/hpack.jl at line 747 and reproduce the failure by precompiling HTTP with Julia 1.13.3 on i686. Trace the UInt32 to Int32 conversion that raises InexactError and check nearby tests for HPACK behavior. The issue is resolved when HTTP precompiles successfully on that target and the relevant tests pass.

Written by the indexing model from the issue text.

Description

Test with julia +rc~x86 (v1.13.3)

https://github.com/JuliaWeb/HTTP.jl/blob/e52bb211245e4cee0f963a009a338d758942a12e/src/hpack.jl#L747

ERROR: LoadError: InexactError: convert(Int32, 0xffffffff)
Stacktrace:
  [1] throw_inexacterror(func::Symbol, to::Type, val::UInt32)
    @ Core .\boot.jl:868
  [2] check_sign_bit
    @ .\boot.jl:874 [inlined]
  [3] toInt32
    @ .\boot.jl:923 [inlined]
  [4] Int32(x::UInt32)
    @ Core .\boot.jl:1009
  [5] top-level scope
    @ C:\Users\inkyd\.julia\packages\HTTP\DDvUa\src\hpack.jl:747
  [6] include(mapexpr::Function, mod::Module, _path::String)
    @ Base .\Base.jl:310
  [7] top-level scope
    @ C:\Users\inkyd\.julia\packages\HTTP\DDvUa\src\HTTP.jl:42
  [8] include(mod::Module, _path::String)
    @ Base .\Base.jl:309
  [9] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing, preresolved::Vector{Pair{Base.PkgId, String}})
    @ Base .\loading.jl:3229
 [10] top-level scope
    @ stdin:5
 [11] eval(m::Module, e::Any)
    @ Core .\boot.jl:489
 [12] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
    @ Base .\loading.jl:3064
 [13] include_string
    @ .\loading.jl:3074 [inlined]
 [14] exec_options(opts::Base.JLOptions)
    @ Base .\client.jl:342
 [15] _start()
    @ Base .\client.jl:577
in expression starting at C:\Users\inkyd\.julia\packages\HTTP\DDvUa\src\hpack.jl:747
in expression starting at C:\Users\inkyd\.julia\packages\HTTP\DDvUa\src\HTTP.jl:1
in expression starting at stdin:5
  ✗ HTTP
Precompiling HTTP finished.
Dominant language
Julia
Stars
688
Forks
196
Avg merge
5h 59m
Merged PRs (30d)
148

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JuliaWeb/HTTP.jl

All issues in JuliaWeb/HTTP.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.