Build aborts with "double free or corruption (!prev)": make[2]: Leaving directory '/var/tmp/portage/dev-util/colm-0.14.7-r2/work/colm-0.14.7/test/aapl.d' Making all in colm.d make[2]: Entering directory '/var/tmp/portage/dev-util/colm-0.14.7-r2/work/colm-0.14.7/test/colm.d' sedsubst: generating gentests from gentests.sh make[2]: Leaving directory '/var/tmp/portage/dev-util/colm-0.14.7-r2/work/colm-0.14.7/test/colm.d' Making all in rlhc.d make[2]: Entering directory '/var/tmp/portage/dev-util/colm-0.14.7-r2/work/colm-0.14.7/test/rlhc.d' ../../src/colm -b rlhc_object -o rlhc rlhc.lm double free or corruption (!prev) make[2]: *** [Makefile:1703: rlhc] Aborted make[2]: *** Deleting file 'rlhc' make[2]: Leaving directory '/var/tmp/portage/dev-util/colm-0.14.7-r2/work/colm-0.14.7/test/rlhc.d' make[1]: *** [Makefile:438: all-recursive] Error 1 make[1]: Leaving directory '/var/tmp/portage/dev-util/colm-0.14.7-r2/work/colm-0.14.7/test' make: *** [Makefile:486: all-recursive] Error 1 Reproducible: Always
Created attachment 838893 [details] build.log
Created attachment 838895 [details] emerge --info
I get: make[2]: Entering directory '/var/tmp/portage/dev-util/colm-0.14.7-r2/work/colm-0.14.7/test/colm.d' sedsubst: generating gentests from gentests.sh make[2]: Leaving directory '/var/tmp/portage/dev-util/colm-0.14.7-r2/work/colm-0.14.7/test/colm.d' Making all in rlhc.d make[2]: Entering directory '/var/tmp/portage/dev-util/colm-0.14.7-r2/work/colm-0.14.7/test/rlhc.d' ../../src/colm -b rlhc_object -o rlhc rlhc.lm free(): invalid next size (normal) make[2]: *** [Makefile:1703: rlhc] Aborted make[2]: *** Deleting file 'rlhc'
I'm wondering what caused this all of a sudden. I can't reproduce it right now. I wonder if this was fixed just a moment ago by: commit 6e8855971f7a26e1fb5b051bae0346a22a4f83f9 Author: Sam James <sam@gentoo.org> Date: Sat Dec 3 00:53:53 2022 +0000 app-alternatives/lex: fix lex symlink on non-merged-usr Signed-off-by: Sam James <sam@gentoo.org>
installed app-alternative/lex which also forced me to install sys-devel/flex-2.6.4-r5: no change.
Created attachment 839217 [details] emerge --info Hi, Just to say that I'm getting the exact same error with the attached emerge --info You should also note that dev-util/colm-0.14.7 is building fine while -r2 don't. When trying to run the same command from the ebuild WORKDIR with debug symbols on, I'm getting : > # /var/tmp/portage/dev-util/colm-0.14.7-r2/work/colm-0.14.7/test/rlhc.d # ../../src/colm -d -b rlhc_object -o rlhc rlhc.lm > compiling with: 'x86_64-pc-linux-gnu-gcc -march=x86-64 -mtune=generic -O2 -pipe -mmmx -msse -msse2 -msse3 -mssse3 -mcx16 -msahf -mpclmul -mpopcnt -msse4.2 -msse4.1 -mfxsr -fstack-protector-strong -mno-3dnow -mno-sse4a -mno-movbe -mno-aes -mno-sha -mno-abm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-sgx -mno-bmi2 -mno-pconfig -mno-wbnoinvd -mno-tbm -mno-avx -mno-avx2 -mno-lzcnt -mno-rtm -mno-hle -mno-rdrnd -mno-f16c -mno-fsgsbase -mno-rdseed -mno-prfchw -mno-adx -mno-xsave -mno-xsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mno-clflushopt -mno-xsavec -mno-xsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-avx5124fmaps -mno-avx5124vnniw -mno-clwb -mno-mwaitx -mno-clzero -mno-pku -mno-rdpid -mno-gfni -mno-shstk -mno-avx512vbmi2 -mno-avx512vnni -mno-vaes -mno-vpclmulqdq -mno-avx512bitalg -mno-movdiri -mno-movdir64b -mno-waitpkg -mno-cldemote -mno-ptwrite -Wall -Wwrite-strings -g -o rlhc rlhc.c -I/var/tmp/portage/dev-util/colm-0.14.7-r2/work/colm-0.14.7/src/../aapl -I/var/tmp/portage/dev-util/colm-0.14.7-r2/work/colm-0.14.7/src/include -L/var/tmp/portage/dev-util/colm-0.14.7-r2/work/colm-0.14.7/src/.libs /var/tmp/portage/dev-util/colm-0.14.7-r2/work/colm-0.14.7/src/.libs/libcolm.so' > free(): invalid next size (normal) > Abandon (core dumped)
oh, I completely missed bug 883883.
(In reply to Sam James from comment #7) > oh, I completely missed bug 883883. Does ragel-7.0.4-r2 help?
(In reply to Sam James from comment #8) > (In reply to Sam James from comment #7) > > oh, I completely missed bug 883883. > > Does ragel-7.0.4-r2 help? ragel-7.0.4-r2 pulls in >=dev-util/colm-0.14.7-r1, which also fails with Double free or corruption
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56f9308d38ba0c71b6109596185c9feffafb2bfc commit 56f9308d38ba0c71b6109596185c9feffafb2bfc Author: Sam James <sam@gentoo.org> AuthorDate: 2022-12-03 11:03:24 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-12-03 11:03:28 +0000 dev-util/colm: destabilize 0.14.7-r2 Crash reports Bug: https://bugs.gentoo.org/839048 Bug: https://bugs.gentoo.org/883883 Bug: https://bugs.gentoo.org/883993 Signed-off-by: Sam James <sam@gentoo.org> dev-util/colm/colm-0.14.7-r2.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
thanks for pulling colm. If you think it got fixed, drop a comment, I am more than willing to spend some cpu cycles ;)
Are you still hitting this? I don't know why I don't see this issues with dev-util/ragel-7.0.4-r2 and dev-util/colm-0.14.7-r2
(In reply to Pacho Ramos from comment #12) > Are you still hitting this? Yes. In -r2 ebuild, if I comment the following line in src_prepare() : > sed -i -e "s|gcc|$(tc-getCC) ${CFLAGS}|" src/main.cc || die The result is : > make[1]: Leaving directory '/var/tmp/portage/dev-util/colm-0.14.7-r2/work/colm-0.14.7' > >>> Source compiled.
This lioe was added in this commit : https://gitweb.gentoo.org/repo/gentoo.git/commit/dev-util/colm?id=4ed80e7fbd76241d440fe0bcd84d8723f93b8d73
Oh, interesting!
-r2 builds and installs fine if I remove -fstack-protector-strong from my CFLAGS, but OP does not have it in his own CFLAGS.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6693c3cc856e6328d7054c2e8224a4c93bf1315f commit 6693c3cc856e6328d7054c2e8224a4c93bf1315f Author: Sam James <sam@gentoo.org> AuthorDate: 2023-05-20 04:56:43 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2023-05-20 04:56:43 +0000 dev-util/colm: don't inject CFLAGS to main.cc Causes crashes with some combinations. Closes: https://bugs.gentoo.org/883993 Bug: https://bugs.gentoo.org/766069 Signed-off-by: Sam James <sam@gentoo.org> dev-util/colm/colm-0.14.7-r3.ebuild | 69 +++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a1e08ac5ed37555aafc8f09748fb942d9b7255c commit 1a1e08ac5ed37555aafc8f09748fb942d9b7255c Author: Sam James <sam@gentoo.org> AuthorDate: 2024-02-29 07:30:43 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-02-29 07:33:54 +0000 dev-util/colm: filter LTO, no-SA ragel and colm are *very* fragile. Bug: https://bugs.gentoo.org/858341 Bug: https://bugs.gentoo.org/883993 Bug: https://bugs.gentoo.org/924163 Signed-off-by: Sam James <sam@gentoo.org> dev-util/colm/colm-0.14.7-r3.ebuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d333828408e6230ce3a7aef9ce6fba2fb5ec945 commit 5d333828408e6230ce3a7aef9ce6fba2fb5ec945 Author: Sam James <sam@gentoo.org> AuthorDate: 2024-02-29 07:29:44 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-02-29 07:33:54 +0000 dev-util/ragel: filter LTO, no-SA ragel and colm are *very* fragile. Bug: https://bugs.gentoo.org/858341 Bug: https://bugs.gentoo.org/883993 Bug: https://bugs.gentoo.org/924163 Signed-off-by: Sam James <sam@gentoo.org> dev-util/ragel/ragel-7.0.4-r3.ebuild | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)