Hi,

We see that bash throws the "Operation not permitted" error when doing
chained pipe operation
along with a debug trap.

We set a debug trap here "my_debug" to save the terminal commands entered.
The GNU bash, version used is  4.2.

root@freescale-p2020ds:~/dir#  ls -l | grep a | grep b | grep c
-sh: child setpgid (4238 to 4232): Operation not permitted


root@freescale-p2020ds:~/dir# trap
trap -- '' TSTP
trap -- '' TTIN
trap -- '' TTOU
trap -- 'my_debug' DEBUG
root@freescale-p2020ds:~/dir#

Platform: Linux 3.10 kernel on PPC target.

It seems setpgid is failing because the process group of the pipeline does
not exist at that time.

This issue is not seen on bash version 4.4. The commit (
https://git.savannah.gnu.org/cgit/bash.git/commit/?h=bash-4.4&id=a0c0a00fc419b7bc08202a79134fcd5bc0427071)
seems
to have fixed it.

I am looking to figure out the particular fix that fixed this issue from
the above commit and to backport to bash4-2 version.

Is it a known  issue? Could you help to identify the change set  that fixed
the issue from the commit "a0c0a00fc419b"?
Thanks in advance.

Regards,
Sam
  • bash-4-2 issue Sam Kappen via Bug reports for the GNU Bourne Again SHell

Reply via email to