[Bug 1812387] Re: tmux crashes on tpm init

2019-02-21 Thread Karl Stenerud
** Tags removed: server-triage-discuss

** Package changed: tmux (Ubuntu) => tmux-plugin-manager (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1812387

Title:
  tmux crashes on tpm init

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tmux-plugin-manager/+bug/1812387/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1812387] Re: tmux crashes on tpm init

2019-02-14 Thread Karl Stenerud
Hi Prasanna,

I've checked on tmux-plugin-manager and as it is in universe, it isn't
directly supported by Canonical. If you would like to investigate
yourself and put in a fix, I can help guide you through the process.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1812387

Title:
  tmux crashes on tpm init

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/1812387/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1812387] Re: tmux crashes on tpm init

2019-02-14 Thread Robie Basak
** Tags added: server-triage-discuss

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1812387

Title:
  tmux crashes on tpm init

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/1812387/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1812387] Re: tmux crashes on tpm init

2019-02-13 Thread Karl Stenerud
** Description changed:

+ [Impact]
+ 
+ Initializing the tpm plugin for tmux causes it to crash.
+ 
+ [Test Case]
+ 
+ Getting the core dump is sometimes tricky. This procedure generates it
+ every time:
+ 
+ $ lxc launch ubuntu-daily:cosmic tester && lxc exec tester bash
+ 
+ # apt update && apt dist-upgrade -y && apt install -y tmux 
tmux-plugin-manager &&
+ ulimit -c unlimited &&
+ cat << 'EOF' >"$HOME/.tmux.conf"
+ # set prefix: Alt + e
+ set -g prefix M-e
+ # Let's bind this too, so that repeated
+ # presses work, esp. when nesting.
+ bind -n M-e send-prefix
+ 
+ # start window numbering at 1
+ set -g base-index 1
+ # start pane numbering at 1
+ set -g pane-base-index 1
+ 
+ # use mouse
+ set -g mouse on
+ setw -g mode-keys vi
+ 
+ # Use Alt-arrow keys WITHOUT PREFIX KEY to switch panes
+ bind -n M-Left select-pane -L
+ bind -n M-Right select-pane -R
+ bind -n M-Up select-pane -U
+ bind -n M-Down select-pane -D
+ 
+ set -g @scroll-down-exit-copy-mode off
+ set -g @scroll-without-changing-pane on
+ set -g @emulate-scroll-for-no-mouse-alternate-buffer on
+ 
+ # plugins
+ set -g @plugin 'tmux-plugins/tpm'
+ set -g @plugin 'tmux-plugins/tmux-sensible'
+ set -g @plugin 'tmux-plugins/tmux-resurrect'
+ set -g @plugin 'tmux-plugins/tmux-continuum'
+ set -g @plugin 'tmux-plugins/tmux-copycat'
+ set -g @plugin 'tmux-plugins/tmux-pain-control'
+ set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
+ set -g @plugin 'tmux-plugins/tmux-open'
+ set -g @plugin 'tmux-plugins/tmux-yank'
+ set -g @plugin 'nhdaly/tmux-better-mouse-mode'
+ set -g @plugin 'tmux-plugins/tmux-logging'
+ 
+ run -b "/usr/share/tmux-plugin-manager/tpm"
+ EOF
+ 
+ # tmux
+ 
+ * Press alt-e, then shift-i
+ * exit immediately:
+ 
+ # exit
+ # tmux
+ 
+ * Press alt-e, then shift-i
+ 
+ Result:
+ 
+ root@tester:~# [lost server]
+ root@tester:~#
+ 
+ [Original Description]
+ 
  Crash on a fresh install and first start after adding tmux plugin
  manager.
  
  ProblemType: Crash
  DistroRelease: Ubuntu 18.10
  Package: tmux 2.7-1
  ProcVersionSignature: Ubuntu 4.18.0-13.14-generic 4.18.17
  Uname: Linux 4.18.0-13-generic x86_64
  ApportVersion: 2.20.10-0ubuntu13.1
  Architecture: amd64
  CurrentDesktop: GNOME
  Date: Fri Jan 18 19:09:19 2019
  ExecutablePath: /usr/bin/tmux
  ExecutableTimestamp: 1523656091
  InstallationDate: Installed on 2019-01-01 (17 days ago)
  InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 
(20181017.3)
  ProcCmdline: tmux
  ProcCwd: /home/pvl
  Signal: 11
  SourcePackage: tmux
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip docker libvirt lpadmin plugdev sambashare sudo
  modified.conffile..etc.apport.crashdb.conf: [modified]
  mtime.conffile..etc.apport.crashdb.conf: 2019-01-15T04:51:59.517661

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1812387

Title:
  tmux crashes on tpm init

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/1812387/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1812387] Re: tmux crashes on tpm init

2019-02-13 Thread Karl Stenerud
Confirmed. LXD repro instructions:

$ lxc launch ubuntu-daily:cosmic tester && lxc exec tester bash

# apt update && apt dist-upgrade -y && apt install -y tmux tmux-plugin-manager 
&&
ulimit -c unlimited &&
cat << 'EOF' >"$HOME/.tmux.conf"
# set prefix: Alt + e
set -g prefix M-e
# Let's bind this too, so that repeated
# presses work, esp. when nesting.
bind -n M-e send-prefix

# start window numbering at 1
set -g base-index 1
# start pane numbering at 1
set -g pane-base-index 1

# use mouse
set -g mouse on
setw -g mode-keys vi

# Use Alt-arrow keys WITHOUT PREFIX KEY to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D

set -g @scroll-down-exit-copy-mode off
set -g @scroll-without-changing-pane on
set -g @emulate-scroll-for-no-mouse-alternate-buffer on

# plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
set -g @plugin 'tmux-plugins/tmux-logging'

run -b "/usr/share/tmux-plugin-manager/tpm"
EOF

# tmux

* Press alt-e, then shift-i
* exit immediately:

# exit
# tmux

* Press alt-e, then shift-i

Result:

root@tester:~# [lost server]
root@tester:~#


** Changed in: tmux (Ubuntu)
   Status: Incomplete => Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1812387

Title:
  tmux crashes on tpm init

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/1812387/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1812387] Re: tmux crashes on tpm init

2019-02-12 Thread Prasanna V. Loganathar
Reproduction steps again, for reference:

1. docker run -it --rm prasannavl/tmux-launchpad-bug-1812387
2. tmux
3. Alt + e + I
4. exit (Don't wait for tpm to finish)
5. tmux
6. Alt + e + I (again)

Wait for the tpm completion message, and visible tmux crash with [lost
server] message on console.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1812387

Title:
  tmux crashes on tpm init

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/1812387/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1812387] Re: tmux crashes on tpm init

2019-02-12 Thread Prasanna V. Loganathar
I've updated the docker image prasannavl/tmux-launchpad-bug-1812387 to
only use ubuntu-repo based tmux-plugin-manager.

It still crashes with "[lost-server]". Same steps as above should work.

**Dockerfile:**

```
FROM ubuntu:18.10

RUN apt update && apt dist-upgrade -y && \
apt install tmux tmux-plugin-manager git tree -y && \
ulimit -c unlimited

COPY tmux.conf "/root/.tmux.conf"
CMD bash
```

**tmux.conf:**

```
# set prefix: Alt + e
set -g prefix M-e
# Let's bind this too, so that repeated
# presses work, esp. when nesting.
bind -n M-e send-prefix

# start window numbering at 1
set -g base-index 1
# start pane numbering at 1
set -g pane-base-index 1

# use mouse
set -g mouse on
setw -g mode-keys vi

# Use Alt-arrow keys WITHOUT PREFIX KEY to switch panes
bind -n M-Left select-pane -L
bind -n M-Right select-pane -R
bind -n M-Up select-pane -U
bind -n M-Down select-pane -D

set -g @scroll-down-exit-copy-mode off
set -g @scroll-without-changing-pane on
set -g @emulate-scroll-for-no-mouse-alternate-buffer on

# plugins
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'tmux-plugins/tmux-copycat'
set -g @plugin 'tmux-plugins/tmux-pain-control'
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
set -g @plugin 'tmux-plugins/tmux-open'
set -g @plugin 'tmux-plugins/tmux-yank'
set -g @plugin 'nhdaly/tmux-better-mouse-mode'
set -g @plugin 'tmux-plugins/tmux-logging'

run -b "/usr/share/tmux-plugin-manager/tpm"

```

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1812387

Title:
  tmux crashes on tpm init

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/1812387/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1812387] Re: tmux crashes on tpm init

2019-02-06 Thread Karl Stenerud
Hi Prasanna,

Do you have repro steps that don't involve fetching from github? We can
only really work with setups that use ubuntu repositories, because
there's no way to tell how software from outside is set up.


** Tags removed: server-triage-discuss

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1812387

Title:
  tmux crashes on tpm init

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/1812387/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1812387] Re: tmux crashes on tpm init

2019-01-28 Thread Robie Basak
** Tags added: server-triage-discuss

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1812387

Title:
  tmux crashes on tpm init

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/1812387/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1812387] Re: tmux crashes on tpm init

2019-01-25 Thread Prasanna V. Loganathar
Reference attachment: Dockerfile


** Attachment added: "Dockerfile"
   
https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/1812387/+attachment/5232555/+files/Dockerfile

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1812387

Title:
  tmux crashes on tpm init

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/1812387/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1812387] Re: tmux crashes on tpm init

2019-01-25 Thread Prasanna V. Loganathar
Reference attachment: tmux.conf

** Attachment added: "tmux.conf"
   
https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/1812387/+attachment/5232556/+files/tmux.conf

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1812387

Title:
  tmux crashes on tpm init

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/1812387/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1812387] Re: tmux crashes on tpm init

2019-01-25 Thread Prasanna V. Loganathar
Hi Christian,

Alright, did a little more digging. It looks like incomplete
installation of tpm/tpm plugins, or some race condition with multiple
tpm execution that's causing the crash. I put it as docker image for
convenience.

How to reproduce the bug:
 
1. docker run -it --rm prasannavl/tmux-launchpad-bug-1812387
2. tmux
3. Alt + e + I
4. exit (Don't wait for tpm to finish) 
5. tmux
6. Alt + e + I (again)

Wait for the tpm completion message, and visible tmux crash with [lost
server] message on console.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1812387

Title:
  tmux crashes on tpm init

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/1812387/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1812387] Re: tmux crashes on tpm init

2019-01-25 Thread Christian Ehrhardt 
Hi Prasanna,
thank you for the detailed instructions.
I ran this on Bionic/Cosmic/Disco to get a feeling if tmux recently broke or 
got fixed.
That is matching versions:
 tmux | 2.6-3ubuntu0.1 | bionic-updates
 tmux | 2.7-1  | cosmic
 tmux | 2.8-2  | disco 

I don't get a crash in any of those :-/

Since you set prefix to Alt+e to initialize the TPM it actually is "alt+e I".
And I see:
TMUX environment reloaded
Done, press ENTER to continue

No crashes nor anything similar.

To make sure the conf really is loaded I ran
  $ tmux source ~/.tmux.conf
But still nothing happened then or on another re-init.

I can get a list of installed plugins by entering the update function via
"Alt+e U"
So TPM did initialize properly.
I could update all plugins through that.

I switched from the git based TPM that you recommended to the actual one in the 
Ubuntu Archive and adapted the paths.
In the config you then end like:
  run -b '/usr/share/tmux-plugin-manager/tpm'

Still worked just fine.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1812387

Title:
  tmux crashes on tpm init

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/tmux/+bug/1812387/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs