EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: AW: AW: AW: AW: Problems with hanging osiSockTest
From: "Zimoch Dirk \(PSI\) via Core-talk" <core-talk at aps.anl.gov>
To: Ralph Lange <ralph.lange at gmx.de>
Cc: "'core-talk at aps.anl.gov'" <core-talk at aps.anl.gov>
Date: Mon, 23 Nov 2020 08:28:51 +0000

Me compiling EPICS 7:

https://image.shutterstock.com/image-vector/cartoon-caveman-using-laptop-vector-260nw-327170621.jpg

 

 

Von: Core-talk <core-talk-bounces at aps.anl.gov> Im Auftrag von Ralph Lange via Core-talk
Gesendet: Freitag, 20. November 2020 17:14
An: EPICS Core Talk <core-talk at aps.anl.gov>
Betreff: Re: AW: AW: AW: Problems with hanging osiSockTest

 

Neolithic vxWorks (5.x?) is the only one I know, and I know that Dirk uses.

Andrew always fixed these situations in Base, but he stopped doing that. When APS moved to vxWorks 6? Around Bronze age?

 

Cheers,
~Ralph

 

 

On Fri, 20 Nov 2020 at 16:42, Michael Davidsaver via Core-talk <core-talk at aps.anl.gov> wrote:

On 11/20/20 12:49 AM, Zimoch Dirk (PSI) wrote:
> Which this change, the tests terminates and succeeds.
>
> Please do not have variable declarations after instructions in C (non C++) code. Not all compilers like that. I already had to fix udpSockFanoutTestRx() because of this problem:

How could we expand our CI coverage to discover this?
Do your CI builds cover this case?  (a non-MS compiler
which still imposes this C89 ordering restriction by
default)


> @@ -213,6 +213,7 @@ void udpSockFanoutTestRx(void* raw)
>  {
>      struct TInfo *info = raw;
>      epicsTimeStamp start, now;
> +    unsigned nremain = nrepeat;
>  #ifdef _WIN32
>      /* ms */
>      DWORD timeout = 10000;
> @@ -222,7 +223,6 @@ void udpSockFanoutTestRx(void* raw)
>      timeout.tv_sec = 10;
>      timeout.tv_usec = 0;
>  #endif
> -    unsigned nremain = nrepeat;

>      (void)epicsTimeGetCurrent(&start);
>      now = start;
>
>
>
> Dirk
>
>> -----Ursprüngliche Nachricht-----
>> Von: Michael Davidsaver <mdavidsaver at gmail.com>
>> Gesendet: Donnerstag, 19. November 2020 19:24
>> An: Zimoch Dirk (PSI) <dirk.zimoch at psi.ch>
>> Cc: Johnson, Andrew N. <anj at anl.gov>; EPICS core-talk <core-
>> talk at aps.anl.gov>
>> Betreff: Re: AW: AW: Problems with hanging osiSockTest
>>
>> On 11/19/20 2:27 AM, Zimoch Dirk (PSI) wrote:
>>> I have tested the latest 7.0 commit.
>>>
>>> osiSockTest still hangs on the virbr0 interface:
>>
>>
>> Ha.  I see why my attempt to have this test timeout is broken.
>>
>>
>>> diff --git a/modules/libcom/test/osiSockTest.c
>> b/modules/libcom/test/osiSockTest.c
>>> index e71eec5fe..a3b831b66 100644
>>> --- a/modules/libcom/test/osiSockTest.c
>>> +++ b/modules/libcom/test/osiSockTest.c
>>> @@ -239,6 +239,8 @@ void udpSockFanoutTestRx(void* raw)
>>>          osiSockAddr src;
>>>          osiSocklen_t srclen = sizeof(src);
>>>
>>> +        (void)epicsTimeGetCurrent(&now);
>>> +
>>>          int n = recvfrom(info->sock, buf.bytes, sizeof(buf.bytes), 0, &src.sa,
>> &srclen);
>>>          buf.bytes[sizeof(buf.bytes)-1] = '\0';
>>>


Replies:
Re: AW: AW: AW: AW: Problems with hanging osiSockTest Torsten Bögershausen via Core-talk
References:
Problems with hanging osiSockTest Zimoch Dirk (PSI) via Core-talk
Re: Problems with hanging osiSockTest Johnson, Andrew N. via Core-talk
AW: Problems with hanging osiSockTest Zimoch Dirk (PSI) via Core-talk
Re: AW: Problems with hanging osiSockTest Michael Davidsaver via Core-talk
Re: AW: Problems with hanging osiSockTest Michael Davidsaver via Core-talk
AW: AW: Problems with hanging osiSockTest Zimoch Dirk (PSI) via Core-talk
Re: AW: AW: Problems with hanging osiSockTest Michael Davidsaver via Core-talk
AW: AW: AW: Problems with hanging osiSockTest Zimoch Dirk (PSI) via Core-talk
Re: AW: AW: AW: Problems with hanging osiSockTest Michael Davidsaver via Core-talk
Re: AW: AW: AW: Problems with hanging osiSockTest Ralph Lange via Core-talk

Navigate by Date:
Prev: AW: AW: Problems with hanging osiSockTest Zimoch Dirk (PSI) via Core-talk
Next: Re: New Travis CI pricing model Jeong Han Lee via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Problems with hanging osiSockTest Johnson, Andrew N. via Core-talk
Next: Re: AW: AW: AW: AW: Problems with hanging osiSockTest Torsten Bögershausen via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024 
ANJ, 23 Nov 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·