RFA 8.2.0L2 C++ Crash on field decoding using outdated field dictionary
Hi,
I need some help on a crash we have with RFA Lib in C++ on Linux.
We use version 8.2.0L2 of the RFA Libraries to subscribe to OMM feed.
We know the reason of the crash; the dictionary of data was outdated (yes it's bad), and a field type was wrong.
In the outdated dictionary the field was defined as REAL64 but it should be UINT64.
We try to call “getAsString()” on the field (which was containing an UINT64 instead of the expected REAL64) and then it crash.
Here is the call stack (api part only):
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00007f3ed67d2dd8 in rwfUI64tofractions () from /home/rfa_app/lib/libRFA_Data.so
[Current thread is 1 (Thread 0x7f3ec9df9700 (LWP 10481))]
(gdb) bt
#0 0x00007f3ed67d2dd8 in rwfUI64tofractions () from /home/rfa_app/lib/libRFA_Data.so
#1 0x00007f3ed67d30d2 in rwfReal64tosOpts () from /home/rfa_app/lib/libRFA_Data.so
#2 0x00007f3ed67cc8a2 in rsslRealToString () from /home/rfa_app/lib/libRFA_Data.so
#3 0x00007f3ed67cf706 in _rsslRealAsString () from /home/rfa_app/lib/libRFA_Data.so
#4 0x00007f3ed67cdd1d in rsslEncodedPrimitiveToString () from /home/rfa_app/lib/libRFA_Data.so
#5 0x00007f3ed66eb9f7 in rfa::data::DataBuffer::getAsString() const () from /home/rfa_app/lib/libRFA_Data.so
On our side everything is in a try/catch trapping everything (…) but since it’s a segmentation fault it doesn’t help.
So, my questions:
Is this a known issue of the lib ?
Is it fix in last version (The release note doesn’t say anything on a crash fix but maybe…)?
If not, is it something that can be fixed in the lib (maybe trigger an exception), or can we check something on the field prior to calling getAsString and so avoid the crash?
We want to avoid application crash in production in case of issue with the field dictionary.
Thanks for help.
Patrick.
Best Answer
-
It looks like this issue has been fixed in RFA C++ 8.2.2.L1.
--------
8.2.2.L1
--------
...
[RFA-595] - CaseID: 09695303 - RFA to be able to handle mismatch field type without crashing.You can download it from the Refinitiv Developer Community website.
0
Answers
-
Nice thanks, my bad I've missed it.
0
Categories
- All Categories
- 6 AHS
- 37 Alpha
- 161 App Studio
- 4 Block Chain
- 4 Bot Platform
- 16 Connected Risk APIs
- 47 Data Fusion
- 30 Data Model Discovery
- 608 Datastream
- 1.3K DSS
- 577 Eikon COM
- 4.9K Eikon Data APIs
- 7 Electronic Trading
- Generic FIX
- 7 Local Bank Node API
- Trading API
- 2.7K Elektron
- 1.3K EMA
- 236 ETA
- 519 WebSocket API
- 33 FX Venues
- 10 FX Market Data
- 1 FX Post Trade
- 1 FX Trading - Matching
- 12 FX Trading – RFQ Maker
- 5 Intelligent Tagging
- 2 Legal One
- 20 Messenger Bot
- 2 Messenger Side by Side
- 9 ONESOURCE
- 7 Indirect Tax
- 59 Open Calais
- 264 Open PermID
- 39 Entity Search
- 2 Org ID
- PAM
- PAM - Logging
- 8.4K Private Comments
- 6 Product Insight
- Project Tracking
- ProView
- ProView Internal
- 20 RDMS
- 1.4K Refinitiv Data Platform
- 367 Refinitiv Data Platform Libraries
- 3 Refinitiv Due Diligence
- LSEG Due Diligence Portal API
- 3 Refinitiv Due Dilligence Centre
- Rose's Space
- 1.1K Screening
- 18 Qual-ID API
- 13 Screening Deployed
- 23 Screening Online
- 10 World-Check Customer Risk Screener
- 990 World-Check One
- 44 World-Check One Zero Footprint
- 45 Side by Side Integration API
- Test Space
- 3 Thomson One Smart
- 1.2K TR Internal
- Global Hackathon 2015
- 2 Specialists Who Code
- 10 TR Knowledge Graph
- 150 Transactions
- 142 REDI API
- 1.7K TREP APIs
- 4 CAT
- 21 DACS Station
- 117 Open DACS
- 1.1K RFA
- 103 UPA
- 172 TREP Infrastructure
- 224 TRKD
- 886 TRTH
- 5 Velocity Analytics
- 5 Wealth Management Web Services
- 59 Workspace SDK
- 9 Element Framework
- 5 Grid
- 13 World-Check Data File
- Yield Book Analytics
- 46 中文论坛