** Description changed:

+ [Impact]
+ 
  When using powerline with tmux (on bionic), I am experiencing a memory
- leak that fills my VPS's 1GB of memory in a few days.
+ leak that fills my VPS's 1GB of memory in a few days.  To avoid memory
+ exhaustion, I have to restart tmux (and therefore anything running in
+ tmux).
  
- ProblemType: Bug
- DistroRelease: Ubuntu 18.04
- Package: tmux 2.6-3ubuntu0.1
- ProcVersionSignature: Ubuntu 4.15.0-1032.34-gcp 4.15.18
- Uname: Linux 4.15.0-1032-gcp x86_64
- NonfreeKernelModules: ufs msdos xfs zfs zunicode zavl icp zcommon znvpair spl 
unix_diag binfmt_misc veth ebtable_filter ebtables ip6t_MASQUERADE 
nf_nat_masquerade_ipv6 ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 
nf_nat_ipv6 ipt_MASQUERADE nf_nat_masquerade_ipv4 xt_CHECKSUM xt_comment 
xt_tcpudp iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat 
iptable_mangle bridge stp llc ip6table_filter ip6_tables iptable_filter 
nls_iso8859_1 pvpanic input_leds serio_raw sch_fq_codel ib_iser rdma_cm iw_cm 
ib_cm ib_core iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi ip_tables 
x_tables autofs4 btrfs zstd_compress raid10 raid456 async_raid6_recov 
async_memcpy async_pq async_xor async_tx xor raid6_pq raid1 raid0 multipath 
linear crct10dif_pclmul crc32_pclmul ghash_clmulni_intel pcbc aesni_intel 
aes_x86_64 crypto_simd glue_helper cryptd psmouse virtio_net
- ApportVersion: 2.20.9-0ubuntu7.6
- Architecture: amd64
- Date: Thu Jul  4 15:37:25 2019
- ProcEnviron:
-  TERM=screen
-  PATH=(custom, no user)
-  LANG=C.UTF-8
-  SHELL=/bin/bash
- SourcePackage: tmux
- UpgradeStatus: No upgrade log present (probably fresh install)
+ [Test Case]
+ 
+ ```
+ lxc launch ubuntu:b reproducer
+ lxc exec reproducer /bin/bash
+ 
+ # within container
+ apt update
+ apt install powerline
+ tmux
+ 
+ # within tmux
+ powerline-config tmux setup
+ ```
+ 
+ Without the patch, I see resident set size (per ps) start at ~3MB and
+ after ~30 minutes of tmux uptime it's up to ~4.5MB.
+ 
+ (With the patch, I see no increase in RSS over the same time period.)
+ 
+ [Regression Potential]
+ 
+ This patch affects the format expansion code path, which is used in
+ multiple different ways in the tmux code base.  These could all
+ potentially be affected by this change.

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

Title:
  Memory leak in tmux pane title formatting

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to