-
Notifications
You must be signed in to change notification settings - Fork 29
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
Segmentation fault (looks like stack exhaustion) #3
Comments
Thank you for a detailed description! The issue is that |
A possible fix that comes to my mind is to set a particular variable before calling external functions. Also, within malloc, redirecting calls of to |
this is the output of make rundtests on arch, it works test buffer_underflow double_free yes the problem seems to be the malloc used in the printf, but I don't have any fix in mind at the moment.. |
Hi, I'm getting segfaults when running any program with this library LD_PRELOADed.
I first compiled it normally, then when it didn't work, I unset all environment variables to be sure it wasn't some strange setting on my machine, but that didn't help at all.
Additionally,
make runtests
seems to work butmake rundtests
doesn't.Running
LD_PRELOAD=$(pwd)/libdheap.so LIBDHEAP_DEBUG=1 ./test
, and then usinggdb
to analyse the coredump shows me that there was 63589 stack frames, basically just looping these:Shell output
Compiling and running the tests
Output of running the command (with a reduced stack size (256), otherwise it's huge)
Output of
bt full
ingdb
(again with reduced stack size)My machine
The text was updated successfully, but these errors were encountered: