On 11/10/20 3:38 PM, Michael Davidsaver wrote:
>> If an exception were thrown, I think it would be caught here.
>> Where it is only printed at debug log level. (my doing it seems)
>> Running with EPICS_PVA_DEBUG=1 set should show this.
> https://github.com/epics-base/pvAccessCPP/blob/master/src/server/responseHandlers.cpp#L210-L213
I was wrong about where this exception would be thrown and caught.
It is thrown once during initialization. It actually isn't caught at all.
This is undefined behavior because a c++ exception is being allowed
to propagate into C code. In this case epicsThreadOnce().
In the case of Linux+gcc, it seem that this doesn't crash, but does leave
the authentication mechanics in an unknown state.
The fix is simple enough. If the exception is simply caught and logged,
then things degrade as I had intended. The client will print a message,
and then fall back to the anonymous method.
> $ pvget cnt
> 2020-11-10T18:23:27.535 Error during authorization setup: Unable to determine user account name
>
> cnt 2020-11-10 18:23:27.144 1
cf.
https://github.com/epics-base/pvAccessCPP/commit/564f19e466b3d2624a9dbbaa894123127be5150e?w=1
If you are still able, please verify that this is the error you see.
- Replies:
- Re: Connection to PVA server fails despite server Wlodek, Jakub via Tech-talk
- References:
- Connection to PVA server fails despite server Wlodek, Jakub via Tech-talk
- Re: Connection to PVA server fails despite server Michael Davidsaver via Tech-talk
- Re: Connection to PVA server fails despite server Wlodek, Jakub via Tech-talk
- Re: Connection to PVA server fails despite server Kasemir, Kay via Tech-talk
- Re: Connection to PVA server fails despite server Michael Davidsaver via Tech-talk
- Re: Connection to PVA server fails despite server Michael Davidsaver via Tech-talk
- Navigate by Date:
- Prev:
Re: Connection to PVA server fails despite server Johnson, Andrew N. via Tech-talk
- Next:
Stream device with waveform records Roehrig, Christian via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
<2020>
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
Re: Connection to PVA server fails despite server Michael Davidsaver via Tech-talk
- Next:
Re: Connection to PVA server fails despite server Wlodek, Jakub via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
<2020>
2021
2022
2023
2024
|