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

Memory leak in INET_connect() [CORE6197] #6442

Closed
firebird-automations opened this issue Nov 24, 2019 · 4 comments
Closed

Memory leak in INET_connect() [CORE6197] #6442

firebird-automations opened this issue Nov 24, 2019 · 4 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @aafemt

Reported by Paul Reeves. Valgring show that memory allocated by getaddrinfo() is not freed:

==00:10:37:54.796 1607== 119 bytes in 1 blocks are definitely lost in loss record 38 of 95
==00:10:37:54.796 1607== at 0x4C2E2DF: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==00:10:37:54.796 1607== by 0x5BBEF70: __libc_alloc_buffer_allocate (in /lib64/libc-2.26.so)
==00:10:37:54.796 1607== by 0x5C518B8: __resolv_conf_allocate (in /lib64/libc-2.26.so)
==00:10:37:54.796 1607== by 0x5C4F44B: __resolv_conf_load (in /lib64/libc-2.26.so)
==00:10:37:54.796 1607== by 0x5C5158A: __resolv_conf_get_current (in /lib64/libc-2.26.so)
==00:10:37:54.796 1607== by 0x5C4FF9C: __res_vinit (in /lib64/libc-2.26.so)
==00:10:37:54.796 1607== by 0x5C50E80: context_get.part.1 (in /lib64/libc-2.26.so)
==00:10:37:54.796 1607== by 0x5C4211B: gethostbyname2_r@@GLIBC_2.2.5 (in /lib64/libc-2.26.so)
==00:10:37:54.796 1607== by 0x5C19AD4: gaih_inet.constprop.7 (in /lib64/libc-2.26.so)
==00:10:37:54.796 1607== by 0x5C1A6E3: getaddrinfo (in /lib64/libc-2.26.so)
==00:10:37:54.796 1607== by 0x639DF09: ??? (in /opt/firebird/lib/libfbclient.so.3.0.5)
==00:10:37:54.796 1607== by 0x639EE3B: ??? (in /opt/firebird/lib/libfbclient.so.3.0.5)

Commits: db635c9

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

Commit in master: 72d7f76
Commit in v3 branch: db635c9

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

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

resolution: Fixed [ 1 ]

Fix Version: 3.0.5 [ 10885 ]

Fix Version: 4.0 Beta 2 [ 10888 ]

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: No test => Cannot be tested

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

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