Article 6E8HH "stack smashing detected" when make check of glibc

"stack smashing detected" when make check of glibc

by
braving
from LinuxQuestions.org on (#6E8HH)
Hello there,
I followed instructions in LFS 11.3 and everything worked until
"stack smashing detected" reported when doing make check in 8.5.
I tried a second time after rming & restoring backup made in 7.13 and failed with the same error.
Code:make[4]: Entering directory '/sources/glibc-2.37/string'
make[4]: Leaving directory '/sources/glibc-2.37/string'
make subdir=time -C ../time ..=../ objdir=/sources/glibc-2.37/build -f Makefile -f ../elf/rtld-Rules rtld-all rtld-modules='rtld-setitimer.os'
make[4]: Entering directory '/sources/glibc-2.37/time'
make[4]: Leaving directory '/sources/glibc-2.37/time'
make[3]: Leaving directory '/sources/glibc-2.37/elf'
make[2]: Leaving directory '/sources/glibc-2.37/elf'
/usr/bin/install -c -m 644 /sources/glibc-2.37/build/libc.a /usr/lib/libc.a
/usr/bin/install -c -m 644 /sources/glibc-2.37/build/libc_nonshared.a /usr/lib/libc_nonshared.a
/usr/bin/install -c /sources/glibc-2.37/build/libc.so /usr/lib/libc.so.6.new
mv -f /usr/lib/libc.so.6.new /usr/lib/libc.so.6
(echo '/* GNU ld script';\
echo ' Use the shared library, but some functions are only in';\
echo ' the static library, so try that secondarily. */';\
cat /sources/glibc-2.37/build/format.lds; \
echo 'GROUP ( /usr/lib/libc.so.6' \
'/usr/lib/libc_nonshared.a'\
' AS_NEEDED (' /usr/lib/ld-linux-x86-64.so.2 ') )' \
) > /usr/lib/libc.so.new
*** stack smashing detected ***: terminated
make[1]: *** [Makerules:1051: /usr/lib/libc.so] Aborted
make[1]: Leaving directory '/sources/glibc-2.37'
make: *** [Makefile:12: install] Error 2
(lfs chroot) root:/sources/glibc-2.37/build# ls
*** stack smashing detected ***: terminated
Aborted
(lfs chroot) root:/sources/glibc-2.37/build# ldd ls
*** stack smashing detected ***: terminated
Aborted
(lfs chroot) root:/sources/glibc-2.37/build# pwd
/sources/glibc-2.37/build
(lfs chroot) root:/sources/glibc-2.37/build# which pwd
bash: which: command not found
(lfs chroot) root:/sources/glibc-2.37/build#I can't figure out the root cause and guess it has something to do with glibc, since ls/ldd also errored( but don't know why pwd didn't).
The libc etc on partly build lfs:
Code:root@slacktest:~# ls $LFS/usr/lib/libc* -l
-rw-r--r-- 1 root root 24545770 Aug 28 07:47 /mnt/lfs/usr/lib/libc.a
-rw-r--r-- 1 root root 255 Aug 23 10:05 /mnt/lfs/usr/lib/libc.so
-rwxr-xr-x 1 root root 12430032 Aug 28 07:47 /mnt/lfs/usr/lib/libc.so.6
lrwxrwxrwx 1 root root 22 Aug 23 10:05 /mnt/lfs/usr/lib/libc_malloc_debug.so -> libc_malloc_debug.so.0
-rwxr-xr-x 1 root root 191648 Aug 23 10:05 /mnt/lfs/usr/lib/libc_malloc_debug.so.0
-rw-r--r-- 1 root root 22242 Aug 28 07:47 /mnt/lfs/usr/lib/libc_nonshared.a
-rw-r--r-- 1 root root 159452 Aug 23 10:05 /mnt/lfs/usr/lib/libcrypt.a
lrwxrwxrwx 1 root root 13 Aug 23 10:05 /mnt/lfs/usr/lib/libcrypt.so -> libcrypt.so.1
-rwxr-xr-x 1 root root 132032 Aug 23 10:05 /mnt/lfs/usr/lib/libcrypt.so.1
lrwxrwxrwx 1 root root 21 Aug 23 15:10 /mnt/lfs/usr/lib/libctf-nobfd.so -> libctf-nobfd.so.0.0.0
lrwxrwxrwx 1 root root 21 Aug 23 15:10 /mnt/lfs/usr/lib/libctf-nobfd.so.0 -> libctf-nobfd.so.0.0.0
-rwxr-xr-x 1 root root 1514768 Aug 23 15:10 /mnt/lfs/usr/lib/libctf-nobfd.so.0.0.0
lrwxrwxrwx 1 root root 15 Aug 23 15:10 /mnt/lfs/usr/lib/libctf.so -> libctf.so.0.0.0
lrwxrwxrwx 1 root root 15 Aug 23 15:10 /mnt/lfs/usr/lib/libctf.so.0 -> libctf.so.0.0.0
-rwxr-xr-x 1 root root 1351520 Aug 23 15:10 /mnt/lfs/usr/lib/libctf.so.0.0.0
root@slacktest:~#I searched but had no clue as to what to do with it, hope someone here could possbilily point me in the right direction.

**********
Correction: "make test" in both title and the post should be "make install", I just recall it a moment ago and sorry for the confusion.
**********
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments