Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random AV at client application using events when connection was broken [CORE5530] #5798

Closed
firebird-automations opened this issue May 4, 2017 · 4 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @hvlad

If client application
- uses local (stack based) status vector when call ISC API functions, and
- uses events, and
- connection with server is broken,
then random AV could happens in some of application thread's.

The reason is that fbclient saves pointer to the user status-vector at entry to the
all ISC API functions and later report network error happens at event listener thread
using that saved pointer to the status-vector. If stack variable is out of scope it
means events listener thread wrote to the some "random" place at the stack of
another thread.

Commits: 817919c

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

assignee: Vlad Khorsun [ hvlad ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

Code in v3 (and v4) is heavy refactored and it looks like it have no such problem

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

Fix Version: 2.5.8 [ 10809 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment