This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Getting spurious FAILS in testsuite?


On Tue, Jul 11, 2017 at 12:31 PM, Andrew Pinski <pinskia@gmail.com> wrote:
> On Tue, Jul 11, 2017 at 12:27 PM, Andrew Pinski <pinskia@gmail.com> wrote:
>> On Tue, Jul 11, 2017 at 12:15 PM, Bernd Edlinger
>> <bernd.edlinger@hotmail.de> wrote:
>>> Hi,
>>>
>>> I see this now as well on Ubuntu 16.04, but I doubt that the Kernel is
>>> to blame.
>>
>> I don't see these failures when I use a 4.11 kernel.  Only with a 4.4 kernel.
>> Also the guality testsuite does not run at all with a 4.4 kernel, it
>> does run when using a 4.11 kernel; I suspect this is the same symptom
>> of the bug.
>
>
> 4.11 kernel results (with CentOS 7.4 glibc):
> https://gcc.gnu.org/ml/gcc-testresults/2017-07/msg00998.html
>
> 4.4 kernel results (with ubuntu 1604 glibc):
> https://gcc.gnu.org/ml/gcc-testresults/2017-07/msg01009.html
>
> Note the glibc does not matter here as I get a similar testsuite
> results as the CentOS 7.4 glibc using the Ubuntu 1604 glibc but with
> the 4.11 kernel.
>
> Also note I get a similar results with a plain 4.11 kernel compared to
> the above kernel.


Maybe commit 6a7e6f78c235975cc14d4e141fa088afffe7062c  or
0f40fbbcc34e093255a2b2d70b6b0fb48c3f39aa to the kernel fixes both
issues.

Thanks,
Andrew

>
> Thanks,
> Andrew
>
>>
>> Thanks,
>> Andrew Pinski
>>
>>>
>>> I am able to reproduce this in debug-mode as follows:
>>>
>>> strace -s 4096 -o strace.txt expect -- /usr/share/dejagnu/runtest.exp
>>> --debug -v --tool gcc ubsan.exp=*
>>>
>>> So I have now a dbg.out and a strace log file showing what's going on
>>> when the bug happens.
>>>
>>> One test case that reliably Fails is c-c++-common/ubsan/overflow-mul-4.c
>>>
>>> strace sees the complete Output read in several 4K sized blocks, then a
>>> half-full block
>>> and then eof, so the complete message arrives but then a race condition
>>> seems to happen.
>>>
>>> so the following shows what happens while the spawn, two childs (test
>>> case&/bin/cat) die but the fifo
>>> (fileno 10) still has data to read out which works as expected but when
>>> the EOF is found the last part
>>> gets written to the log file (fileno 4), but is not used as test output.
>>>
>>>
>>> fcntl(10, F_GETFL)                      = 0 (flags O_RDONLY)
>>> fcntl(10, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
>>> fcntl(10, F_GETFL)                      = 0x800 (flags O_RDONLY|O_NONBLOCK)
>>> write(4, "spawn: returns {0}\r\n", 20)  = 20
>>> --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16141,
>>> si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
>>> --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16142,
>>> si_uid=1000, si_status=0, si_utime=0, si_stime=0} ---
>>> write(4, "Gate keeper glob pattern for '.+'", 33) = 33
>>> write(4, " is ''. Not usable, disabling the", 33) = 33
>>> write(4, " performance booster.\n", 22) = 22
>>> write(4, "\r\nexpect: does \"", 16)     = 16
>>> write(4, "\" (spawn_id exp10) match regular expression ", 44) = 44
>>> write(4, "\"", 1)                       = 1
>>> write(4, ".+", 2)                       = 2
>>> write(4, "\"? ", 3)                     = 3
>>> write(4, "(No Gate, RE only) gate=", 24) = 24
>>> write(4, "yes re=", 7)                  = 7
>>> write(4, "no\r\n", 4)                   = 4
>>> write(9, "\0", 1)                       = 1
>>> futex(0x7d08cc, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 3029,
>>> {1499793457, 287025000}, ffffffff) = 0
>>> futex(0x7f2d85ae38e0, FUTEX_WAKE_PRIVATE, 1) = 0
>>> read(10,
>>> "/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:20:3:
>>> runtime error: signed integer overflow: 1537228672809129302 * 6 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:21:3:
>>> runtime error: signed integer overflow: -1537228672809129302 * -6 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:22:3:
>>> runtime error: signed integer overflow: 1537228672809129302 * -6 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:23:3:
>>> runtime error: signed integer overflow: -1537228672809129302 * 6 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:24:3:
>>> runtime error: signed integer overflow: 2166572392 * 4257126175 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:25:3:
>>> runtime error: signed integer overflow: -2166572392 * -4257126175 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:26:3:
>>> runtime error: signed integer overflow: 2166572392 * -4257126175 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:27:3:
>>> runtime error: signed integer overflow: -2166572392 * 4257126175 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:28:3:
>>> runtime error: signed integer overflow: 1537228672809129301 * 7 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:29:3:
>>> runtime error: signed integer overflow: -1537228672809129301 * -7 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:30:3:
>>> runtime error: signed integer overflow: 1537228672809129301 * -7 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:31:3:
>>> runtime error: signed integer overflow: -1537228672809129301 * 7 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:32:3:
>>> runtime error: signed integer overflow: 2166572391 * 4257126176 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:33:3:
>>> runtime error: signed integer overflow: -2166572391 * -4257126176 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:34:3:
>>> runtime error: signed integer overflow: 2166572391 * -4257126176 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:35:3:
>>> runtime error: signed integer overflow: -2166572391 * 4257126176 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:36:3:
>>> runtime error: signed integer overflow: 6 * 1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:37:3:
>>> runtime error: signed integer overflow: -6 * -1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:38:3:
>>> runtime error: signed integer overflow: -6 * 1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:39:3:
>>> runtime error: signed integer overflow: 6 * -1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:40:3:
>>> runtime error: signed integer overflow: 4257126175 * 2166572392 cannot
>>> be represented in type 'long long int'\n/h", 4096) = 4096
>>> read(10,
>>> "ome/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:41:3:
>>> runtime error: signed integer overflow: -4257126175 * -2166572392 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:42:3:
>>> runtime error: signed integer overflow: -4257126175 * 2166572392 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:43:3:
>>> runtime error: signed integer overflow: 4257126175 * -2166572392 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:44:3:
>>> runtime error: signed integer overflow: 7 * 1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:45:3:
>>> runtime error: signed integer overflow: -7 * -1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:46:3:
>>> runtime error: signed integer overflow: -7 * 1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:47:3:
>>> runtime error: signed integer overflow: 7 * -1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:48:3:
>>> runtime error: signed integer overflow: 4257126176 * 2166572391 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:49:3:
>>> runtime error: signed integer overflow: -4257126176 * -2166572391 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:50:3:
>>> runtime error: signed integer overflow: -4257126176 * 2166572391 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:51:3:
>>> runtime error: signed integer overflow: 4257126176 * -2166572391 cannot
>>> be represented in type 'long long int'\n", 4096) = 2144
>>> write(6,
>>> "/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:20:3:
>>> runtime error: signed integer overflow: 1537228672809129302 * 6 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:21:3:
>>> runtime error: signed integer overflow: -1537228672809129302 * -6 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:22:3:
>>> runtime error: signed integer overflow: 1537228672809129302 * -6 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:23:3:
>>> runtime error: signed integer overflow: -1537228672809129302 * 6 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:24:3:
>>> runtime error: signed integer overflow: 2166572392 * 4257126175 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:25:3:
>>> runtime error: signed integer overflow: -2166572392 * -4257126175 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:26:3:
>>> runtime error: signed integer overflow: 2166572392 * -4257126175 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:27:3:
>>> runtime error: signed integer overflow: -2166572392 * 4257126175 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:28:3:
>>> runtime error: signed integer overflow: 1537228672809129301 * 7 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:29:3:
>>> runtime error: signed integer overflow: -1537228672809129301 * -7 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:30:3:
>>> runtime error: signed integer overflow: 1537228672809129301 * -7 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:31:3:
>>> runtime error: signed integer overflow: -1537228672809129301 * 7 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:32:3:
>>> runtime error: signed integer overflow: 2166572391 * 4257126176 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:33:3:
>>> runtime error: signed integer overflow: -2166572391 * -4257126176 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:34:3:
>>> runtime error: signed integer overflow: 2166572391 * -4257126176 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:35:3:
>>> runtime error: signed integer overflow: -2166572391 * 4257126176 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:36:3:
>>> runtime error: signed integer overflow: 6 * 1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:37:3:
>>> runtime error: signed integer overflow: -6 * -1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:38:3:
>>> runtime error: signed integer overflow: -6 * 1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:39:3:
>>> runtime error: signed integer overflow: 6 * -1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:40:3:
>>> runtime error: signed integer overflow: 4257126175 * 2166572392 cannot
>>> be represented in type 'long long int'\n/h", 4096) = 4096
>>> write(6,
>>> "ome/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:41:3:
>>> runtime error: signed integer overflow: -4257126175 * -2166572392 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:42:3:
>>> runtime error: signed integer overflow: -4257126175 * 2166572392 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:43:3:
>>> runtime error: signed integer overflow: 4257126175 * -2166572392 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:44:3:
>>> runtime error: signed integer overflow: 7 * 1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:45:3:
>>> runtime error: signed integer overflow: -7 * -1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:46:3:
>>> runtime error: signed integer overflow: -7 * 1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:47:3:
>>> runtime error: signed integer overflow: 7 * -1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:48:3:
>>> runtime error: signed integer overflow: 4257126176 * 2166572391 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:49:3:
>>> runtime error: signed integer overflow: -4257126176 * -2166572391 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:50:3:
>>> runtime error: signed integer overflow: -4257126176 * 2166572391 ca",
>>> 1905) = 1905
>>> write(4,
>>> "/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:20:3:
>>> runtime error: signed integer overflow: 1537228672809129302 * 6 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:21:3:
>>> runtime error: signed integer overflow: -1537228672809129302 * -6 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:22:3:
>>> runtime error: signed integer overflow: 1537228672809129302 * -6 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:23:3:
>>> runtime error: signed integer overflow: -1537228672809129302 * 6 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:24:3:
>>> runtime error: signed integer overflow: 2166572392 * 4257126175 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:25:3:
>>> runtime error: signed integer overflow: -2166572392 * -4257126175 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:26:3:
>>> runtime error: signed integer overflow: 2166572392 * -4257126175 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:27:3:
>>> runtime error: signed integer overflow: -2166572392 * 4257126175 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:28:3:
>>> runtime error: signed integer overflow: 1537228672809129301 * 7 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:29:3:
>>> runtime error: signed integer overflow: -1537228672809129301 * -7 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:30:3:
>>> runtime error: signed integer overflow: 1537228672809129301 * -7 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:31:3:
>>> runtime error: signed integer overflow: -1537228672809129301 * 7 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:32:3:
>>> runtime error: signed integer overflow: 2166572391 * 4257126176 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:33:3:
>>> runtime error: signed integer overflow: -2166572391 * -4257126176 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:34:3:
>>> runtime error: signed integer overflow: 2166572391 * -4257126176 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:35:3:
>>> runtime error: signed integer overflow: -2166572391 * 4257126176 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:36:3:
>>> runtime error: signed integer overflow: 6 * 1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:37:3:
>>> runtime error: signed integer overflow: -6 * -1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:38:3:
>>> runtime error: signed integer overflow: -6 * 1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:39:3:
>>> runtime error: signed integer overflow: 6 * -1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:40:3:
>>> runtime error: signed integer overflow: 4257126175 * 2166572392 cannot
>>> be represented in type 'long long int'\n/h", 4096) = 4096
>>> write(4,
>>> "ome/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:41:3:
>>> runtime error: signed integer overflow: -4257126175 * -2166572392 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:42:3:
>>> runtime error: signed integer overflow: -4257126175 * 2166572392 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:43:3:
>>> runtime error: signed integer overflow: 4257126175 * -2166572392 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:44:3:
>>> runtime error: signed integer overflow: 7 * 1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:45:3:
>>> runtime error: signed integer overflow: -7 * -1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:46:3:
>>> runtime error: signed integer overflow: -7 * 1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:47:3:
>>> runtime error: signed integer overflow: 7 * -1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:48:3:
>>> runtime error: signed integer overflow: 4257126176 * 2166572391 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:49:3:
>>> runtime error: signed integer overflow: -4257126176 * -2166572391 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:50:3:
>>> runtime error: signed integer overflow: -4257126176 * 2166572391 ca",
>>> 1905) = 1905
>>> write(4, "\r\nexpect: does \"", 16)     = 16
>>> write(4,
>>> "/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:20:3:
>>> runtime error: signed integer overflow: 1537228672809129302 * 6 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:21:3:
>>> runtime error: signed integer overflow: -1537228672809129302 * -6 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:22:3:
>>> runtime error: signed integer overflow: 1537228672809129302 * -6 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:23:3:
>>> runtime error: signed integer overflow: -1537228672809129302 * 6 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:24:3:
>>> runtime error: signed integer overflow: 2166572392 * 4257126175 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:25:3:
>>> runtime error: signed integer overflow: -2166572392 * -4257126175 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:26:3:
>>> runtime error: signed integer overflow: 2166572392 * -4257126175 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:27:3:
>>> runtime error: signed integer overflow: -2166572392 * 4257126175 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:28:3:
>>> runtime error: signed integer overflow: 1537228672809129301 * 7 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:29:3:
>>> runtime error: signed integer overflow: -1537228672809129301 * -7 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:30:3:
>>> runtime error: signed integer overflow: 1537228672809129301 * -7 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:31:3:
>>> runtime error: signed integer overflow: -1537228672809129301 * 7 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:32:3:
>>> runtime error: signed integer overflow: 2166572391 * 4257126176 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:33:3:
>>> runtime error: signed integer overflow: -2166572391 * -4257126176 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:34:3:
>>> runtime error: signed integer overflow: 2166572391 * -4257126176 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:35:3:
>>> runtime error: signed integer overflow: -2166572391 * 4257126176 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:36:3:
>>> runtime error: signed integer overflow: 6 * 1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:37:3:
>>> runtime error: signed integer overflow: -6 * -1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:38:3:
>>> runtime error: signed integer overflow: -6 * 1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:39:3:
>>> runtime error: signed integer overflow: 6 * -1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:40:3:
>>> runtime error: signed integer overflow: 4257126175 * 2166572392 cannot
>>> be represented in typ", 4096) = 4096
>>> write(4, "e 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:41:3:
>>> runtime error: signed integer overflow: -4257126175 * -2166572392 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:42:3:
>>> runtime error: signed integer overflow: -4257126175 * 2166572392 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:43:3:
>>> runtime error: signed integer overflow: 4257126175 * -2166572392 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:44:3:
>>> runtime error: signed integer overflow: 7 * 1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:45:3:
>>> runtime error: signed integer overflow: -7 * -1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:46:3:
>>> runtime error: signed integer overflow: -7 * 1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:47:3:
>>> runtime error: signed integer overflow: 7 * -1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:48:3:
>>> runtime error: signed integer overflow: 4257126176 * 2166572391 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:49:3:
>>> runtime error: signed integer overflow: -4257126176 * -2166572391 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:50:3:
>>> runtime error: signed integer overflow: -4257126176 * 2166572391 ca",
>>> 1935) = 1935
>>> write(4, "\" (spawn_id exp10) match regular expression ", 44) = 44
>>> write(4, "\"", 1)                       = 1
>>> write(4, ".+", 2)                       = 2
>>> write(4, "\"? ", 3)                     = 3
>>> write(4, "(No Gate, RE only) gate=", 24) = 24
>>> write(4, "yes re=", 7)                  = 7
>>> write(4, "yes\r\n", 5)                  = 5
>>> write(4, "expect: set expect_out(0,string) \"", 34) = 34
>>> write(4,
>>> "/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:20:3:
>>> runtime error: signed integer overflow: 1537228672809129302 * 6 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:21:3:
>>> runtime error: signed integer overflow: -1537228672809129302 * -6 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:22:3:
>>> runtime error: signed integer overflow: 1537228672809129302 * -6 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:23:3:
>>> runtime error: signed integer overflow: -1537228672809129302 * 6 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:24:3:
>>> runtime error: signed integer overflow: 2166572392 * 4257126175 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:25:3:
>>> runtime error: signed integer overflow: -2166572392 * -4257126175 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:26:3:
>>> runtime error: signed integer overflow: 2166572392 * -4257126175 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:27:3:
>>> runtime error: signed integer overflow: -2166572392 * 4257126175 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:28:3:
>>> runtime error: signed integer overflow: 1537228672809129301 * 7 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:29:3:
>>> runtime error: signed integer overflow: -1537228672809129301 * -7 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:30:3:
>>> runtime error: signed integer overflow: 1537228672809129301 * -7 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:31:3:
>>> runtime error: signed integer overflow: -1537228672809129301 * 7 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:32:3:
>>> runtime error: signed integer overflow: 2166572391 * 4257126176 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:33:3:
>>> runtime error: signed integer overflow: -2166572391 * -4257126176 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:34:3:
>>> runtime error: signed integer overflow: 2166572391 * -4257126176 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:35:3:
>>> runtime error: signed integer overflow: -2166572391 * 4257126176 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:36:3:
>>> runtime error: signed integer overflow: 6 * 1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:37:3:
>>> runtime error: signed integer overflow: -6 * -1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:38:3:
>>> runtime error: signed integer overflow: -6 * 1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:39:3:
>>> runtime error: signed integer overflow: 6 * -1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:40:3:
>>> runtime error: signed integer overflow: 4257126175 * 2166572392 cannot
>>> be represented in typ", 4096) = 4096
>>> write(4, "e 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:41:3:
>>> runtime error: signed integer overflow: -4257126175 * -2166572392 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:42:3:
>>> runtime error: signed integer overflow: -4257126175 * 2166572392 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:43:3:
>>> runtime error: signed integer overflow: 4257126175 * -2166572392 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:44:3:
>>> runtime error: signed integer overflow: 7 * 1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:45:3:
>>> runtime error: signed integer overflow: -7 * -1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:46:3:
>>> runtime error: signed integer overflow: -7 * 1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:47:3:
>>> runtime error: signed integer overflow: 7 * -1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:48:3:
>>> runtime error: signed integer overflow: 4257126176 * 2166572391 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:49:3:
>>> runtime error: signed integer overflow: -4257126176 * -2166572391 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:50:3:
>>> runtime error: signed integer overflow: -4257126176 * 2166572391 ca",
>>> 1935) = 1935
>>> write(4, "\"\r\n", 3)                   = 3
>>> write(4, "expect: set expect_out(spawn_id) \"", 34) = 34
>>> write(4, "exp10", 5)                    = 5
>>> write(4, "\"\r\n", 3)                   = 3
>>> write(4, "expect: set expect_out(buffer) \"", 32) = 32
>>> write(4,
>>> "/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:20:3:
>>> runtime error: signed integer overflow: 1537228672809129302 * 6 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:21:3:
>>> runtime error: signed integer overflow: -1537228672809129302 * -6 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:22:3:
>>> runtime error: signed integer overflow: 1537228672809129302 * -6 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:23:3:
>>> runtime error: signed integer overflow: -1537228672809129302 * 6 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:24:3:
>>> runtime error: signed integer overflow: 2166572392 * 4257126175 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:25:3:
>>> runtime error: signed integer overflow: -2166572392 * -4257126175 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:26:3:
>>> runtime error: signed integer overflow: 2166572392 * -4257126175 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:27:3:
>>> runtime error: signed integer overflow: -2166572392 * 4257126175 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:28:3:
>>> runtime error: signed integer overflow: 1537228672809129301 * 7 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:29:3:
>>> runtime error: signed integer overflow: -1537228672809129301 * -7 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:30:3:
>>> runtime error: signed integer overflow: 1537228672809129301 * -7 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:31:3:
>>> runtime error: signed integer overflow: -1537228672809129301 * 7 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:32:3:
>>> runtime error: signed integer overflow: 2166572391 * 4257126176 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:33:3:
>>> runtime error: signed integer overflow: -2166572391 * -4257126176 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:34:3:
>>> runtime error: signed integer overflow: 2166572391 * -4257126176 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:35:3:
>>> runtime error: signed integer overflow: -2166572391 * 4257126176 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:36:3:
>>> runtime error: signed integer overflow: 6 * 1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:37:3:
>>> runtime error: signed integer overflow: -6 * -1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:38:3:
>>> runtime error: signed integer overflow: -6 * 1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:39:3:
>>> runtime error: signed integer overflow: 6 * -1537228672809129302 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:40:3:
>>> runtime error: signed integer overflow: 4257126175 * 2166572392 cannot
>>> be represented in typ", 4096) = 4096
>>> write(4, "e 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:41:3:
>>> runtime error: signed integer overflow: -4257126175 * -2166572392 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:42:3:
>>> runtime error: signed integer overflow: -4257126175 * 2166572392 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:43:3:
>>> runtime error: signed integer overflow: 4257126175 * -2166572392 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:44:3:
>>> runtime error: signed integer overflow: 7 * 1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:45:3:
>>> runtime error: signed integer overflow: -7 * -1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:46:3:
>>> runtime error: signed integer overflow: -7 * 1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:47:3:
>>> runtime error: signed integer overflow: 7 * -1537228672809129301 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:48:3:
>>> runtime error: signed integer overflow: 4257126176 * 2166572391 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:49:3:
>>> runtime error: signed integer overflow: -4257126176 * -2166572391 cannot
>>> be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:50:3:
>>> runtime error: signed integer overflow: -4257126176 * 2166572391 ca",
>>> 1935) = 1935
>>> write(4, "\"\r\n", 3)                   = 3
>>> write(4, "expect: continuing expect\r\n", 27) = 27
>>> write(4, "\r\nexpect: does \"", 16)     = 16
>>> write(4, "\" (spawn_id exp10) match regular expression ", 44) = 44
>>> write(4, "\"", 1)                       = 1
>>> write(4, ".+", 2)                       = 2
>>> write(4, "\"? ", 3)                     = 3
>>> write(4, "(No Gate, RE only) gate=", 24) = 24
>>> write(4, "yes re=", 7)                  = 7
>>> write(4, "no\r\n", 4)                   = 4
>>> write(9, "\0", 1)                       = 1
>>> futex(0x7d08cc, FUTEX_WAIT_PRIVATE, 3031, NULL) = 0
>>> futex(0x7f2d85ae38e0, FUTEX_WAKE_PRIVATE, 1) = 0
>>> read(10, "", 4096)                      = 0
>>> write(4, "expect: read eof\r\n", 18)    = 18
>>> write(4, "expect: set expect_out(spawn_id) \"", 34) = 34
>>> write(4, "exp10", 5)                    = 5
>>> write(4, "\"\r\n", 3)                   = 3
>>> write(4, "expect: set expect_out(buffer) \"", 32) = 32
>>> write(4, "nnot be represented in type 'long long
>>> int'\\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:51:3:
>>> runtime error: signed integer overflow: 4257126176 * -2166572391 cannot
>>> be represented in type 'long long int'\\n", 241) = 241
>>> write(4, "\"\r\n", 3)                   = 3
>>> fcntl(10, F_GETFL)                      = 0x800 (flags O_RDONLY|O_NONBLOCK)
>>> fcntl(10, F_SETFL, O_RDONLY)            = 0
>>> fcntl(10, F_GETFL)                      = 0 (flags O_RDONLY)
>>> close(10)                               = 0
>>> open("/dev/null", O_RDONLY)             = 10
>>> fcntl(10, F_SETFD, FD_CLOEXEC)          = 0
>>> fcntl(10, F_SETFD, FD_CLOEXEC)          = 0
>>> write(4, "exp10 file7\n", 12)           = 12
>>> write(6, "exp10 file7\n", 12)           = 12
>>> write(1, "exp10 file7\n", 12)           = 12
>>> close(10)                               = 0
>>> close(7)                                = 0
>>> ioctl(11, TCGETS, 0x7fff795ca6b0)       = -1 ENOTTY (Inappropriate ioctl
>>> for device)
>>> getsockname(11, 0x7fff795ca750, 0x7fff795ca74c) = -1 ENOTSOCK (Socket
>>> operation on non-socket)
>>> wait4(16141, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 16141
>>> wait4(16142, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 16142
>>> lseek(11, 0, SEEK_SET)                  = 0
>>> read(11, "", 4096)                      = 0
>>> close(11)                               = 0
>>> write(5, "PASS: c-c++-common/ubsan/overflow-mul-4.c   -O3
>>> -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer
>>> -finline-functions  execution test\n", 141) = 141
>>> write(4, "PASS: c-c++-common/ubsan/overflow-mul-4.c   -O3
>>> -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer
>>> -finline-functions  execution test\n", 141) = 141
>>> write(6, "PASS: c-c++-common/ubsan/overflow-mul-4.c   -O3
>>> -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer
>>> -finline-functions  execution test\n", 141) = 141
>>> write(5, "FAIL: c-c++-common/ubsan/overflow-mul-4.c   -O3
>>> -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer
>>> -finline-functions  output pattern test\n", 146) = 146
>>> write(4, "FAIL: c-c++-common/ubsan/overflow-mul-4.c   -O3
>>> -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer
>>> -finline-functions  output pattern test\n", 146) = 146
>>> write(6, "FAIL: c-c++-common/ubsan/overflow-mul-4.c   -O3
>>> -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer
>>> -finline-functions  output pattern test\n", 146) = 146
>>> write(1, "FAIL: c-c++-common/ubsan/overflow-mul-4.c   -O3
>>> -fomit-frame-pointer -funroll-loops -fpeel-loops -ftracer
>>> -finline-functions  output pattern test\n", 146) = 146
>>>
>>>
>>> In dbg.log it looks like this:
>>>
>>> d integer overflow: 4257126176 * 2166572391 cannot be represented in
>>> type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:49:3:
>>> runtime error: signed integer overflow: -4257126176 * -2166572391 cannot
>>> be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:50:3:
>>> runtime error: signed integer overflow: -4257126176 * 2166572391 ca"^M
>>>
>>> expect: continuing expect^M
>>>
>>> ^M
>>>
>>> expect: does "" (spawn_id exp10) match regular expression ".+"? (No
>>> Gate, RE only) gate=yes re=no^M
>>>
>>> expect: read eof^M
>>>
>>> expect: set expect_out(spawn_id) "exp10"^M
>>>
>>> expect: set expect_out(buffer) "nnot be represented in type 'long long
>>> int'\n/home/ed/gnu/gcc-8-20170709/gcc/testsuite/c-c++-common/ubsan/overflow-mul-4.c:51:3:
>>> runtime error: signed integer overflow: 4257126176 * -2166572391 cannot
>>> be represented in type 'long long int'\n"^M
>>>
>>> exp10 file7
>>>
>>> PASS: c-c++-common/ubsan/overflow-mul-4.c -O3 -g execution test
>>>
>>> FAIL: c-c++-common/ubsan/overflow-mul-4.c -O3 -g output pattern test
>>>
>>> Output was:
>>>
>>> c-c++-common/ubsan/overflow-mul-4.c:20:3: runtime error: signed integer
>>> overflow: 1537228672809129302 * 6 cannot be represented in type 'long
>>> long int'
>>>
>>> c-c++-common/ubsan/overflow-mul-4.c:21:3: runtime error: signed integer
>>> overflow: -1537228672809129302 * -6 cannot be represented in type 'long
>>> long int
>>>
>>>
>>>
>>> Any ideas what that means?
>>>
>>>
>>>
>>> Thanks
>>>
>>> Bernd.
>>>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]