[Bug 1347322] [NEW] juju ssh results in a panic: runtime error

Matt Bruzek matthew.bruzek at canonical.com
Wed Jul 23 01:41:18 UTC 2014


Public bug reported:

I am using Juju on Power 8 hardware and I get a panic when I use juju to
ssh to a system.  The reproduction steps are

juju bootstrap -e local
juju deploy local:trusty/ubuntu
juju ssh ubuntu/0

(use the session to the local machine and after some time the panic
happens and the screen is unreadable.)

ubuntu at ubuntu-local-machine-1:~$ panic: runtime error: invalid memory address or nil pointer dereference
   [signal 0xb code=0x1 addr=0x8]

                                 goroutine 11 [running]:
                                                        code.google.com_p_go.net_websocket.Send.N40_code.
google.com_p_go.net_websocket.Codec
                                        /build/buildd/juju-core-1.18.1/src/code.google.com/p/go.net/webso
cket/websocket.go:293
                         launchpad.net_juju_core_rpc_jsoncodec.Send.N48_launchpad.net_juju_core_rpc_jsonc
odec.wsJSONConn
                        /build/buildd/juju-core-1.18.1/src/launchpad.net/juju-core/rpc/jsoncodec/conn.go:
21
      launchpad.net_juju_core_rpc_jsoncodec.WriteMessage.pN43_launchpad.net_juju_core_rpc_jsoncodec.Codec
        /build/buildd/juju-core-1.18.1/src/launchpad.net/juju-core/rpc/jsoncodec/codec.go:178
                                                                                             launchpad.ne
t_juju_core_rpc.send.pN32_launchpad.net_juju_core_rpc.Conn
                                                                /build/buildd/juju-core-1.18.1/src/launch
pad.net/juju-core/rpc/client.go:72
                                      launchpad.net_juju_core_rpc.Go.pN32_launchpad.net_juju_core_rpc.Con
n
        /build/buildd/juju-core-1.18.1/src/launchpad.net/juju-core/rpc/client.go:174
                                                                                    launchpad.net_juju_co
re_rpc.Call.pN32_launchpad.net_juju_core_rpc.Conn
                                                        /build/buildd/juju-core-1.18.1/src/launchpad.net/
juju-core/rpc/client.go:148
                               launchpad.net_juju_core_state_api.Call.pN39_launchpad.net_juju_core_state_
api.State
                /build/buildd/juju-core-1.18.1/src/launchpad.net/juju-core/state/api/apiclient.go:168
launchpad.net_juju_core_state_api.Ping.pN39_launchpad.net_juju_core_state_api.State
                                                                                        /build/buildd/juj
u-core-1.18.1/src/launchpad.net/juju-core/state/api/apiclient.go:158
                                                                        launchpad.net_juju_core_state_api
.heartbeatMonitor.pN39_launchpad.net_juju_core_state_api.State
                                                                        /build/buildd/juju-core-1.18.1/sr
c/launchpad.net/juju-core/state/api/apiclient.go:149
                                                        created by launchpad.net_juju_core_state_api.Open
        /build/buildd/juju-core-1.18.1/src/launchpad.net/juju-core/state/api/apiclient.go:143

                                                                                             goroutine 1 
[syscall]:
                goroutine in C code; stack unavailable

                                                      goroutine 3 [syscall]:
                                                                                goroutine in C code; stac
k unavailable

                 goroutine 10 [IO wait]:
                                        code.google.com_p_go.net_websocket.ReadByte.N57_code.google.com_p
_go.net_websocket.hybiFrameReaderFactory
                                                /build/buildd/juju-core-1.18.1/src/code.google.com/p/go.n
et/websocket/hybi.go:113
                            code.google.com_p_go.net_websocket.NewFrameReader.N57_code.google.com_p_go.ne
t_websocket.hybiFrameReaderFactory
                                        /build/buildd/juju-core-1.18.1/src/code.google.com/p/go.net/webso
cket/hybi.go:126
                    code.google.com_p_go.net_websocket.Receive.N40_code.google.com_p_go.net_websocket.Cod
ec
        /build/buildd/juju-core-1.18.1/src/code.google.com/p/go.net/websocket/websocket.go:314
                                                                                              launchpad.n
et_juju_core_rpc_jsoncodec.Receive.N48_launchpad.net_juju_core_rpc_jsoncodec.wsJSONConn
                                                                                                /build/bu
ildd/juju-core-1.18.1/src/launchpad.net/juju-core/rpc/jsoncodec/conn.go:25
                                                                              launchpad.net_juju_core_rpc
_jsoncodec.ReadHeader.pN43_launchpad.net_juju_core_rpc_jsoncodec.Codec
                                                                                /build/buildd/juju-core-1
.18.1/src/launchpad.net/juju-core/rpc/jsoncodec/codec.go:113
                                                                launchpad.net_juju_core_rpc.loop.pN32_lau
nchpad.net_juju_core_rpc.Conn
                                        /build/buildd/juju-core-1.18.1/src/launchpad.net/juju-core/rpc/se
rver.go:344
               launchpad.net_juju_core_rpc.input.pN32_launchpad.net_juju_core_rpc.Conn
                                                                                        /build/buildd/juj
u-core-1.18.1/src/launchpad.net/juju-core/rpc/server.go:317
                                                               created by launchpad.net_juju_core_rpc.Sta
rt.pN32_launchpad.net_juju_core_rpc.Conn
                                                /build/buildd/juju-core-1.18.1/src/launchpad.net/juju-cor
e/rpc/server.go:200


Here are the specifics on the host system.
                                                                                                
ubuntu at stilson-01:~$ uname -a
Linux stilson-01 3.13.0-32-generic #57-Ubuntu SMP Tue Jul 15 03:50:31 UTC 2014 ppc64le ppc64le ppc64le GN
U/Linux
ubuntu at stilson-01:~$ dpkg -l | grep juju
ii  juju                                   1.18.1-0ubuntu1.1                 all          next generation
 service orchestration system
ii  juju-core                              1.18.1-0ubuntu1.1                 ppc64el      Juju is devops 
distilled - client
ii  juju-deployer                          0.3.6-0ubuntu2                    all          Deploy complex 
stacks of services using Juju
ii  juju-jitsu                             0.20-1                            all          external tools 
to enhance juju
ii  juju-local                             1.18.1-0ubuntu1.1                 all          dependency pack
age for the Juju local provider
ii  juju-mongodb                           2.4.9-0ubuntu3                    ppc64el      MongoDB object/
document-oriented database for Juju
ii  juju-quickstart                        1.4.1+bzr88+ppa25~ubuntu14.04.1   all          Easy configurat
ion of Juju environments
ii  python-jujuclient                      0.17.5-0ubuntu2                   all          Python API clie
nt for juju
ubuntu at stilson-01:~$ getconf PAGE_SIZE
65536

I got this error when testing a fix for another bug:
https://bugs.launchpad.net/ubuntu/+source/gccgo-4.9/+bug/1304754

Since the dmesg looks different we believe this is a new problem.

** Affects: juju-core (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "The dmesg output from stilson-01 after installing 1.18.1 juju-core."
   https://bugs.launchpad.net/bugs/1347322/+attachment/4160410/+files/dmesg_1.18_output.txt

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to juju-core in Ubuntu.
https://bugs.launchpad.net/bugs/1347322

Title:
  juju ssh results in a panic: runtime error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/juju-core/+bug/1347322/+subscriptions



More information about the Ubuntu-server-bugs mailing list