* [PATCH] Increase expect match buffer size
@ 2017-07-17 13:22 Bernd Edlinger
2017-07-17 14:36 ` Richard Biener
0 siblings, 1 reply; 2+ messages in thread
From: Bernd Edlinger @ 2017-07-17 13:22 UTC (permalink / raw)
To: gcc-patches, Richard Biener
[-- Attachment #1: Type: text/plain, Size: 452 bytes --]
Hi,
this is to mitigate a race condition in expect 5.45-7
(which will be fixed in 5.45-8) see this thread for details:
https://gcc.gnu.org/ml/gcc/2017-07/msg00081.html
By increasing the match buffer size from 2000 to 10000
bytes we can avoid the fall-out due to the bug in expect,
while we have to wait for the next stable debian version.
Bootstrapped and reg-tested on x86_64-pc-linux-gnu.
Is it OK for trunk?
Thanks
Bernd.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch-match-max.diff --]
[-- Type: text/x-patch; name="patch-match-max.diff", Size: 585 bytes --]
2017-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
* lib/gcc-dg.exp: Increase expect's match buffer size.
Index: gcc/testsuite/lib/gcc-dg.exp
===================================================================
--- gcc/testsuite/lib/gcc-dg.exp (revision 250150)
+++ gcc/testsuite/lib/gcc-dg.exp (working copy)
@@ -43,6 +43,9 @@
setenv LANG C.ASCII
}
+# Avoid sporadic data-losses with expect
+match_max -d 10000
+
# Ensure GCC_COLORS is unset, for the rare testcases that verify
# how output is colorized.
if [info exists ::env(GCC_COLORS) ] {
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Increase expect match buffer size
2017-07-17 13:22 [PATCH] Increase expect match buffer size Bernd Edlinger
@ 2017-07-17 14:36 ` Richard Biener
0 siblings, 0 replies; 2+ messages in thread
From: Richard Biener @ 2017-07-17 14:36 UTC (permalink / raw)
To: Bernd Edlinger; +Cc: gcc-patches
On Mon, 17 Jul 2017, Bernd Edlinger wrote:
> Hi,
>
>
> this is to mitigate a race condition in expect 5.45-7
> (which will be fixed in 5.45-8) see this thread for details:
>
> https://gcc.gnu.org/ml/gcc/2017-07/msg00081.html
>
> By increasing the match buffer size from 2000 to 10000
> bytes we can avoid the fall-out due to the bug in expect,
> while we have to wait for the next stable debian version.
>
>
> Bootstrapped and reg-tested on x86_64-pc-linux-gnu.
> Is it OK for trunk?
Ok.
Richard.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-07-17 14:36 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-07-17 13:22 [PATCH] Increase expect match buffer size Bernd Edlinger
2017-07-17 14:36 ` Richard Biener
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).