wting / autojump

A cd command that learns - easily navigate directories from the command line
Other
16.26k stars 705 forks source link

autojump is like a fork bomb after upgrading from Debian 8 to 9 #603

Open dr2okevin opened 4 years ago

dr2okevin commented 4 years ago

After a update from Debian 8 to Debian 9 autojump is not working anymore. It behaves now like a fork bomb, creating hundredths of bash processes until the servers dies out of memory. I also don't get any results from autojump, It looks in the command promt like it is stuck.

I tried to reinstall, but that did not help. It worked before fine on Debian 8. I installed it with apt-get from the default Debian packages.

Some Log Reports shortly after typing "j foldername"

May  9 21:49:15 gate04 kernel: [118355.428013] bash invoked oom-killer: gfp_mask=0x24200ca(GFP_HIGHUSER_MOVABLE), nodemask=0, order=0, oom_score_adj=0

May  9 22:03:39 gate04 kernel: [118377.433845] [26778]  1000 26778    10800        0      26       3     5600             0 bash
May  9 22:03:39 gate04 kernel: [118377.433898] [26779]  1000 26779     9849        0      23       3     4655             0 bash
May  9 22:03:39 gate04 kernel: [118377.433953] [26780]  1000 26780    10805        0      26       3     5623             0 bash
May  9 22:03:39 gate04 kernel: [118377.434006] [26781]  1000 26781     9853        0      23       3     4656             0 bash
May  9 22:03:39 gate04 kernel: [118377.434060] [26782]  1000 26782    10808        2      26       3     5599             0 bash
May  9 22:03:39 gate04 kernel: [118377.434114] [26783]  1000 26783     9857        0      23       3     4664             0 bash
May  9 22:03:39 gate04 kernel: [118377.434168] [26784]  1000 26784    10812        0      26       3     5629             0 bash
May  9 22:03:39 gate04 kernel: [118377.434222] [26785]  1000 26785     9859        1      23       3     4650             0 bash
May  9 22:03:39 gate04 kernel: [118377.434276] [26786]  1000 26786    10816        0      26       3     5632             0 bash
May  9 22:03:39 gate04 kernel: [118377.434330] [26787]  1000 26787     9863        0      23       3     4665             0 bash
May  9 22:03:39 gate04 kernel: [118377.434384] [26788]  1000 26788    10818        0      26       3     5616             0 bash
May  9 22:03:39 gate04 kernel: [118377.434438] [26789]  1000 26789     9866        0      23       3     4676             0 bash
May  9 22:03:39 gate04 kernel: [118377.434492] [26790]  1000 26790    10822        2      26       3     5627             0 bash
May  9 22:03:39 gate04 kernel: [118377.434546] [26791]  1000 26791     9870        0      23       3     4671             0 bash
May  9 22:03:39 gate04 kernel: [118377.434599] [26792]  1000 26792    10826        0      26       3     5639             0 bash
May  9 22:03:39 gate04 kernel: [118377.434653] [26793]  1000 26793     9874        2      23       3     4672             0 bash
May  9 22:03:39 gate04 kernel: [118377.434707] [26794]  1000 26794     9877        0      23       3     4674             0 bash
May  9 22:03:39 gate04 kernel: [118377.434761] [26795]  1000 26795    10829        2      26       3     5626             0 bash
May  9 22:03:39 gate04 kernel: [118377.434815] [26796]  1000 26796     9881        0      23       3     4698             0 bash
May  9 22:03:39 gate04 kernel: [118377.434869] [26797]  1000 26797    10833        3      26       3     5623             0 bash
May  9 22:03:39 gate04 kernel: [118377.434923] [26798]  1000 26798     9885        0      23       3     4683             0 bash
May  9 22:03:39 gate04 kernel: [118377.434977] [26799]  1000 26799    10837        0      26       3     5645             0 bash
May  9 22:03:39 gate04 kernel: [118377.435031] [26800]  1000 26800     9887        0      23       3     4705             0 bash
May  9 22:03:42 gate04 kernel: [118377.435085] [26801]  1000 26801    10840        0      26       3     5653             0 bash
May  9 22:03:42 gate04 kernel: [118377.435139] [26802]  1000 26802     9891        3      23       3     4681             0 bash
May  9 22:03:42 gate04 kernel: [118377.435193] [26803]  1000 26803    10844        2      26       3     5636             0 bash
May  9 22:03:42 gate04 kernel: [118377.435247] [26804]  1000 26804     9894        0      23       3     4703             0 bash
May  9 22:03:42 gate04 kernel: [118377.435300] [26805]  1000 26805    10847       23      26       3     5617             0 bash
May  9 22:03:42 gate04 kernel: [118377.435354] [26806]  1000 26806     9898        0      23       3     4710             0 bash
May  9 22:03:42 gate04 kernel: [118377.435408] [26807]  1000 26807    10850        0      26       3     5685             0 bash
May  9 22:03:42 gate04 kernel: [118377.435462] [26808]  1000 26808     9902        0      23       3     4720             0 bash
May  9 22:03:42 gate04 kernel: [118377.435516] [26809]  1000 26809    10854        0      26       3     5672             0 bash
May  9 22:03:42 gate04 kernel: [118377.435569] [26810]  1000 26810     9905        2      23       3     4703             0 bash
May  9 22:03:42 gate04 kernel: [118377.435623] [26811]  1000 26811     9910        0      23       3     4721             0 bash
May  9 22:03:42 gate04 kernel: [118377.435677] [26812]  1000 26812    10858        0      26       3     5657             0 bash
May  9 22:03:42 gate04 kernel: [118377.435731] [26813]  1000 26813     9912        0      23       3     4714             0 bash
May  9 22:03:42 gate04 kernel: [118377.435785] [26814]  1000 26814    10861        0      26       3     5674             0 bash
May  9 22:03:42 gate04 kernel: [118377.435838] [26815]  1000 26815     9916        0      23       3     4729             0 bash
May  9 22:03:42 gate04 kernel: [118377.435892] [26816]  1000 26816    10865        0      26       3     5683             0 bash
May  9 22:03:42 gate04 kernel: [118377.435946] [26817]  1000 26817     9920        0      23       3     4721             0 bash

there are a lot more lines that contain bash.

colindaven commented 4 years ago

Weird. I had this "bash fork bomb" recently multiple times on Ubuntu1604 for another tool (ncdu) on only one cluster machine. Would be very interesting to find the cause.

sergiomb2 commented 3 years ago

Update to autojump-22.5.3 to fix https://github.com/wting/autojump/issues/391