Skip to content

Instantly share code, notes, and snippets.

View dgolombek's full-sized avatar

Dave Golombek dgolombek

  • Lookout, Inc
  • New York City
View GitHub Profile
# Stolen from
# https://github.com/nginxinc/nginx-unsupported-modules/blob/master/ngx_otel_module/Dockerfile.base.debian
# plus
# https://github.com/nginxinc/nginx-unsupported-modules/blob/master/ngx_otel_module/Dockerfile.debian
# Updated to build on U18, and had to update the apt-add-repository for cmake to target bionic
# Updated to build DEBUG target for debugging
FROM <local_repo>/ubuntu18:latest
ENV DEBIAN_FRONTEND=noninteractive
ENV GRPC_VERSION_TAG=v1.36.4
@dgolombek
dgolombek / gdb thread dump
Created January 21, 2021 19:13
java thread dump
(gdb) thread apply 91 backtrace
Thread 91 (Thread 0x7f53fd386700 (LWP 11415)):
#0 pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1 0x00007f5465f979e8 in Parker::park(bool, long) () from /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so
#2 0x00007f5466124384 in Unsafe_Park () from /usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so
#3 0x00007f54528af12a in ?? ()
#4 0x00000006c0259770 in ?? ()
#5 0x00000006f7344ee0 in ?? ()
#6 0x00000007a4cc2328 in ?? ()
@dgolombek
dgolombek / gist:8b3ce3c68e7cd53438b758f1825061f5
Created July 15, 2020 18:39
JRuby 9.2.12.0 thread dump
This file has been truncated, but you can view the full file.
Full thread dump OpenJDK 64-Bit Server VM (25.252-b09 mixed mode):
"JMX server connection timeout 2703" #2703 daemon prio=5 os_prio=0 tid=0x00007f059c33a800 nid=0x13a2 in Object.wait() [0x00007f055b791000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at com.sun.jmx.remote.internal.ServerCommunicatorAdmin$Timeout.run(ServerCommunicatorAdmin.java:168)
- locked <0x0000000729300170> (a [I)
at java.lang.Thread.run(Thread.java:748)
"qtp668849042-2702" #2702 prio=5 os_prio=0 tid=0x00007f05d5fc6800 nid=0x139d waiting on condition [0x00007f055b892000]
@dgolombek
dgolombek / gist:676c5695b720120f1b4ae6ccc589fd20
Created July 15, 2020 18:39
JRuby 9.2.12.0 thread dump
This file has been truncated, but you can view the full file.
Full thread dump OpenJDK 64-Bit Server VM (25.252-b09 mixed mode):
"JMX server connection timeout 2703" #2703 daemon prio=5 os_prio=0 tid=0x00007f059c33a800 nid=0x13a2 in Object.wait() [0x00007f055b791000]
java.lang.Thread.State: TIMED_WAITING (on object monitor)
at java.lang.Object.wait(Native Method)
at com.sun.jmx.remote.internal.ServerCommunicatorAdmin$Timeout.run(ServerCommunicatorAdmin.java:168)
- locked <0x0000000729300170> (a [I)
at java.lang.Thread.run(Thread.java:748)
"qtp668849042-2702" #2702 prio=5 os_prio=0 tid=0x00007f05d5fc6800 nid=0x139d waiting on condition [0x00007f055b892000]
@dgolombek
dgolombek / enum_spec.rb
Last active July 2, 2020 14:57
JRuby enum spec bug
require 'spec_helper'
def check_iter(iter, first)
raise "bad first element on first peek, #{iter.peek.id} != #{first.id}" unless iter.peek.id == first.id
raise "bad first element on second peek" unless iter.peek.id == first.id
raise "bad first element on next" unless iter.next.id == first.id
end
describe 'Enumerator' do
context 'with a single value in an AR array' do

Keybase proof

I hereby claim:

  • I am dgolombek on github.
  • I am daveg (https://keybase.io/daveg) on keybase.
  • I have a public key whose fingerprint is FF98 2D77 13AD CA30 972A 20D0 5B69 0988 5B0C 77BA

To claim this, I am signing this object: