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

failed to attach uprobe on libssl version v1.0.1 #112

Closed
wenhuwang opened this issue Jul 17, 2024 · 1 comment · Fixed by #113
Closed

failed to attach uprobe on libssl version v1.0.1 #112

wenhuwang opened this issue Jul 17, 2024 · 1 comment · Fixed by #113

Comments

@wenhuwang
Copy link
Contributor

wenhuwang commented Jul 17, 2024

env

  • kernel version: 5.4.207-1.el7.elrepo.x86_64
  • coroot-node-agent version: 1.19.7

logs

coroot-node-agent logs as follows:

I0716 08:16:04.352984   48665 tls.go:107] pid=11925 libssl_version=v1.1.1: libssl uprobes attached
E0716 14:03:02.729460   48665 tls.go:92] pid=45766 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found
E0716 14:03:02.729460   48665 tls.go:92] pid=45766 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found
E0716 14:03:02.729460   48665 tls.go:92] pid=45766 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found
E0716 14:03:02.729460   48665 tls.go:92] pid=45766 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found
E0716 14:03:15.061455   48665 tls.go:92] pid=46161 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found
E0716 14:03:15.061455   48665 tls.go:92] pid=46161 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found
E0716 14:03:15.061455   48665 tls.go:92] pid=46161 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found
E0716 14:03:15.061455   48665 tls.go:92] pid=46161 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found
E0716 14:03:27.612450   48665 tls.go:92] pid=46472 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found
E0716 14:03:27.612450   48665 tls.go:92] pid=46472 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found
E0716 14:03:27.612450   48665 tls.go:92] pid=46472 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found
E0716 14:03:27.612450   48665 tls.go:92] pid=46472 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found
E0716 17:35:50.173498   48665 tls.go:92] pid=31650 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found
E0716 17:35:50.173498   48665 tls.go:92] pid=31650 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found
E0716 17:35:50.173498   48665 tls.go:92] pid=31650 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found
E0716 17:35:50.173498   48665 tls.go:92] pid=31650 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found
E0716 18:30:02.969410   48665 tls.go:92] pid=18085 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found
E0716 18:30:02.969410   48665 tls.go:92] pid=18085 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found
E0716 18:30:02.969410   48665 tls.go:92] pid=18085 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found
E0716 18:30:02.969410   48665 tls.go:92] pid=18085 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found
E0716 18:30:13.897468   48665 tls.go:92] pid=18303 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found
E0716 18:30:13.897468   48665 tls.go:92] pid=18303 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found
E0716 18:30:13.897468   48665 tls.go:92] pid=18303 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found
E0716 18:30:13.897468   48665 tls.go:92] pid=18303 libssl_version=v1.0.1: failed to attach uprobe: symbol SSL_write_ex: not found

libssl file path is /usr/lib64/libssl.so.1.0.2k with version v1.0.1, this file only have SSL_read and SSL_write symbol.

@wenhuwang
Copy link
Contributor Author

wenhuwang commented Jul 17, 2024

SSL_read_ex() and SSL_write_ex() function only exists in openssl v1.1.1 and higher version. refer to: openssl/openssl@4ee7d3f and openssl/openssl@7ee8627#diff-38e1eecb6013c2fe8bf194e5020ce1afd6e31c371d7849e041464ad822fe745bR1653

@wenhuwang wenhuwang changed the title failed to attach uprpbe on libssl version v1.0.1 failed to attach uprobe on libssl version v1.0.1 Jul 17, 2024
apetruhin added a commit that referenced this issue Jul 23, 2024
fix attach uprobe failed on openssl v1.0.1 (fixes #112)
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 a pull request may close this issue.

1 participant