You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After some code modification on mallocwatch.c and logging.c, I found that it's because it segfaults because it tries to call vprintf and printf from libc. Removing the vprintf and printf from preeny_info works (without logging too). I'm not sure why though.
$ gcc -v
gcc (GCC) 8.2.1 20180831
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
$ ldd --version
ldd (GNU libc) 2.28
Copyright (C) 2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
The text was updated successfully, but these errors were encountered:
Hello,
I'm trying to run
hello
on the test directory withmallocwatch.so
and info level logging. It gave me segmentation fault.But running without
PREENY_INFO=1
results in successful execution.After some code modification on
mallocwatch.c
andlogging.c
, I found that it's because it segfaults because it tries to callvprintf
andprintf
from libc. Removing thevprintf
andprintf
frompreeny_info
works (without logging too). I'm not sure why though.The text was updated successfully, but these errors were encountered: