|
From: Florian K. <fl...@ei...> - 2014-07-27 11:52:07
|
Hi, on this RHEL5 s390 machine the poll system call gets interrupted occasionally which makes the gdbserver_tests/nlvgdbsigqueue fail like so: --- nlvgdbsigqueue.stderr.exp 2014-06-22 03:48:42.000000000 -0400 +++ nlvgdbsigqueue.stderr.out 2014-07-26 08:16:24.000000000 -0400 @@ -8,4 +8,10 @@ London ready to sleep and/or burn Petaouchnok ready to sleep and/or burn main ready to sleep and/or burn +error 4 Interrupted system call +VG_(poll) failed (old kernel ?) retrying ... +error 4 Interrupted system call +VG_(poll) failed (old kernel ?) retrying ... +error 4 Interrupted system call +VG_(poll) failed (old kernel ?) retrying ... Gdb request to kill this process In this run poll got interrupted three times, each time contributing error 4 Interrupted system call VG_(poll) failed (old kernel ?) retrying ... to the output. How would I filter out such a pair of lines? (I know how to filter them out individually, but Philippe does not like that). The closest I got was to add perl -0777 -p -e 's/error 4 Interrupted system call\nVG_\(poll\) failed \(old kernel \?\) retrying ...//g' | to the filter_stderr script but that replaces each such pair of lines with a single blank line. So it isn't really of any use as we don't know how often poll gets interrupted. Any ideas how to do this properly? Florian |
|
From: Eliot M. <mo...@cs...> - 2014-07-27 12:03:27
|
On 7/27/2014 7:51 AM, Florian Krohm wrote: > Hi, > > on this RHEL5 s390 machine the poll system call gets interrupted > occasionally which makes the gdbserver_tests/nlvgdbsigqueue fail like so: > > --- nlvgdbsigqueue.stderr.exp 2014-06-22 03:48:42.000000000 -0400 > +++ nlvgdbsigqueue.stderr.out 2014-07-26 08:16:24.000000000 -0400 > @@ -8,4 +8,10 @@ > London ready to sleep and/or burn > Petaouchnok ready to sleep and/or burn > main ready to sleep and/or burn > +error 4 Interrupted system call > +VG_(poll) failed (old kernel ?) retrying ... > +error 4 Interrupted system call > +VG_(poll) failed (old kernel ?) retrying ... > +error 4 Interrupted system call > +VG_(poll) failed (old kernel ?) retrying ... > Gdb request to kill this process > > In this run poll got interrupted three times, each time contributing > > error 4 Interrupted system call > VG_(poll) failed (old kernel ?) retrying ... > > to the output. How would I filter out such a pair of lines? (I know how > to filter them out individually, but Philippe does not like that). > The closest I got was to add > > perl -0777 -p -e 's/error 4 Interrupted system call\nVG_\(poll\) > failed \(old kernel \?\) retrying ...//g' | > > to the filter_stderr script but that replaces each such pair of lines > with a single blank line. So it isn't really of any use as we don't know > how often poll gets interrupted. > > Any ideas how to do this properly? My suggestion is to try including the trailing \n in the pattern being replaced. Eliot Moss |
|
From: Florian K. <fl...@ei...> - 2014-07-27 12:21:18
|
On 27.07.2014 14:03, Eliot Moss wrote:
>
> My suggestion is to try including the trailing \n in the pattern being
> replaced.
>
Duh! Yes that does the trick.
Thanks
Florian
|