Skip to content

Instantly share code, notes, and snippets.

time="2016-01-19T14:51:15.264108533Z" level=info msg="Layer sha256:4e0e182967f847e292d3b8c8ebff2cf567c6a38713ddbad9f40e8dad2e603ff4 cleaned up"
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x20 pc=0x815856]
goroutine 1 [running]:
github.com/docker/docker/layer.NewStoreFromGraphDriver(0x7fd78c5eee38, 0xc820616d80, 0x7fd78c5eed38, 0xc820357220, 0x0, 0x0, 0x0, 0x0)
/go/src/github.com/docker/docker/layer/layer_store.go:90 +0x446
github.com/docker/docker/layer.NewStoreFromOptions(0xc820611800, 0xf, 0xc820258140, 0x20, 0x7ffd15737edb, 0x4, 0x0, 0x0, 0x0, 0x0, ...)
/go/src/github.com/docker/docker/layer/layer_store.go:66 +0x496
github.com/docker/docker/daemon.NewDaemon(0xc82032f080, 0xc8203580e0, 0x0, 0x0, 0x0)
This file has been truncated, but you can view the full file.
docker logo
Dashboard
Explore
Organizations
Search
Create
Create Repository
Create Automated Build
Create Organization
: core 0: 0x00000000000ad068 (0xf00516e3) bnez a0, pc - 244
: core 0: 0x00000000000ad06c (0xf29ff06f) j pc - 0xd8
: core 0: 0x00000000000acf94 (0x0b040993) addi s3, s0, 176
: core 0: 0x00000000000acf98 (0x00098513) mv a0, s3
: core 0: 0x00000000000acf9c (0xfc8b50ef) jal pc - 0x4a838
: core 0: 0x0000000000062764 (0xfe010113) addi sp, sp, -32
: core 0: 0x0000000000062768 (0x00913423) sd s1, 8(sp)
: core 0: 0x000000000006276c (0x00113c23) sd ra, 24(sp)
: core 0: 0x0000000000062770 (0x00813823) sd s0, 16(sp)
: core 0: 0x0000000000062774 (0x01213023) sd s2, 0(sp)
@justincormack
justincormack / notes
Created January 19, 2015 01:06
notes
Fun things to do with a rump kernel
NetBSD has a feature called the "rump kernel". This lets you run parts of NetBSD wherever you like. It has NetBSD's portability promise and will run on FreeBSD or OpenBSD, or on Xen without an operating system at all. The obligatory toaster support is underway.
This talk is recommended for people who like operating systems, hate operating systems, or just want to get them to work.
This talk will explain what the rump kernel is, how it differs from virtual machines, usermode operating systems, unikernels, containers and jails, and what you can use it for.
As a hacker I want to
1. Write drivers more easily
@justincormack
justincormack / gist:fb0cd45de85f6b2e2817
Created December 29, 2014 22:08
asm patch for rumpfiber
diff -urN --exclude CVS /home/justin/netbsd/src/lib/librumpuser/arch/x86_64/rumpfiber_create_ctx.c lib/librumpuser/arch/x86_64/rumpfiber_create_ctx.c
--- /home/justin/netbsd/src/lib/librumpuser/arch/x86_64/rumpfiber_create_ctx.c 1970-01-01 01:00:00.000000000 +0100
+++ lib/librumpuser/arch/x86_64/rumpfiber_create_ctx.c 2014-12-29 09:50:48.402573022 +0000
@@ -0,0 +1,12 @@
+#include <rumpfiber.h>
+
+void
+arch_create_ctx(struct rf_context *ctx, void *stack, size_t stack_size,
+ void (*f)(void *), void *data)
+{
%rename cpp_options old_cpp_options
*cpp_options:
-nostdinc -isystem @PATH@/rump/include -isystem include%s %(old_cpp_options)
*cc1:
%(cc1_cpu) -nostdinc -isystem @PATH@/rump/include -isystem include%s
*link:
-nostdlib -L .%s @LDLIBS@
@justincormack
justincormack / gist:9931322
Last active August 29, 2015 13:58
rump android patches
diff --git a/lib/librumpclient/rumpclient.c b/lib/librumpclient/rumpclient.c
index a92dbdd..5a2ad58 100644
--- a/lib/librumpclient/rumpclient.c
+++ b/lib/librumpclient/rumpclient.c
@@ -84,9 +84,17 @@ int (*host_socket)(int, int, int);
int (*host_close)(int);
int (*host_connect)(int, const struct sockaddr *, socklen_t);
int (*host_fcntl)(int, int, ...);
+#ifdef __ANDROID__
+int (*host_poll)(struct pollfd *, nfds_t, long);
RCS file: /cvsroot/src/lib/librumpuser/rumpuser_dl.c,v
retrieving revision 1.26
diff -u -r1.26 rumpuser_dl.c
--- lib/librumpuser/rumpuser_dl.c 13 Mar 2014 11:21:54 -0000 1.26
+++ lib/librumpuser/rumpuser_dl.c 14 Mar 2014 00:53:49 -0000
@@ -382,6 +382,9 @@
int error;
mainhandle = dlopen(NULL, RTLD_NOW);
+ /* Will be null if statically linked so just return */
@justincormack
justincormack / gist:9451966
Created March 9, 2014 18:17
__thread patch
diff --git a/lib/librumpuser/rumpuser_pth.c b/lib/librumpuser/rumpuser_pth.c
index 87828a7..6999be2 100644
--- a/lib/librumpuser/rumpuser_pth.c
+++ b/lib/librumpuser/rumpuser_pth.c
@@ -622,13 +622,15 @@ rumpuser_cv_has_waiters(struct rumpuser_cv *cv, int *nwaiters)
* curlwp
*/
-static pthread_key_t curlwpkey;
+static __thread struct lwp *curlwp;
Index: ./sys/kern/init_sysctl_base.c
===================================================================
RCS file: /cvsroot/src/sys/kern/init_sysctl_base.c,v
retrieving revision 1.1
diff -u -r1.1 init_sysctl_base.c
--- ./sys/kern/init_sysctl_base.c 16 Sep 2009 15:03:56 -0000 1.1
+++ ./sys/kern/init_sysctl_base.c 24 Feb 2014 22:02:19 -0000
@@ -34,6 +34,9 @@
#include <sys/param.h>