nokia / nokia/corteca-cli

cc: internal compiler error: Segmentation fault signal terminated program cc1

Open
#43 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
29
Forks
12
Avg merge
19h 37m
Merged PRs (30d)
2

Description

While building an application with corteca build, randomly we receive the following error:

...

14.54 cc -Werror -Wall -Wextra -Wformat=2 -Wshadow -Wwrite-strings -Wredundant-decls -Wpedantic -Wmissing-declarations -Wno-format-nonliteral -fPIC -g3 -I ../include -I ../include_priv -Wstrict-prototypes -Wold-style-definition -Wnested-externs -Wdeclaration-after-statement -std=c11 -c -o ../output/aarch64-alpine-linux-musl/amxc_string.o amxc_string.c
15.70 cc: internal compiler error: Segmentation fault signal terminated program cc1
15.70 Please submit a full bug report, with preprocessed source (by using -freport-bug).
15.70 See <https://gitlab.alpinelinux.org/alpine/aports/-/issues> for instructions.
15.70 make[1]: *** [makefile:62: ../output/aarch64-alpine-linux-musl/amxc_string.o] Error 4
15.70 make[1]: Leaving directory '/Ambiorix/libamxc/src'
15.71 make: *** [makefile:23: all] Error 2
...

The workaround I have found is to run the following command:

sudo sysctl -w kernel.randomize_va_space=0

This command is from a related issue of buildx, which is used internally by corteca.
Related issue: https://github.com/docker/buildx/issues/3170

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by reproducing the failure with corteca build, then inspect how its internal Docker buildx invocation reaches makefile:62 while compiling src/amxc_string.c. Compare the behavior with the linked buildx issue and the kernel.randomize_va_space=0 workaround; done means identifying whether corteca can resolve the crash or documenting that the fault is external.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, docker, go
Domain
build-system, cli, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.