Skip to content

strconv: panic during init() #7749

@davecheney

Description

@davecheney
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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions