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

2015-09-24 Thread Curtis Hovey
This was fixed with updates and backports to the gccgo tool-chain.

** Changed in: juju-core (Ubuntu)
   Status: Confirmed => Fix Released

** Changed in: juju-core
   Status: Triaged => Fix Released

-- 
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/juju-core/+bug/1347322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


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

2014-10-28 Thread Curtis Hovey
** Changed in: juju-core
   Importance: High = Medium

** Changed in: juju-core
Milestone: next-stable = None

-- 
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/juju-core/+bug/1347322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


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

2014-08-18 Thread Curtis Hovey
** Tags added: panic

-- 
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/juju-core/+bug/1347322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


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

2014-07-25 Thread Matt Bruzek
With sinzui's help I have compiled the latest version of Juju 1.20.2
with the gccgo-4.9_4.9.1-1ubuntu3_ppc64el.deb.

NOT able to reproduce the “juju ssh” panic/problem having several ssh
sessions open simultaneously and having output streaming for over 2
hours.

For clarity and review here are the details of how we build the deb
packages for Juju with the gccgo 4.9.1 compiler on the CI machine
stilson-09 (a P8 64k page size machine).

ubuntu@stilson-09:~⟫ uname -a
Linux stilson-09 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:29:18 UTC 2014 
ppc64le ppc64le ppc64le GNU/Linux
ubuntu@stilson-09:~⟫ getconf PAGE_SIZE
65536
ubuntu@stilson-09:~⟫ more /proc/cpuinfo 
processor   : 0
cpu : POWER8E (raw), altivec supported
clock   : 4116.00MHz
revision: 2.0 (pvr 004b 0200)

processor   : 1
cpu : POWER8E (raw), altivec supported
clock   : 4116.00MHz
revision: 2.0 (pvr 004b 0200)

timebase: 51200
platform: pSeries
model   : IBM pSeries (emulated by qemu)
machine : CHRP IBM pSeries (emulated by qemu)

Downloaded the following packages from:
https://launchpad.net/ubuntu/utopic/ppc64el/gccgo-4.9/4.9.1-1ubuntu3

binutils_2.24.51.20140709-1ubuntu1_ppc64el.deb
cpp-4.9_4.9.1-1ubuntu3_ppc64el.deb
gcc-4.9_4.9.1-1ubuntu3_ppc64el.deb
gcc-4.9-base_4.9.1-1ubuntu3_ppc64el.deb
gccgo-4.9_4.9.1-1ubuntu3_ppc64el.deb
libatomic1_4.9.1-1ubuntu3_ppc64el.deb
libgcc1_4.9.1-1ubuntu3_ppc64el.deb
libgcc-4.9-dev_4.9.1-1ubuntu3_ppc64el.deb
libgo5_4.9.1-1ubuntu3_ppc64el.deb
libgomp1_4.9.1-1ubuntu3_ppc64el.deb
libitm1_4.9.1-1ubuntu3_ppc64el.deb

Installed the packages on stilson-09:

ubuntu@stilson-09:~/gccgo⟫ sudo dpkg -i *.deb

ubuntu@stilson-09:~/gccgo⟫ dpkg -l | grep gcc
ii  gcc4:4.8.2-1ubuntu6  
ppc64el  GNU C compiler
ii  gcc-4.84.8.3-3ubuntu0.2  
ppc64el  GNU C compiler
ii  gcc-4.8-base:ppc64el   4.8.3-3ubuntu0.2  
ppc64el  GCC, the GNU Compiler Collection (base package)
ii  gcc-4.94.9.1-1ubuntu3
ppc64el  GNU C compiler
ii  gcc-4.9-base:ppc64el   4.9.1-1ubuntu3
ppc64el  GCC, the GNU Compiler Collection (base package)
ii  gccgo  4:4.9-1ubuntu6
ppc64el  Go compiler, based on the GCC backend
ii  gccgo-4.9  4.9.1-1ubuntu3
ppc64el  GNU Go compiler
ii  gccgo-go   1.2.1-0ubuntu1
ppc64el  Go tool for use with gccgo
ii  libgcc-4.8-dev:ppc64el 4.8.3-3ubuntu0.2  
ppc64el  GCC support library (development files)
ii  libgcc-4.9-dev:ppc64el 4.9.1-1ubuntu3
ppc64el  GCC support library (development files)
ii  libgcc1:ppc64el1:4.9.1-1ubuntu3  
ppc64el  GCC support library

Built Juju from source on stilson-09:

sinzui ~/Work/juju-release-tools/make-source-packages.bash stable 
juju-core_1.20.2.tar.gz 'Curtis Hovey curtis.ho...@canonical.com' 1340893 
1345014 1344940 1345832 1307434 1347371 1337091 1342747 1343301 1341589
sinzui  ~/Work/juju-release-tools/build-package-with-dsc.bash 
ubuntu@stilson-09 '' 
/home/curtis/Downloads/tmp.WUZeXOfFz1/juju-core_1.20.2-0ubuntu1~14.04.1~juju1.dsc

Resulting in:

ubuntu@stilson-09:~⟫ ls -l juju-build
total 17332
-rw-r--r-- 1 ubuntu ubuntu 6944 Jul 25 15:05 
juju_1.20.2-0ubuntu1~14.04.1~juju1_all.deb
drwxrwxr-x 7 ubuntu ubuntu 4096 Jul 25 15:04 juju-core-1.20.2
-rw--- 1 ubuntu ubuntu 8356 Jul 25 15:04 
juju-core_1.20.2-0ubuntu1~14.04.1~juju1.debian.tar.gz
-rw--- 1 ubuntu ubuntu 1183 Jul 25 15:04 
juju-core_1.20.2-0ubuntu1~14.04.1~juju1.dsc
-rw-rw-r-- 1 ubuntu ubuntu 3133 Jul 25 15:05 
juju-core_1.20.2-0ubuntu1~14.04.1~juju1_ppc64el.changes
-rw-r--r-- 1 ubuntu ubuntu 14341816 Jul 25 15:05 
juju-core_1.20.2-0ubuntu1~14.04.1~juju1_ppc64el.deb
-rw-rw-r-- 1 ubuntu ubuntu  3354392 Jul 25 15:03 juju-core_1.20.2.orig.tar.gz
-rw-r--r-- 1 ubuntu ubuntu 7020 Jul 25 15:05 
juju-local_1.20.2-0ubuntu1~14.04.1~juju1_all.deb
-rw-r--r-- 1 ubuntu ubuntu 7022 Jul 25 15:05 
juju-local-kvm_1.20.2-0ubuntu1~14.04.1~juju1_all.deb

I copied these deb packages to stilson-01:
ubuntu@stilson-01:~$ ls -l juju-build
total 14032
-rw-r--r-- 1 ubuntu ubuntu 6944 Jul 25 15:21 
juju_1.20.2-0ubuntu1~14.04.1~juju1_all.deb
-rw-r--r-- 1 ubuntu ubuntu 14341816 Jul 25 15:22 
juju-core_1.20.2-0ubuntu1~14.04.1~juju1_ppc64el.deb
-rw-r--r-- 1 ubuntu ubuntu 7020 Jul 25 15:22 
juju-local_1.20.2-0ubuntu1~14.04.1~juju1_all.deb
-rw-r--r-- 1 ubuntu ubuntu 7022 Jul 25 15:22 
juju-local-kvm_1.20.2-0ubuntu1~14.04.1~juju1_all.deb

Installed the deb packages on stilson-01:

sudo dpkg -i *.deb

ubuntu@stilson-01:~$ dpkg -l | grep juju
ii  juju   

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

2014-07-25 Thread Dave Cheney
btw. This has nothing to do with ssh, it is to do with the length of
time the juju cli process is running for. Normally this is a very
short period, but juju ssh forks ssh as a child then waits for it to
finish. The crash is caused by a bug in the previous runtime (compiled
statically into the binary) when the garbage collector had been
running for long enough to call madvise(DONT_NEED, ...) with the wrong
page size.

On Sat, Jul 26, 2014 at 8:22 AM, Matt Bruzek
matthew.bru...@canonical.com wrote:
 With sinzui's help I have compiled the latest version of Juju 1.20.2
 with the gccgo-4.9_4.9.1-1ubuntu3_ppc64el.deb.

 NOT able to reproduce the “juju ssh” panic/problem having several ssh
 sessions open simultaneously and having output streaming for over 2
 hours.

 For clarity and review here are the details of how we build the deb
 packages for Juju with the gccgo 4.9.1 compiler on the CI machine
 stilson-09 (a P8 64k page size machine).

 ubuntu@stilson-09:~⟫ uname -a
 Linux stilson-09 3.13.0-24-generic #47-Ubuntu SMP Fri May 2 23:29:18 UTC 2014 
 ppc64le ppc64le ppc64le GNU/Linux
 ubuntu@stilson-09:~⟫ getconf PAGE_SIZE
 65536
 ubuntu@stilson-09:~⟫ more /proc/cpuinfo
 processor   : 0
 cpu : POWER8E (raw), altivec supported
 clock   : 4116.00MHz
 revision: 2.0 (pvr 004b 0200)

 processor   : 1
 cpu : POWER8E (raw), altivec supported
 clock   : 4116.00MHz
 revision: 2.0 (pvr 004b 0200)

 timebase: 51200
 platform: pSeries
 model   : IBM pSeries (emulated by qemu)
 machine : CHRP IBM pSeries (emulated by qemu)

 Downloaded the following packages from:
 https://launchpad.net/ubuntu/utopic/ppc64el/gccgo-4.9/4.9.1-1ubuntu3

 binutils_2.24.51.20140709-1ubuntu1_ppc64el.deb
 cpp-4.9_4.9.1-1ubuntu3_ppc64el.deb
 gcc-4.9_4.9.1-1ubuntu3_ppc64el.deb
 gcc-4.9-base_4.9.1-1ubuntu3_ppc64el.deb
 gccgo-4.9_4.9.1-1ubuntu3_ppc64el.deb
 libatomic1_4.9.1-1ubuntu3_ppc64el.deb
 libgcc1_4.9.1-1ubuntu3_ppc64el.deb
 libgcc-4.9-dev_4.9.1-1ubuntu3_ppc64el.deb
 libgo5_4.9.1-1ubuntu3_ppc64el.deb
 libgomp1_4.9.1-1ubuntu3_ppc64el.deb
 libitm1_4.9.1-1ubuntu3_ppc64el.deb

 Installed the packages on stilson-09:

 ubuntu@stilson-09:~/gccgo⟫ sudo dpkg -i *.deb

 ubuntu@stilson-09:~/gccgo⟫ dpkg -l | grep gcc
 ii  gcc4:4.8.2-1ubuntu6  
 ppc64el  GNU C compiler
 ii  gcc-4.84.8.3-3ubuntu0.2  
 ppc64el  GNU C compiler
 ii  gcc-4.8-base:ppc64el   4.8.3-3ubuntu0.2  
 ppc64el  GCC, the GNU Compiler Collection (base package)
 ii  gcc-4.94.9.1-1ubuntu3
 ppc64el  GNU C compiler
 ii  gcc-4.9-base:ppc64el   4.9.1-1ubuntu3
 ppc64el  GCC, the GNU Compiler Collection (base package)
 ii  gccgo  4:4.9-1ubuntu6
 ppc64el  Go compiler, based on the GCC backend
 ii  gccgo-4.9  4.9.1-1ubuntu3
 ppc64el  GNU Go compiler
 ii  gccgo-go   1.2.1-0ubuntu1
 ppc64el  Go tool for use with gccgo
 ii  libgcc-4.8-dev:ppc64el 4.8.3-3ubuntu0.2  
 ppc64el  GCC support library (development files)
 ii  libgcc-4.9-dev:ppc64el 4.9.1-1ubuntu3
 ppc64el  GCC support library (development files)
 ii  libgcc1:ppc64el1:4.9.1-1ubuntu3  
 ppc64el  GCC support library

 Built Juju from source on stilson-09:

 sinzui ~/Work/juju-release-tools/make-source-packages.bash stable 
 juju-core_1.20.2.tar.gz 'Curtis Hovey curtis.ho...@canonical.com' 1340893 
 1345014 1344940 1345832 1307434 1347371 1337091 1342747 1343301 1341589
 sinzui  ~/Work/juju-release-tools/build-package-with-dsc.bash 
 ubuntu@stilson-09 '' 
 /home/curtis/Downloads/tmp.WUZeXOfFz1/juju-core_1.20.2-0ubuntu1~14.04.1~juju1.dsc

 Resulting in:

 ubuntu@stilson-09:~⟫ ls -l juju-build
 total 17332
 -rw-r--r-- 1 ubuntu ubuntu 6944 Jul 25 15:05 
 juju_1.20.2-0ubuntu1~14.04.1~juju1_all.deb
 drwxrwxr-x 7 ubuntu ubuntu 4096 Jul 25 15:04 juju-core-1.20.2
 -rw--- 1 ubuntu ubuntu 8356 Jul 25 15:04 
 juju-core_1.20.2-0ubuntu1~14.04.1~juju1.debian.tar.gz
 -rw--- 1 ubuntu ubuntu 1183 Jul 25 15:04 
 juju-core_1.20.2-0ubuntu1~14.04.1~juju1.dsc
 -rw-rw-r-- 1 ubuntu ubuntu 3133 Jul 25 15:05 
 juju-core_1.20.2-0ubuntu1~14.04.1~juju1_ppc64el.changes
 -rw-r--r-- 1 ubuntu ubuntu 14341816 Jul 25 15:05 
 juju-core_1.20.2-0ubuntu1~14.04.1~juju1_ppc64el.deb
 -rw-rw-r-- 1 ubuntu ubuntu  3354392 Jul 25 15:03 juju-core_1.20.2.orig.tar.gz
 -rw-r--r-- 1 ubuntu ubuntu 7020 Jul 25 15:05 
 juju-local_1.20.2-0ubuntu1~14.04.1~juju1_all.deb
 -rw-r--r-- 1 ubuntu ubuntu 7022 Jul 25 15:05 
 juju-local-kvm_1.20.2-0ubuntu1~14.04.1~juju1_all.deb

 I copied these deb 

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

2014-07-23 Thread Curtis Hovey
** Also affects: juju-core
   Importance: Undecided
   Status: New

** Changed in: juju-core
   Status: New = Triaged

** Changed in: juju-core
   Importance: Undecided = High

** Changed in: juju-core
Milestone: None = next-stable

** Tags added: ppc64el

-- 
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/juju-core/+bug/1347322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


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

2014-07-23 Thread Antonio Rosales
Note, we have gotten an initial report from the field as to this failing
and it is blocking Juju Power deployments.

-thanks,
Antonio

-- 
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/juju-core/+bug/1347322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


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

2014-07-23 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: juju-core (Ubuntu)
   Status: New = Confirmed

-- 
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/juju-core/+bug/1347322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


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

2014-07-23 Thread Nate Finch
Is there a more complete log output?  This seems like just a snippet.

-- 
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/juju-core/+bug/1347322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


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

2014-07-23 Thread Matt Bruzek
** Attachment added: The juju logs from the 1.18.1 panic on stilson-01.
   
https://bugs.launchpad.net/ubuntu/+source/juju-core/+bug/1347322/+attachment/4161298/+files/machine_logs.tar.gz

-- 
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/juju-core/+bug/1347322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


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

2014-07-23 Thread Steve Langasek
** Description changed:

  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 init
  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@ubuntu-local-machine-1:~$ panic: runtime error: invalid memory address 
or nil pointer dereference
-[signal 0xb code=0x1 addr=0x8]
+    [signal 0xb code=0x1 addr=0x8]
  
-  goroutine 11 [running]:
- 
code.google.com_p_go.net_websocket.Send.N40_code.
+  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
+ 
/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
+  
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:
+ 
/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
+   
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
+ 
/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
+   
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
+ 
/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/
+ 
/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_
+    
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
+ 
/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
+   
  /build/buildd/juj
  u-core-1.18.1/src/launchpad.net/juju-core/state/api/apiclient.go:158
- 
launchpad.net_juju_core_state_api
+ 
launchpad.net_juju_core_state_api
  .heartbeatMonitor.pN39_launchpad.net_juju_core_state_api.State
- 
/build/buildd/juju-core-1.18.1/sr
+ 
/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
- 

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

2014-07-23 Thread Steve Langasek
** Description changed:

  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 init
  juju bootstrap -e local
+ juju switch 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@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
     

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

2014-07-23 Thread Steve Langasek
I have tried to reproduce this problem in utopic on rockne (a P7+
system), and it's not reproducible for me.

# grep P /proc/cpuinfo 
cpu : POWER7+ (raw), altivec supported
cpu : POWER7+ (raw), altivec supported
machine : CHRP IBM pSeries (emulated by qemu)
# uname -a
Linux rockne-06 3.13.0-22-generic #44-Ubuntu SMP Wed Apr 2 20:06:28 UTC 2014 
ppc64le ppc64le ppc64le GNU/Linux
# zgrep 64K_PAGES /proc/config.gz  
CONFIG_PPC_64K_PAGES=y
# sudo apt-get install lxc
# lxc-create -n utopic-test -t ubuntu -- --release utopic
# sed -i -e'/lxc.aa_profile/d' /var/lib/lxc/utopic-test/config
# echo 'lxc.aa_profile = lxc-container-default-with-nesting'  
/var/lib/lxc/utopic-test/config
# echo 'lxc.mount.auto = cgroup'  /var/lib/lxc/utopic-test/config
# lxc-start --name utopic-test
[...]
Ubuntu Utopic Unicorn (development branch) utopic-test console

utopic-test login: ubuntu
Password: ubuntu
[...]
ubuntu@utopic-test:~$ sudo apt-get install juju juju-local bzr
$ mkdir -p charms/trusty
$ bzr branch http://bazaar.launchpad.net/~charmers/charms/trusty/ubuntu/trunk/ 
charms/trusty/ubuntu
$ juju init
$ juju bootstrap -e local
$ juju switch local
$ juju deploy --repository=$(pwd)/charms local:trusty/ubuntu
$ juju ssh ubuntu/0
[...]
ubuntu@ubuntu-local-machine-1:~$ /var/lib/juju/tools/machine-1/jujud --version
1.18.4.1-trusty-ppc64
$

I've stayed logged in for over 10 minutes with no problems, have
installed packages inside the container, etc.

So there are several variables here:

 - utopic has juju 1.18.4, not 1.18.1.
 - the system is a P7+, not a P8 as in the original report.
 - this is built with the utopic gccgo-4.9 package, not the backported one in 
trusty.

The last of these is unlikely to be the cause.  Someone with access to a
P8 machine should ideally try to reproduce with this same method there,
to check whether this is a P8-specific issue.

-- 
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/juju-core/+bug/1347322/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs