Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error during capturing #7

Open
pashok2398 opened this issue Oct 17, 2019 · 2 comments
Open

Error during capturing #7

pashok2398 opened this issue Oct 17, 2019 · 2 comments

Comments

@pashok2398
Copy link

Hi team,
I am executing : kubectl capture xxx-deployment-687bd87b86-p2264 but getting error during gunzip

$ gunzip capture-xxx-deployment-687bd87b86-p2264-1571295964.scap.gz

gzip: capture-xxx-deployment-687bd87b86-p2264-1571295964.scap.gz: unexpected end of file
$  kubectl version
Client Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.1", GitCommit:"d647ddbd755faf07169599a625faf302ffc34458", GitTreeState:"clean", BuildDate:"2019-10-02T17:01:15Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.0", GitCommit:"e8462b5b5dc2584fdcd18e6bcfe9f1e4d970a529", GitTreeState:"clean", BuildDate:"2019-06-19T16:32:14Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"linux/amd64"}
$ kubectl logs capture-xxx-deployment-687bd87b86-p2264-1571295508 -f
* Setting up /usr/src links from host
* Unloading sysdig-probe, if present
* Running dkms install for sysdig

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area.......
make -j24 KERNELRELEASE=4.4.0-161-generic -C /lib/modules/4.4.0-161-generic/build M=/var/lib/dkms/sysdig/0.26.4/build..................(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.4.0-161-generic (x86_64)
Consult /var/lib/dkms/sysdig/0.26.4/build/make.log for more information.
* Running dkms build failed, dumping /var/lib/dkms/sysdig/0.26.4/build/make.log
DKMS make.log for sysdig-0.26.4 for kernel 4.4.0-161-generic (x86_64)
Thu Oct 17 06:58:45 UTC 2019
make: Entering directory '/host/usr/src/linux-headers-4.4.0-161-generic'
  LD      /var/lib/dkms/sysdig/0.26.4/build/built-in.o
  CC [M]  /var/lib/dkms/sysdig/0.26.4/build/main.o
  CC [M]  /var/lib/dkms/sysdig/0.26.4/build/dynamic_params_table.o
  CC [M]  /var/lib/dkms/sysdig/0.26.4/build/fillers_table.o
  CC [M]  /var/lib/dkms/sysdig/0.26.4/build/flags_table.o
  CC [M]  /var/lib/dkms/sysdig/0.26.4/build/ppm_events.o
  CC [M]  /var/lib/dkms/sysdig/0.26.4/build/ppm_fillers.o
  CC [M]  /var/lib/dkms/sysdig/0.26.4/build/event_table.o
  CC [M]  /var/lib/dkms/sysdig/0.26.4/build/syscall_table.o
  CC [M]  /var/lib/dkms/sysdig/0.26.4/build/ppm_cputime.o
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
make[1]: *** [scripts/Makefile.build:285: /var/lib/dkms/sysdig/0.26.4/build/syscall_table.o] Error 4
make[1]: *** Waiting for unfinished jobs....
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
make[1]: *** [scripts/Makefile.build:285: /var/lib/dkms/sysdig/0.26.4/build/main.o] Error 4
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
make[1]: *** [scripts/Makefile.build:285: /var/lib/dkms/sysdig/0.26.4/build/ppm_fillers.o] Error 4
make: *** [Makefile:1454: _module_/var/lib/dkms/sysdig/0.26.4/build] Error 2
make: Leaving directory '/host/usr/src/linux-headers-4.4.0-161-generic'
* Trying to load a system sysdig-probe, if present
* Trying to find precompiled sysdig-probe for 4.4.0-161-generic
Found kernel config at /host/boot/config-4.4.0-161-generic
* Trying to download precompiled module from https://s3.amazonaws.com/download.draios.com/stable/sysdig-probe-binaries/sysdig-probe-0.26.4-x86_64-4.4.0-161-generic-d4ee864423f81196c164a77a83c77e7a.ko
Download succeeded, loading module
* Capturing system calls
/bin/bash: line 1:  1085 Segmentation fault      (core dumped) sysdig -S -M 120 -pk -z -w /capture-xxx-deployment-687bd87b86-p2264-1571295508.scap.gz
$  kubectl exec -it capture-xxx-deployment-687bd87b86-p2264-1571295964 bash
root@capture-xxx-deployment-687bd87b86-p2264-1571295964:/# tail -f /var/lib/dkms/sysdig/0.26.4/build/make.log
DKMS make.log for sysdig-0.26.4 for kernel 4.4.0-161-generic (x86_64)
Thu Oct 17 07:06:21 UTC 2019
make: Entering directory '/host/usr/src/linux-headers-4.4.0-161-generic'
  LD      /var/lib/dkms/sysdig/0.26.4/build/built-in.o
  CC [M]  /var/lib/dkms/sysdig/0.26.4/build/main.o
  CC [M]  /var/lib/dkms/sysdig/0.26.4/build/dynamic_params_table.o
  CC [M]  /var/lib/dkms/sysdig/0.26.4/build/fillers_table.o
  CC [M]  /var/lib/dkms/sysdig/0.26.4/build/flags_table.o
  CC [M]  /var/lib/dkms/sysdig/0.26.4/build/ppm_events.o
  CC [M]  /var/lib/dkms/sysdig/0.26.4/build/ppm_fillers.o
  CC [M]  /var/lib/dkms/sysdig/0.26.4/build/event_table.o
  CC [M]  /var/lib/dkms/sysdig/0.26.4/build/syscall_table.o
  CC [M]  /var/lib/dkms/sysdig/0.26.4/build/ppm_cputime.o
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
make[1]: *** [scripts/Makefile.build:285: /var/lib/dkms/sysdig/0.26.4/build/ppm_fillers.o] Error 4
make[1]: *** Waiting for unfinished jobs....
gcc: internal compiler error: Killed (program cc1)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
make[1]: *** [scripts/Makefile.build:285: /var/lib/dkms/sysdig/0.26.4/build/main.o] Error 4
make: *** [Makefile:1454: _module_/var/lib/dkms/sysdig/0.26.4/build] Error 2
make: Leaving directory '/host/usr/src/linux-headers-4.4.0-161-generic'
command terminated with exit code 137
@dklesev
Copy link

dklesev commented Mar 25, 2020

@nestorsalceda any update on this?

@dklesev
Copy link

dklesev commented Mar 26, 2020

@pashok2398 increasing resources fixed my issue:

    resources:
      requests:
        cpu: 100m
        memory: 128Mi
      limits:
        cpu: 1
        memory: 1Gi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants