Open Nivekiba opened 1 year ago
same problem here: glusterfs tag v11.0 $ glusterd Fatal glibc error: malloc.c:2593 (sysmalloc): assertion failed: (old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0) Aborted (core dumped)
OpenSuSE Tumbleweed glibc-2.37-1.2.src.rpm
Happens with the distribution delivered rpm and also happens when compiled from the the release from github. $ ./configure --without-tcmalloc --disable-linux-io_uring
Update: When fixing the missing tcmalloc library with the following command: $ ln -s /usr/lib64/libtcmalloc_minimal.so.4 /usr/lib64/libtcmalloc_minimal.so and then $ ./configure --disable-linux-io_uring the error is gone. Seems, that glusterfs needs libtcmalloc_minimal.so.
Update: When fixing the missing tcmalloc library with the following command: $ ln -s /usr/lib64/libtcmalloc_minimal.so.4 /usr/lib64/libtcmalloc_minimal.so and then $ ./configure --disable-linux-io_uring the error is gone. Seems, that glusterfs needs libtcmalloc_minimal.so.
From release-10 onwards by default gluster uses tcmalloc for malloc/calloc, if you don;t want to use you can compile the code after providing an option without-tcmalloc.
From release-10 onwards by default gluster uses tcmalloc for malloc/calloc, if you don;t want to use you can compile the code after providing an option without-tcmalloc.
The problem is, that if I choose to skip tcmalloc with the optione --without-tcmalloc, I can compile the code, but glusterd will fail at startup with the message:
Fatal glibc error: malloc.c:2593 (sysmalloc): assertion failed: (old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0) Aborted (core dumped)
The valgrind output is attached. delme.txt
I'm seeing the same crash on startup in Ubuntu and Debian:
https://autopkgtest.ubuntu.com/packages/g/glusterfs/mantic/amd64
696s Fatal glibc error: malloc.c:2589 (sysmalloc): assertion failed: (old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)
699s
699s Deleting volume gv0
699s /tmp/autopkgtest.o3AzjF/build.T8m/src/debian/tests/create-volume: line 12: 1949 Aborted (core dumped) systemctl restart glusterd
699s Fatal glibc error: malloc.c:2589 (sysmalloc): assertion failed: (old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)
699s /tmp/autopkgtest.o3AzjF/build.T8m/src/debian/tests/create-volume: line 12: 2133 Aborted (core dumped) systemctl restart glusterd
Description of problem:
I build gluster from sources and when I try to start the daemon, i got a core-dump error.
The exact command to reproduce the issue:
The full output of the command that failed:
Expected results: Successful or something like that
Mandatory info: - The output of the
gluster volume info
command:- The output of the
gluster volume status
command:- The output of the
gluster volume heal
command:**- Provide logs present on following locations of client and server nodes - /var/log/glusterfs/
**- Is there any crash ? Provide the backtrace and coredump
Additional info:
- The operating system / glusterfs version:
Ubuntu 20.04/ glusterfs from actual devel branch (don't know the exact version number)
Update:
Sometimes, I got this error: