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

[NSS_TACACS]When I was preparing to support gcov in nss, I found an error. #8277

Open
zhuangjh3 opened this issue Jul 28, 2021 · 0 comments
Open

Comments

@zhuangjh3
Copy link

zhuangjh3 commented Jul 28, 2021

I added the following in configure.ac, it can be compiled normally.

if test "x$enable_gcov" = "xyes"; then
    CFLAGS+=" -fprofile-arcs -ftest-coverage"
    LIBS+=" -fprofile-arcs -lgcov"
fi

But when I run AAA on the device, it produces a coredump,GDB debugging results are as follows:
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `sshd: admin [net] '.
Program terminated with signal SIGSYS, Bad system call.
#0 0x00007f19c20ae9c7 in access () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt full
#0 0x00007f19c20ae9c7 in access () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#1 0x00007f19c3f3d49c in gcov_do_dump () from /lib/x86_64-linux-gnu/libnss_tacplus.so.2
No symbol table info available.
#2 0x00007f19c3f3e30e in gcov_exit () from /lib/x86_64-linux-gnu/libnss_tacplus.so.2
No symbol table info available.
#3 0x00007f19c2008940 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#4 0x00007f19c200899a in exit () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#5 0x00005630c560a764 in ?? ()
No symbol table info available.
#6 0x00007f19c1ff32e1 in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
No symbol table info available.
#7 0x00005630c560ba3a in ?? ()
No symbol table info available.
(gdb)

and the Profiling *.gcda:Cannot open:
image

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