Code: Select all
bash-5.1# find / -name libc.so.6 -print
bash-5.1#
An no other library that offers malloc_trim:
Code: Select all
bash-5.1# grep -irn malloc_trim /usr/lib/
bash-5.1#
Maybe @jcfp can shine his light on this?
Code: Select all
bash-5.1# find / -name libc.so.6 -print
bash-5.1#
Code: Select all
bash-5.1# grep -irn malloc_trim /usr/lib/
bash-5.1#
Code: Select all
docker run -it --rm alpine /bin/ash
apk add python3
# python3
Python 3.8.7 (default, Dec 26 2020, 08:45:55)
[GCC 10.2.1 20201203] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import ctypes
>>> ctypes.CDLL("libc.so.6").malloc_trim(0)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python3.8/ctypes/__init__.py", line 386, in __getattr__
func = self.__getitem__(name)
File "/usr/lib/python3.8/ctypes/__init__.py", line 391, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: Symbol not found: malloc_trim
>>>
Code: Select all
try:
LIBC.malloc_trim()
except:
LIBC=None
Code: Select all
bash-5.1# ./SABnzbd.py -s 0.0.0.0:8081
SJ: going in
SJ: no libc no malloc
2021-02-18 14:55:04,796::INFO::[SABnzbd:1149] --------------------------------
2021-02-18 14:55:04,797::INFO::[SABnzbd:1150] SABnzbd.py-3.2.0RC2
Ah: https://pkgs.alpinelinux.org/contents?b ... &repo=main