Skip to content

Instantly share code, notes, and snippets.

View sebglon's full-sized avatar

Sébastien GLON sebglon

View GitHub Profile
@sebglon
sebglon / Dockerfile
Created March 14, 2023 08:39
Debug logstash and filebeat
FROM docker.elastic.co/logstash/logstash:8.4.2
USER root
RUN apt update && apt install -y curl unzip default-jre && \
curl -L -O https://github.com/elastic/support-diagnostics/releases/download/v8.4.1/diagnostics-8.4.1-dist.zip && \
unzip diagnostics-8.4.1-dist.zip
@sebglon
sebglon / bad_strace.out
Last active July 31, 2020 07:13
yarn segmentation fault
5186 execve("/usr/bin/yarn", ["yarn", "-v"], 0x7ffe38c710c0 /* 31 vars */) = 0
5186 brk(NULL) = 0x55e2c14f3000
5186 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
5186 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 4
5186 fstat(4, {st_mode=S_IFREG|0644, st_size=24715, ...}) = 0
5186 mmap(NULL, 24715, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7fef1d2f9000
5186 close(4) = 0
5186 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 4
5186 read(4, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260A\2\0\0\0\0\0"..., 832) = 832
5186 fstat(4, {st_mode=S_IFREG|0755, st_size=1824496, ...}) = 0
5186 execve("/usr/bin/yarn", ["yarn", "-v"], 0x7ffe38c710c0 /* 31 vars */) = 0
5186 brk(NULL) = 0x55e2c14f3000
5186 access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
5186 openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 4
5186 fstat(4, {st_mode=S_IFREG|0644, st_size=24715, ...}) = 0
5186 mmap(NULL, 24715, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7fef1d2f9000
5186 close(4) = 0
5186 openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 4
5186 read(4, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260A\2\0\0\0\0\0"..., 832) = 832
5186 fstat(4, {st_mode=S_IFREG|0755, st_size=1824496, ...}) = 0
{
"version": 4,
"terraform_version": "0.12.23",
"serial": 239,
"lineage": "bf85ecf1-a2c7-5678-6598-1837e2391ccf",
"outputs": {},
"resources": [
{
"mode": "managed",
"type": "google_project",
2019/02/27 11:46:16 [INFO] Terraform version: 0.11.11 ac4fff416318bf0915a0ab80e062a99ef3724334
2019/02/27 11:46:16 [INFO] Go runtime version: go1.11.1
2019/02/27 11:46:16 [INFO] CLI args: []string{"/usr/bin/terraform", "destroy", "--target", "module.module2-2"}
2019/02/27 11:46:16 [DEBUG] Attempting to open CLI config file: /home/sebglon/.terraformrc
2019/02/27 11:46:16 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/02/27 11:46:16 [INFO] CLI command args: []string{"destroy", "--target", "module.module2-2"}
2019/02/27 11:46:16 [DEBUG] checking for provider in "/usr/bin"
2019/02/27 11:46:16 [DEBUG] checking for provider in ".terraform/plugins/linux_amd64"
2019/02/27 11:46:16 [DEBUG] found provider "terraform-provider-google_v2.0.0_x4"
2019/02/27 11:46:16 [DEBUG] found valid plugin: "google", "2.0.0", "/home/sebglon/git-repo/tf-tmp/.terraform/plugins/linux_amd64/terraform-provider-google_v2.0.0_x4"
Verbose logs are written to:
/tmp/vscode-go-debug.txt
3:52:10 PM, 10/30/2018
InitializeRequest
InitializeResponse
Using GOPATH: /home/sebglon/go
Current working directory: /home/sebglon/go/src/github.com/akeneo/helm-backup/test/e2e
Running: /home/sebglon/go/bin/dlv test github.com/akeneo/helm-backup/test/e2e --headless=true --listen=127.0.0.1:37593 --api-version=2 --log=true -- --kubeconfig /home/sebglon/.kube/config --operator-image=eu.gcr.io/akeneo-cloud/backup:0.3.0 --projectid=akecld-saas-dev --zone=europe-west3-a
InitializeEvent
SetBreakPointsRequest
package main
import (
"flag"
"fmt"
"io"
"log"
"net/url"
"os"