TEXT   65

bug bash msg

Guest on 30th April 2022 09:11:54 AM

  1. Hi all,
  2.  
  3. With bash git master on Mageia v7 x86-64, bash on Debian Stable and other
  4. reported sytems:
  5.  
  6. shlomif@telaviv1:~$ /home/shlomif/apps/bash/bin/bash -c 'run() { run; } ; run'
  7. Segmentation fault (core dumped)
  8. shlomif@telaviv1:~$
  9.  
  10. note that this is not a fork bomb as no processes are spawned, and it is also
  11. not an out-of-memory problem. I expect bash to fail on this, but it ought not
  12. to segfault.
  13.  
  14. also:
  15.  
  16. shlomif@telaviv1:~$ dash -c 'run() { run; } ; run'
  17. Segmentation fault (core dumped)
  18. shlomif@telaviv1:~$ zsh -c 'run() { run; } ; run'
  19. run: maximum nested function level reached
  20.  
  21. I hereby put the reproducing code under the
  22. https://creativecommons.org/choose/zero/ .
  23.  
  24. Credit is due to rosa, ongy, anEpiov and other people of freenode's
  25. ##programming channel for inspiring this bug report and helping to diagnose it.
  26.  
  27. Regards,
  28.  
  29.         Shlomi

Raw Paste


Login or Register to edit or fork this paste. It's free.