Skip to content

Update packet.py #4

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update packet.py #4

wants to merge 1 commit into from

Conversation

brendanbank
Copy link
Contributor

In the Peer object, readvars calls self.session.readvars however readvars does not exists in self.session. This should be self.session.readvar

should be self.session.readvar
ntpsec-bot pushed a commit that referenced this pull request Jun 12, 2022
Otherwise, ntpd crashes from time to time with the following stack trace:
#0  0x00007f5763bfac4d in readv () from /lib64/libc.so.6
#1  0x00007f5763c48b4c in __readvall () from /lib64/libc.so.6
#2  0x00007f5763c467ed in nscd_gethst_r () from /lib64/libc.so.6
#3  0x00007f5763c46c0d in __nscd_gethostbyname2_r () from /lib64/libc.so.6
#4  0x00007f5763c15a2a in gethostbyname2_r () from /lib64/libc.so.6
#5  0x00007f5763bed3ca in gaih_inet.constprop () from /lib64/libc.so.6
#6  0x00007f5763bee225 in getaddrinfo () from /lib64/libc.so.6
#7  0x000055fcf0ad6544 in open_TCP_socket ()
#8  0x000055fcf0ad79b4 in nts_probe ()
#9  0x000055fcf0ac37c4 in dns_lookup ()
#10 0x00007f5763b8205a in start_thread () from /lib64/libc.so.6
#11 0x00007f5763c05d1c in clone3 () from /lib64/libc.so.6

Signed-off-by: Maciej S. Szmigiero <[email protected]>
@selsky
Copy link
Contributor

selsky commented Mar 9, 2023

Hi @brendanbank, thanks for submitting this bugfix. GitLab is our primary forge. Would you please do us a favor and submit this PR at https://gitlab.com/NTPsec/ntpsec/-/merge_requests?

@JamesB192
Copy link
Contributor

Please confirm that this issue has been resolved since 2021-02-01T18:30:23Z.

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

Successfully merging this pull request may close these issues.

3 participants