<pre class="notranslate">What steps will reproduce the problem?
1. install sdl (i used macports)
2. install go-sdl (github.com/banthar/Go-SDL). you can't use goinstall, and each
makefile needs to be tweaked to include the following line:
CGO_CFLAGS:=`pkg-config --cflags sdl | sed 's:\(-I[^ ]*\)/SDL:\1:'`)
3. build and run Go-SDL/test/test

this gives the error:
libcgo: could not obtain pthread_keys
    wanted 0x108 and 0x109
    got 0x10b 0x10c 0x10d 0x10e 0x10f 0x110 0x111 0x112 0x113 0x114 0x115 0x116 0x117 
0x118 0x119 0x11a

it looks like libsdl has grabbed too many thread keys already
before libcgo gets a look in. perhaps 0x108 and 0x109 should be
considerably higher numbers.

and indeed, when i change my local repository to use 0x128 and 0x129 (0x4e8)
things get much further (still doesn't work, but that's another issue)

darwin 386 ad738cffc309+ tip</pre>
<pre class="notranslate">What steps will reproduce the problem?
1. sudo apt-get install mongodb-server
2. go get -u launchpad.net/juju-core/...
3. go test launchpad.net/juju-core/cmd/jujud

What is the expected output? What do you see instead?

% go test launchpad.net/juju-core/cmd/jujud                                             
               
panic: runtime error: call of nil func value
[signal 0xb code=0x1 addr=0x0 pc=0x0]

goroutine 16 [running]:
runtime.panic(0x9182e0, 0xdb281c)
        /home/dfc/go/src/pkg/runtime/panic.c:279 +0xf5
strconv.init()
        /home/dfc/go/src/pkg/strconv/atoi.go:10 +0x43
testing.init()
        /home/dfc/go/src/pkg/testing/testing.go:656 +0x43
launchpad.net/juju-core/cmd/jujud.init()
        /home/dfc/src/launchpad.net/juju-core/cmd/jujud/upgrade_test.go:138 +0x51
main.init()
        /tmp/go-build380384730/launchpad.net/juju-core/cmd/jujud/_test/_testmain.go:50 +0x3b

goroutine 17 [runnable]:
runtime.MHeap_Scavenger()
        /home/dfc/go/src/pkg/runtime/mheap.c:507
runtime.goexit()
        /home/dfc/go/src/pkg/runtime/proc.c:1430
FAIL    launchpad.net/juju-core/cmd/jujud       0.004s

Please use labels and text to provide additional information.

% uname -a
Linux lucky 3.11.0-19-generic #33-Ubuntu SMP Tue Mar 11 18:48:34 UTC 2014 x86_64 x86_64
x86_64 GNU/Linux
% go version
go version devel +94d84d24086b Wed Apr 09 18:23:53 2014 -0700 + linux/amd64</pre>