Skip to content

Instantly share code, notes, and snippets.

View myitcv's full-sized avatar

Paul Jolly myitcv

View GitHub Profile
@myitcv
myitcv / 02 info threads output
Last active April 17, 2016 07:37
Gitlab frozen mailroom diagnostics part 2 - working process
(gdb) info threads
Id Target Id Frame
5 Thread 0x7f6e086cc700 (LWP 26063) "ruby-timer-thr" 0x00007f6e07cf912d in poll () at ../sysdeps/unix/syscall-template.S:81
4 Thread 0x7f6dfd2db700 (LWP 26074) "ruby" 0x00007f6e07cf91ef in __GI_ppoll (fds=fds@entry=0x7f6dfd2da500, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:56
3 Thread 0x7f6dfd1da700 (LWP 26076) "ruby" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
2 Thread 0x7f6dfd0d9700 (LWP 26218) "ruby" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
* 1 Thread 0x7f6e086c1740 (LWP 26057) "ruby" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
@myitcv
myitcv / 02 info threads output
Created April 25, 2016 13:58
Gitlab frozen mailroom diagnostics part 1 - when mailroom has hung v02
6 Thread 0x7f0c11dee700 (LWP 19571) "ruby-timer-thr" 0x00007f0c1141b12d in poll () at ../sysdeps/unix/syscall-template.S:81
5 Thread 0x7f0c068cc700 (LWP 19584) "ruby" pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
4 Thread 0x7f0c065c9700 (LWP 18956) "ruby" 0x00007f0c1141b1ef in __GI_ppoll (fds=fds@entry=0x7f0c065c8500, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:56
3 Thread 0x7f0c067cb700 (LWP 21862) "ruby" 0x00007f0c1141b1ef in __GI_ppoll (fds=fds@entry=0x7f0c067ca500, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:56
2 Thread 0x7f0c069cd700 (LWP 21864) "ruby" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
* 1 Thread 0x7f0c11de3740 (LWP 19569) "ruby" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysde
@myitcv
myitcv / bt_01.txt
Created May 3, 2016 11:39
TypeScript strictNullCheck loop analysis
#0 tsc.js:18416:17
#1 tsc.js:18363:36
#2 tsc.js:18391:28
#3 tsc.js:18356:36
#4 tsc.js:18421:25
#5 tsc.js:18363:36
#6 tsc.js:18391:28
#7 tsc.js:18356:36
#8 tsc.js:18421:25
#9 tsc.js:18363:36
@myitcv
myitcv / 01 info threads output
Last active May 25, 2016 19:52
8.8.1 9b9e320 hang/no progress
(gdb) info threads
Id Target Id Frame
6 Thread 0x7efc38d53700 (LWP 3644) "ruby-timer-thr" 0x00007efc3838012d in poll () at ../sysdeps/unix/syscall-template.S:81
5 Thread 0x7efc2d7f1700 (LWP 4278) "ruby" pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
4 Thread 0x7efc2d5ef700 (LWP 6629) "ruby" 0x00007efc383801ef in __GI_ppoll (fds=fds@entry=0x7efc2d5ee500, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:56
3 Thread 0x7efc2e119700 (LWP 7156) "ruby" 0x00007efc383801ef in __GI_ppoll (fds=fds@entry=0x7efc2e118500, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:56
2 Thread 0x7efc2d6f0700 (LWP 13665) "ruby" 0x00007efc383801ef in __GI_ppoll (fds=fds@entry=0x7efc2d6ef500, nfds=nfds@entry=1, timeout=<optimized out>, timeout@entry=0x0, sigmask=sigmask@entry=0x0) at
@myitcv
myitcv / build_output
Created August 19, 2016 08:56
sort inlining
$ go build -gcflags=-m
./main.go:11: can inline dataLess
./main.go:25: can inline dataSwap
./main.go:164: inlining call to dataLess
./main.go:167: inlining call to dataLess
./main.go:170: inlining call to dataSwap
./main.go:187: inlining call to dataSwap
./main.go:198: inlining call to dataLess
./main.go:199: inlining call to dataSwap
./main.go:202: inlining call to dataLess
@myitcv
myitcv / output.md
Last active April 9, 2017 12:33
Output from dep go tool example
$ go list -json github.com/pkg/errors
can't load package: package github.com/pkg/errors: cannot find package "github.com/pkg/errors" in any of:
        /home/myitcv/gos/src/github.com/pkg/errors (from $GOROOT)
        /tmp/tmp.YRDnF4mfJG/src/github.com/pkg/errors (from $GOPATH)
$ go test github.com/pkg/errors
can't load package: package github.com/pkg/errors: cannot find package "github.com/pkg/errors" in any of:
        /home/myitcv/gos/src/github.com/pkg/errors (from $GOROOT)
        /tmp/tmp.YRDnF4mfJG/src/github.com/pkg/errors (from $GOPATH)
$ go vet github.com/pkg/errors
@myitcv
myitcv / gdb_output.txt
Created August 1, 2017 13:03
core_dump.node.45621.myitcv-virtual-machine.1501592095
(gdb) where
#0 0x000039709bb9f1c5 in ?? ()
#1 0x00001c675bd1e739 in ?? ()
#2 0x00007ffe2916c1c8 in ?? ()
#3 0x000039709c30c411 in ?? ()
#4 0x00000c2944473521 in ?? ()
#5 0x00001c675bd3fb69 in ?? ()
#6 0x0000000000000000 in ?? ()
(gdb) bt full
#0 0x000039709bb9f1c5 in ?? ()
@myitcv
myitcv / 0. Summary.md
Last active November 7, 2017 15:34
Chrome Canary issues report 2017-11-07

Summary: 90-95% of the time absolutely fine. Good speed, responsiveness etc.

See issues listed below, giving details of when things go wrong 5-10% of the time. These issues seem to correspond to when I've opened WhatsApp web. Indeed I'm yet to experience any issues if I don't launch a tab with WhatsApp web in a Chrome session.

See also the errors list of unique errors seen in the terminal (from which I launched Chrome)

@myitcv
myitcv / 01_ReactTeamProposal.ts
Last active September 18, 2019 15:32
Typescript example comparing various signatures for getDerivedStateFromProps
interface MyCompProps {
model: Model;
modParams: ModParams;
}
interface MyCompState {
derived1?: Derived1;
derived2?: Derived2;
initialized: boolean;
#!/usr/bin/env bash
set -eu
cd `mktemp -d`
export GOPATH=$PWD
pwd
root="github.com/myitcv"
v1="v1.2.0"