Mailinglist Archive: opensuse-packaging (132 mails)

< Previous Next >
Re: [opensuse-packaging] What can cause this script to fail in Factory/Tumbleweed.
On 01/05/2017 11:13 PM, Bernhard Voelker wrote:
On 01/05/2017 05:57 PM, Brüns, Stefan wrote:
On Donnerstag, 5. Januar 2017 17:39:48 CET you wrote:
On 01/05/2017 04:16 PM, Brüns, Stefan wrote:
The culprit seems to be a failing call to splice() in grep:

LANG=C strace -edup2,close,open,splice,read,write,execve,lseek -s 150 -f
bash -c '(/usr/bin/gmake -v | /usr/bin/grep "GNU Make") > /dev/null 2>&1'

Sounds like
https://git.sv.gnu.org/cgit/grep.git/commit/?id=7ad47abbcb

Have a nice day,
Berny

Executing the testcase added with that commit:

strace -esplice -f bash -c ' echo abc | grep b >>/dev/null '
strace: Process 9494 attached
strace: Process 9495 attached
[pid 9494] +++ exited with 0 +++
[pid 9495] splice(0, NULL, 1, NULL, 32768, SPLICE_F_MOVE) = -1 EINVAL
(Invalid argument)
grep: (Standardeingabe): Das Argument ist ungültig
[pid 9495] +++ exited with 2 +++
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=9494, si_uid=1000,
si_status=0, si_utime=0, si_stime=0} ---
+++ exited with 2 +++

So this seems to match ...

Thanks for confirming.

@Andreas: would you like to cherry-pick this for oS:F/grep?

@Stefan: as you already added the patch locally - would you mind
to submit this to Base:System/grep?

Have a nice day,
Berny
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-packaging+owner@xxxxxxxxxxxx

< Previous Next >