[GH-ISSUE #55] Attempt to free invalid pointer 0x55eee85d3370 #41

Closed
opened 2026-10-30 21:08:43 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @abcbarryn on GitHub (Nov 29, 2025).
Original GitHub issue: https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg/issues/55

I am able to run rembg from a streamlit, but when I try to install this Stable Diffusion add in I get:

src/tcmalloc.cc:283] Attempt to free invalid pointer 0x55eee85d3370
/var/sduser/stable-diffusion-webui/webui.sh: line 304: 46029 Aborted

Full output:

################################################################
Install script for stable-diffusion + Web UI
Tested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer.
################################################################

################################################################
Running on sduser user
################################################################

################################################################
Repo already cloned, using it as install directory
################################################################

################################################################
python venv already activate or run without venv: /var/sduser/stable-diffusion-webui/venv
################################################################

################################################################
Launching launch.py...
################################################################
glibc version is 2.38
Check TCMalloc: libtcmalloc_minimal.so.4
libtcmalloc_minimal.so.4 is linked with libc.so,execute LD_PRELOAD=/usr/lib64/libtcmalloc_minimal.so.4
Python 3.11.13 (main, Jun 09 2025, 21:55:43) [GCC]
Version: v1.10.1
Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2
Launching Web UI with arguments: --gradio-queue --xformers --gradio-auth sduser:St@ble --listen --server-name 192.168.0.1 --tls-keyfile /etc/webmin/miniserv.pem --tls-certfile /etc/webmin/miniserv.pem --disable-tls-verify --enable-insecure-extension-access
Running with TLS
src/tcmalloc.cc:283] Attempt to free invalid pointer 0x55eee85d3370
/var/sduser/stable-diffusion-webui/webui.sh: line 304: 46029 Aborted                 (core dumped) "${python_cmd}" -u "${LAUNCH_SCRIPT}" "$@"
Originally created by @abcbarryn on GitHub (Nov 29, 2025). Original GitHub issue: https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg/issues/55 I am able to run rembg from a streamlit, but when I try to install this Stable Diffusion add in I get: ``` src/tcmalloc.cc:283] Attempt to free invalid pointer 0x55eee85d3370 /var/sduser/stable-diffusion-webui/webui.sh: line 304: 46029 Aborted ``` Full output: ``` ################################################################ Install script for stable-diffusion + Web UI Tested on Debian 11 (Bullseye), Fedora 34+ and openSUSE Leap 15.4 or newer. ################################################################ ################################################################ Running on sduser user ################################################################ ################################################################ Repo already cloned, using it as install directory ################################################################ ################################################################ python venv already activate or run without venv: /var/sduser/stable-diffusion-webui/venv ################################################################ ################################################################ Launching launch.py... ################################################################ glibc version is 2.38 Check TCMalloc: libtcmalloc_minimal.so.4 libtcmalloc_minimal.so.4 is linked with libc.so,execute LD_PRELOAD=/usr/lib64/libtcmalloc_minimal.so.4 Python 3.11.13 (main, Jun 09 2025, 21:55:43) [GCC] Version: v1.10.1 Commit hash: 82a973c04367123ae98bd9abdf80d9eda9b910e2 Launching Web UI with arguments: --gradio-queue --xformers --gradio-auth sduser:St@ble --listen --server-name 192.168.0.1 --tls-keyfile /etc/webmin/miniserv.pem --tls-certfile /etc/webmin/miniserv.pem --disable-tls-verify --enable-insecure-extension-access Running with TLS src/tcmalloc.cc:283] Attempt to free invalid pointer 0x55eee85d3370 /var/sduser/stable-diffusion-webui/webui.sh: line 304: 46029 Aborted (core dumped) "${python_cmd}" -u "${LAUNCH_SCRIPT}" "$@" ```
Author
Owner

@abcbarryn commented on GitHub (Nov 29, 2025):

I tested with all other third party extensions disabled.
Removing tcmalloc allowed it to load and run.

<!-- gh-comment-id:3591872077 --> @abcbarryn commented on GitHub (Nov 29, 2025): I tested with all other third party extensions disabled. Removing tcmalloc allowed it to load and run.
Author
Owner

@abcbarryn commented on GitHub (Nov 30, 2025):

Solution was to update to gperftools-2.17.2 and libtcmalloc4-2.17.2, gperftools-2.5 throws the error.

<!-- gh-comment-id:3592182794 --> @abcbarryn commented on GitHub (Nov 30, 2025): Solution was to update to gperftools-2.17.2 and libtcmalloc4-2.17.2, gperftools-2.5 throws the error.
Author
Owner

@abcbarryn commented on GitHub (Nov 30, 2025):

If you are running SuSE Leap Linux 15.6 (like me) your latest official gperftools package is 2.5. If that's the case, you can get a package for version 2.17 here: https://download.opensuse.org/repositories/home:/Star2BarryN/15.6/
You can get the repo file to add this repository here: https://download.opensuse.org/repositories/home:/Star2BarryN/15.6/home:Star2BarryN.repo

<!-- gh-comment-id:3592534340 --> @abcbarryn commented on GitHub (Nov 30, 2025): If you are running SuSE Leap Linux 15.6 (like me) your latest official gperftools package is 2.5. If that's the case, you can get a package for version 2.17 here: [https://download.opensuse.org/repositories/home:/Star2BarryN/15.6/](https://download.opensuse.org/repositories/home:/Star2BarryN/15.6/) You can get the repo file to add this repository here: [https://download.opensuse.org/repositories/home:/Star2BarryN/15.6/home:Star2BarryN.repo](https://download.opensuse.org/repositories/home:/Star2BarryN/15.6/home:Star2BarryN.repo)
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AUTOMATIC1111/stable-diffusion-webui-rembg#41
No description provided.