Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Elektron /
  • EMA /
avatar image
Question by yajnasteju · Nov 09, 2016 at 05:48 AM · elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-apic++

EMA C++ - Buffer overflow on debugging with strace

Hi ,

We are developing a EMA Consumer with c++ and facing an issue when trying to debug the application using strace command on CENTOS ,

The application crashes with buffer overflow . This happens with the example consumer in EMA SDK also .

Any idea why this is happening

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

3 Replies

  • Sort: 
avatar image
REFINITIV
Answer by Gurpreet · Nov 10, 2016 at 11:25 AM

Are you subscribing to a high update rate instrument when debugging? Market data updates will continue to flow even when your application is in a breakpoint, resulting in buffer overflow.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
REFINITIV
Answer by Jirapongse · Nov 11, 2016 at 03:52 AM

@yajnasteju

strace can slow down the process which causes the overflow condition on the server side. The server log will look like:

User user at position 172.20.199.110 on host reinforce using application  on channel 257 has been disconnected due to an overflow condition.

When this happens, the server will disconnect the connection. Then, EMA application will detect it and reconnect back to the server.

I am unable to replicate this issue with Elektron-SDK 1.0.7 in my environment. The example didn't crash.

Could you please provide the crash call stack or the error when the problem occurred?

Comment

People who like this

0 Show 1 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
yajnasteju · Nov 11, 2016 at 08:04 AM 0
Share

Hi @jirapongse.phuriphanvichai

Attached the stack trace , There are no logs which suggest that reconnection is happened to ADS .

capture.png (57.3 KiB)
capture.png (57.3 KiB)
avatar image
REFINITIV
Answer by Jirapongse · Nov 13, 2016 at 10:25 PM

It looks like to be the problem in strace, not the server side.

However, I am unable to replicate the issue. strace is running fine in my environment with the 100__MarketPrice__Streaming example. Please provide the following information

  • The version of CentOS (rpm --query centos-release)
  • The name of example used to replicate this issue
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
9 People are following this question.

Related Questions

EMA ElementList access problem

Example of working with views in C++ EMA

How to Post with EMA C++

EMA C++ uses unexpected XmlTrace parameters in EmaConfig.xml configuration file

EMA message arrival ordering

  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Electronic Trading
    • Generic FIX
    • Local Bank Node API
    • Trading API
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Intelligent Tagging
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open Calais
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • RDMS
  • Refinitiv Data Platform
    • Refinitiv Data Platform Libraries
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Workspace SDK
    • Element Framework
    • Grid
  • World-Check Data File
  • 中文论坛
  • Explore
  • Tags
  • Questions
  • Badges