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

Server starts returning garbage when killing events connection attempt [CORE2272] #2698

Closed
firebird-automations opened this issue Jan 11, 2009 · 14 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @cincuranet

Relate to CORE2437

Attachments:
test.zip
CORE-2272.7z

1. I configured my FB2.1 SuperServer events port to 32768.
2. I've connected to it. So far so good. In response right IP, right port.
3. I've connected again and between port reading and address reading
from response, I've killed the program.
4. From now, I'm getting back weird IPs and weird ports - probably
some numbers from wrong memory location.

@firebird-automations
Copy link
Collaborator Author

Commented by: @cincuranet

Run the application:
app.exe "hostname/port:database" "username" "password"

First attempt will be successful (right IP and port), second returns random data.

@firebird-automations
Copy link
Collaborator Author

Modified by: @cincuranet

Attachment: test.zip [ 11280 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

assignee: Alexander Peshkov [ alexpeshkoff ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Can you send me source code for it?
I can't start .Net under wine - it fails in x11 driver.

@firebird-automations
Copy link
Collaborator Author

Commented by: @cincuranet

Tweaked sources with test app. are attached.

@firebird-automations
Copy link
Collaborator Author

Modified by: @cincuranet

Attachment: CORE2272.7z [ 11291 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Jiri, I confirm the issue. But not only port number and IP is bad - the whole event delivery in second attach is broken, I get AVs, assertions, etc. Will investigate more.

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

Link: This issue relate to CORE2437 [ CORE2437 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Jiri, after fixing CORE2437 I can't reproduce an issue. Without fixing also could not, but due to getting segfaults :))

Can you check it with HEAD? There were BOFs before fix (and they happened exactly when I tried to connect second time). Therefore I suppose current issue may be also gone now. Though problem may be also due to .Net client (I fixed only fbclient).

I anyway plan to backport 2437 to 2.1 and 2.0, but wish to have your results first.

@firebird-automations
Copy link
Collaborator Author

Commented by: @cincuranet

Hi Alex, looks like it's fixed. I'm not able to reproduce the error now.

@firebird-automations
Copy link
Collaborator Author

Commented by: @AlexPeshkoff

Marked as resolved after fixing related issue.

@firebird-automations
Copy link
Collaborator Author

Modified by: @AlexPeshkoff

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

resolution: Fixed [ 1 ]

Fix Version: 2.5 RC1 [ 10300 ]

Fix Version: 2.1.3 [ 10302 ]

Fix Version: 2.0.6 [ 10303 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

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

No branches or pull requests

2 participants