qemu-user-static icon indicating copy to clipboard operation
qemu-user-static copied to clipboard

Segmentation fault signal terminated program CC1 issue while building Multiarch image on x86

Open mukundhan90 opened this issue 1 year ago • 10 comments

Is this a bug report, feature (enhancement) request or question? (leave only one on its own line) Question /kind bug

/kind enhancement

/kind question

Description:

Steps to reproduce the issue:

Describe the results you received:

Describe the results you expected:

Environment: Prod

  • QEMU version: (if you can know it): 7.2..0-1
  • Container application: Docker/Podman/Singularity (Leave only one) podman Output of docker version, podman version or singularity version
(paste your output here)

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

Please submit a full bug report,

with preprocessed source if appropriate.

See file:///usr/share/doc/gcc-10/README.Bugs for instructions.

make[3]: *** [Makefile:1802: Objects/funcobject.o] Error 4

make[3]: *** Waiting for unfinished jobs....

make[3]: Leaving directory '/home/appuser/Python-3.9.13' Additional information optionally:

mukundhan90 avatar Jan 07 '25 05:01 mukundhan90

I also made the same mistake, have you solved it

Jiawei202010 avatar Jan 13 '25 02:01 Jiawei202010

I also made the same mistake, have you solved it

Nope

mukundhan90 avatar Jan 13 '25 05:01 mukundhan90

This error started for our builds about a week ago. Compiler SEGFAULTs when buildling python via penv (and other downstream build tasks).

robertlsutton avatar Jan 21 '25 03:01 robertlsutton

This error started for our builds about a week ago. Compiler SEGFAULTs when buildling python via penv (and other downstream build tasks).

Yes, building python is the issue,Were you able to resolve it?

mukundhan90 avatar Jan 23 '25 03:01 mukundhan90

This is probably related to https://github.com/tonistiigi/binfmt/issues/215. See https://github.com/tonistiigi/binfmt/issues/215#issuecomment-2613004741 for more details on the root cause.

itrich avatar Feb 07 '25 16:02 itrich

I'm also getting segfaults when installing anything that requires libc-bin, e.g. jq

59.71 Processing triggers for libc-bin (2.35-0ubuntu3.8) ...
59.83 qemu: uncaught target signal 11 (Segmentation fault) - core dumped
59.84 Segmentation fault (core dumped)

Macariel avatar Feb 27 '25 14:02 Macariel

facing the same mistake. in my situation I found it happens only on i9/xeon cpu, but ok on i7 platform need help

PinkGabriel avatar Mar 15 '25 02:03 PinkGabriel

same error, is there any solutions to solve this problem?

crazyevent avatar Nov 04 '25 09:11 crazyevent

facing the same mistake. in my situation I found it happens only on i9/xeon cpu, but ok on i7 platform need help

it seems happening on some extra feature on xeon? like AVX-2 or VT-x?

crazyevent avatar Nov 04 '25 10:11 crazyevent

guys, I found a solution, using https://hub.docker.com/r/linuxserver/qemu-static instead.

crazyevent avatar Nov 04 '25 10:11 crazyevent