bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The memory occupied by bash has been increasing due to the fork bomb


From: wang yuhang
Subject: Re: The memory occupied by bash has been increasing due to the fork bomb
Date: Fri, 10 Mar 2023 18:04:49 +0800

> First, systemd will send a sigterm to bash, but in bash-5.1, the bash 
process will not be killed. this was caused by a > > > change in bash 
5.1. The modified change information is as follows
> ```
> sss. Fix a bug where receiving SIGTERM from a different process while 
readline was active could cause the shell to terminate
> ```

Sorry, it's wrong. The sigterm signal is sent by bash instead of 
systemd, Relevant log information is as follows


```
Mar 10 08:52:58 localhost.localdomain sysmonitor[1191]: sysmonitor[1191]: 
comm:bash exe:bash[384578](parent comm:bash parent exe:[384404]) send SIGTERM 
to comm:bash exe:bash[384593].(systemd[1]) Mar 10 08:52:58 
localhost.localdomain sysmonitor[1191]: sysmonitor[1191]: comm:bash 
exe:bash[384404](parent comm:systemd parent exe:systemd[1]) send SIGTERM to 
comm:bash exe:[384592]. Mar 10 08:52:58 localhost.localdomain sysmonitor[1191]: 
sysmonitor[1191]: comm:bash exe:bash[384578](parent comm:bash parent 
exe:[384404]) send SIGTERM to comm:bash exe:bash[384592].(systemd[1]) Mar 10 
08:52:58 localhost.localdomain sysmonitor[1191]: sysmonitor[1191]: comm:bash 
exe:bash[384578](parent comm:bash parent exe:bash[384404]) send SIGTERM to 
comm:bash exe:[384587].(systemd[1]) Mar 10 08:52:58 localhost.localdomain 
sysmonitor[1191]: sysmonitor[1191]: comm:bash exe:bash[384404](parent 
comm:systemd parent exe:systemd[1]) send SIGTERM to comm:bash exe:bash[384587]. 
Mar 10 08:52:58 localhost.localdomain sysmonitor[1191]: sysmonitor[1191]: 
comm:bash exe:bash[384578](parent comm:bash parent exe:bash[384404]) send 
SIGTERM to comm:bash exe:[384586].(systemd[1]) Mar 10 08:52:58 
localhost.localdomain sysmonitor[1191]: sysmonitor[1191]: comm:bash 
exe:bash[384404](parent comm:systemd parent exe:systemd[1]) send SIGTERM to 
comm:bash exe:bash[384586]. Mar 10 08:52:58 localhost.localdomain 
sysmonitor[1191]: sysmonitor[1191]: comm:bash exe:bash[384404](parent 
comm:systemd parent exe:systemd[1]) send SIGTERM to comm:bash exe:[384584]. Mar 
10 08:52:58 localhost.localdomain sysmonitor[1191]: sysmonitor[1191]: comm:bash 
exe:bash[384578](parent comm:bash parent exe:[384404]) send SIGTERM to 
comm:bash exe:bash[384584].(systemd[1]) Mar 10 08:52:58 localhost.localdomain 
sysmonitor[1191]: sysmonitor[1191]: comm:bash exe:bash[384578](parent comm:bash 
parent exe:bash[384404]) send SIGTERM to comm:bash exe:[384583].(systemd[1]) 
Mar 10 08:52:58 localhost.localdomain sysmonitor[1191]: sysmonitor[1191]: 
comm:bash exe:bash[384404](parent comm:systemd parent exe:systemd[1]) send 
SIGTERM to comm:bash exe:bash[384583]. Mar 10 08:52:58 localhost.localdomain 
sysmonitor[1191]: sysmonitor[1191]: comm:bash exe:bash[384578](parent comm:bash 
parent exe:bash[384404]) send SIGTERM to comm:bash 
exe:[384580].(systemd[1]) 
``` 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]