-
Notifications
You must be signed in to change notification settings - Fork 53
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
When using this lib, the problem of segmentation fault i have encoutered. #4
Comments
(gdb) set environment LD_PRELOAD=./libleak.so Program received signal SIGSEGV, Segmentation fault. maybe project NULL == p when memory need to free? |
I write a test program which You'd better not define and export LD_PRELOAD for whole shell environment. |
I got the same error on Fedora 29.
After I append pointer check in libleak.c at line 581:
it start fine. |
I will commit this pointer check. |
In CentOS release 6.5(Linux kernel 2.6.32-431.el6.x86_64)
[root@Server]# echo $LD_PRELOAD
./libleak.so
[root@Server]# ll
Segmentation fault
The text was updated successfully, but these errors were encountered: