WebHosting Paid by #1Payday.Loans


   The ROCK Linux project has been discontinued in 2010. Here are the old data for the historical record!

?mode=patch&uid=2006092422542823755
Open Patch: 2006092422542823755 (by stf)
+ stf
Votecheck 'core-strong': Missing 1 qualified vote(s) (clifford, fake, teha)
package/base/bash/bash.conf
Stefan Fiedler:
        bash: don't build with --with-bash-malloc, which is known
                to cause segfaults according to LFS

Stefan Fiedler:
        bash: don't build with --with-bash-malloc, which is known
                to cause segfaults according to LFS

--- package/base/bash/bash.conf (Revision 13)
+++ package/base/bash/bash.conf (Revision 14)
@@ -50,8 +50,13 @@
 fi
 
 premake="cat /dev/null > lib/malloc/malloc.c"
-confopt="$confopt --without-gnu-malloc"
 
+# From https://www.linuxfromscratch.org/lfs/view/stable/chapter05/bash.html:
+# This option turns off the use of Bash's memory allocation (malloc) function
+# which is known to cause segmentation faults. By turning this option off,
+# Bash will use the malloc functions from Glibc which are more stable.
+var_append confopt " " "--without-bash-malloc"
+
 if [ $xpkg = bash2 ]; then
        [ $stagelevel -eq 1 ] && confopt="$confopt --disable-readline"
 else

[Download this patch]