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

ubuntu21.10 error :connect symbol cant found #29

Closed
xx-zhang opened this issue Apr 12, 2022 · 2 comments · Fixed by #30
Closed

ubuntu21.10 error :connect symbol cant found #29

xx-zhang opened this issue Apr 12, 2022 · 2 comments · Fixed by #30
Assignees
Labels
bug Something isn't working

Comments

@xx-zhang
Copy link

xx-zhang commented Apr 12, 2022

bug 描述
Ubuntu 21.10 运行 ecapture 错误,我还是重新编译的。

root@ubuntu2110:~/ecapture-master# ./bin/ecapture tls
2022/04/12 16:56:21 pid info :9870
2022/04/12 16:56:21 start to run EBPFProbeOPENSSL module
2022/04/12 16:56:21 start to run EBPFProbeGNUTLS module
2022/04/12 16:56:21 start to run EBPFProbeNSPR module
2022/04/12 16:56:21 HOOK type:2, binrayPath:/lib/x86_64-linux-gnu/libssl.so.1.1
2022/04/12 16:56:21 libPthread so Path:/lib/x86_64-linux-gnu/libpthread.so.0
2022/04/12 16:56:21 target all process.
2022/04/12 16:56:21 HOOK type:2, binrayPath:/lib/x86_64-linux-gnu/libgnutls.so.30
2022/04/12 16:56:21 target all process.
2022/04/12 16:56:21 HOOK type:2, binrayPath:/lib/x86_64-linux-gnu/libnspr4.so
2022/04/12 16:56:21 target all process.
2022/04/12 16:56:22 couldn't start bootstrap manager: error:1 error occurred:
        * error:opening uprobe: symbol connect: not found , isRet:%!d(bool=false), {UID:, EbpfFuncName:probe_connect}

, probes activation validation failed


To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Linux Server/Desktop (please complete the following information):

  • OS: ubutnu21.10 x86_64
  • Kernel Version 5.13.0
  • Version ecapture latest (build from master) 0.1.6
root@ubuntu2110:~/ecapture-master# cat /boot/config-`uname -r` | grep CONFIG_DEBUG_INFO_BTF
CONFIG_DEBUG_INFO_BTF=y
CONFIG_DEBUG_INFO_BTF_MODULES=y
root@ubuntu2110:~/ecapture-master# uname -r
5.13.0-37-generic
root@ubuntu2110:~/ecapture-master# openssl version
OpenSSL 1.1.1l  24 Aug 2021
root@ubuntu2110:~/ecapture-master#

Additional context
Add any other context about the problem here.

@cfc4n cfc4n self-assigned this Apr 12, 2022
@cfc4n cfc4n added the bug Something isn't working label Apr 12, 2022
@cfc4n cfc4n changed the title ubuntu21.10 error with ecapture running ubuntu21.10 error :connect symbol cant found Apr 13, 2022
cfc4n added a commit that referenced this issue Apr 13, 2022
wipe symbol connect search path. range a strings array who defined match all linux version.

Signed-off-by: CFC4N <cfc4n.cs@gmail.com>
@cfc4n cfc4n linked a pull request Apr 13, 2022 that will close this issue
@cfc4n cfc4n closed this as completed in #30 Apr 13, 2022
cfc4n added a commit that referenced this issue Apr 13, 2022
user: fix #29 ubuntu21.10 error :connect symbol cant found
@cfc4n
Copy link
Member

cfc4n commented Apr 13, 2022

please try again.

@cfc4n cfc4n reopened this Apr 13, 2022
@xx-zhang
Copy link
Author

please try again.

从 master分支rebuild, 的确解决了这个bug。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants