Skip to content

Zig build causes segfault when package manager depends on .url from github with https #15723

Open
@edyu

Description

@edyu

Zig Version

0.11.0-dev.3879+5804f3f75

Steps to Reproduce and Observed Behavior

This is more of informational than exact step. I don't know enough of the internals to pinpoint where the error originated from but maybe someone who does can see what would cause this problem.
I have 2 laptops (one has intel and the other has amd). Both run windows 11 and I use both with Ubuntu 22.04 LTS WSL2.
On one of them when I call zig build on for example the zigzap/zap repository, it would cause the following error:
signal SIGSEGV (Address boundary error)
However, after I installed gdb with sudo apt install gdb the problem went away. SEE BELOW

EDIT: It didn't go away as I now realized that once I download it once (using a workaround of localhost serving the package with http not https) and it gets cached.

EDIT2: The package IS available at the url as I can download the package manually.

Expected Behavior

Should compile ok without installing gdb first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behavior

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions