Sometimes I get duplicate sessions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
byobu |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Ubuntu 18.04.1 LTS
byobu version 5.125
tmux 2.6
Sometimes I get two sessions with the same content:
(0) - 1: 1 windows (group 1)
(1) └─> 1: server1* (1 panes) "[screen] ezi@myhost: ~"
(2) - 4: 2 windows (group 4) (attached)
(3) ├─> 0: rar- (1 panes) "[screen] ezi@myhost: /var/www"
(4) └─> 1: while* (1 panes) "[screen] ezi@myhost: ~"
(5) - _1-20557: 1 windows (group 1)
(6) └─> 1: server1* (1 panes) "[screen] ezi@myhost: ~"
(7) - _4-28315: 2 windows (group 4)
(8) ├─> 0: rar* (1 panes) "[screen] ezi@myhost: /var/www"
(9) └─> 1: while#- (1 panes) "[screen] ezi@myhost: ~"
I hope the formatting doesn't screw up.
Lines 0 to 4 are almost exactly the sames as 5 to 9 except that the session names(?) are
* 1 vs. _1-20557
* 4 vs. _4-28315
This is not the case on freshly created sessions, only after a while.
> This is not the case on freshly created sessions, only after a while.
I'm able to consistently reproduce this bug.
Context:
- `byobu-enabled` so that Byobu runs on login shells.
- All my shells are login shells.
To re-create this bug, I do the following:
1. Start new session.
- Optionally, give the session a custom name.
2. Detach from session. This will cause the shell window to close as well.
3. Re-attach to session by starting a new shell.
4. There should be 2 sessions now: NAME and _NAME-INTEGER