csh launching eats more and more memory each time.
#first times - mem is low, but when I launch 4-5 csh-es in tmux, each time i relogin (with csh default shell) I see this:
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND
99711 root 1 52 0 105M 70600K pause 2 0:01 4.98% csh
99717 root 1 52 0 173M 127M pause 3 0:02 7.96% csh
99724 root 1 52 0 305M 228M pause 2 0:03 7.96% csh
After this, I killed all cshes, changed default shell to /bin/sh:
# ps ax | grep csh | grep -v grep
Again launch csh:
99782 root 1 52 0 313M 235M pause 1 0:03 17.97% csh
I have plenny of ram - about 1.5Gb of free ram in normal state, and I don't have swap at all.
Seems corrupted history was culprit
I'd suggest to not parse whole history if it's corrupted, and warn user
misliled: csh (actually tcsh) is not in the GNU category.
For bugs matching the following conditions:
- Status == In Progress
- Assignee == "bugs@FreeBSD.org"
- Last Modified Year <= 2017
- Set Status to "Open"