Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 355907 - sys-devel/make-3.82 dies with *** glibc detected *** make: free(): invalid next size (fast):
Summary: sys-devel/make-3.82 dies with *** glibc detected *** make: free(): invalid ne...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL: http://lists.gnu.org/archive/html/bug...
Whiteboard:
Keywords:
Depends on:
Blocks: gmake-3.82
  Show dependency tree
 
Reported: 2011-02-21 20:41 UTC by blackd
Modified: 2011-06-28 08:19 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info.txt,6.85 KB, text/plain)
2011-02-21 20:42 UTC, blackd
Details

Note You need to log in before you can comment on or make changes to this bug.
Description blackd 2011-02-21 20:41:04 UTC
make-3.82 dies while building android (CyanogenMod) make-3.81-r2 works fine.

Reproducible: Always

Steps to Reproduce:
1. fallow these instructions to setup build environment and start a build http://wiki.cyanogenmod.com/index.php?title=Compile_CyanogenMod_for_Ace 

Actual Results:  
Error message is displayed:


*** glibc detected *** make: free(): invalid next size (fast): 0x000000000ae77780 ***
======= Backtrace: =========
/lib/libc.so.6[0x397227833d]
/lib/libc.so.6(cfree+0x73)[0x397227ea33]
make[0x409ef5]
make[0x40bfee]
make[0x40656b]
make[0x406d71]
make[0x40bf9b]
make[0x40656b]
make[0x406147]
make[0x406a72]
make[0x4097bb]
make[0x40bfee]
make[0x40656b]
make[0x406c65]
make[0x41f2cd]
make[0x41f4bd]
make[0x4177de]
make[0x418c52]
make[0x417f2e]
make[0x418c52]
make[0x418ffc]
make[0x412e60]
/lib/libc.so.6(__libc_start_main+0xec)[0x397221ed4c]
make[0x402bc9]
======= Memory map: ========
00400000-0042a000 r-xp 00000000 fd:0c 2307129                            /usr/bin/gmake
00629000-0062a000 r--p 00029000 fd:0c 2307129                            /usr/bin/gmake
0062a000-0062c000 rw-p 0002a000 fd:0c 2307129                            /usr/bin/gmake
0062c000-0062d000 rw-p 00000000 00:00 0 
02135000-0b1ba000 rw-p 00000000 00:00 0                                  [heap]
3629400000-3629416000 r-xp 00000000 fd:0c 2103976                        /lib64/libgcc_s.so.1
3629416000-3629615000 ---p 00016000 fd:0c 2103976                        /lib64/libgcc_s.so.1
3629615000-3629616000 r--p 00015000 fd:0c 2103976                        /lib64/libgcc_s.so.1
3629616000-3629617000 rw-p 00016000 fd:0c 2103976                        /lib64/libgcc_s.so.1
3971e00000-3971e21000 r-xp 00000000 fd:0c 2110231                        /lib64/ld-2.12.2.so
3972020000-3972021000 r--p 00020000 fd:0c 2110231                        /lib64/ld-2.12.2.so
3972021000-3972022000 rw-p 00021000 fd:0c 2110231                        /lib64/ld-2.12.2.so
3972022000-3972023000 rw-p 00000000 00:00 0 
3972200000-397237c000 r-xp 00000000 fd:0c 2117521                        /lib64/libc-2.12.2.so
397237c000-397257c000 ---p 0017c000 fd:0c 2117521                        /lib64/libc-2.12.2.so
397257c000-3972580000 r--p 0017c000 fd:0c 2117521                        /lib64/libc-2.12.2.so
3972580000-3972581000 rw-p 00180000 fd:0c 2117521                        /lib64/libc-2.12.2.so
3972581000-3972586000 rw-p 00000000 00:00 0 
3972e00000-3972e18000 r-xp 00000000 fd:0c 2117524                        /lib64/libpthread-2.12.2.so
3972e18000-3973018000 ---p 00018000 fd:0c 2117524                        /lib64/libpthread-2.12.2.so
3973018000-3973019000 r--p 00018000 fd:0c 2117524                        /lib64/libpthread-2.12.2.so
3973019000-397301a000 rw-p 00019000 fd:0c 2117524                        /lib64/libpthread-2.12.2.so
397301a000-397301e000 rw-p 00000000 00:00 0 
3973600000-3973608000 r-xp 00000000 fd:0c 2117527                        /lib64/librt-2.12.2.so
3973608000-3973807000 ---p 00008000 fd:0c 2117527                        /lib64/librt-2.12.2.so
3973807000-3973808000 r--p 00007000 fd:0c 2117527                        /lib64/librt-2.12.2.so
3973808000-3973809000 rw-p 00008000 fd:0c 2117527                        /lib64/librt-2.12.2.so
7f1e8c000000-7f1e8c021000 rw-p 00000000 00:00 0 
7f1e8c021000-7f1e90000000 ---p 00000000 00:00 0 
7f1e927ed000-7f1e92e5e000 rw-p 00000000 00:00 0 
7f1e934cf000-7f1e93b40000 rw-p 00000000 00:00 0 
7f1e93c12000-7f1e9994c000 r--p 00000000 fd:0c 830008                     /usr/lib64/locale/locale-archive
7f1e9994c000-7f1e9994f000 rw-p 00000000 00:00 0 
7f1e99983000-7f1e9998a000 r--s 00000000 fd:0c 830006                     /usr/lib64/gconv/gconv-modules.cache
7f1e9998a000-7f1e9998b000 rw-p 00000000 00:00 0 
7f1e9998d000-7f1e99990000 rw-p 00000000 00:00 0 
7fff6b92e000-7fff6b981000 rw-p 00000000 00:00 0                          [stack]
7fff6b9f7000-7fff6b9f8000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Comment 1 blackd 2011-02-21 20:42:19 UTC
Created attachment 263369 [details]
emerge --info
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2011-06-05 12:13:09 UTC
https://bugzilla.redhat.com/show_bug.cgi?id=643359#c13

^ That patch should solve the issue. The patch is already included in Fedora and Arch.
Comment 4 SpanKY gentoo-dev 2011-06-06 16:54:28 UTC
upstream has a different fix which i guess we should import

http://cvs.savannah.gnu.org/viewvc/make/function.c?root=make&r1=1.121&r2=1.122
Comment 5 Tony Vroon (RETIRED) gentoo-dev 2011-06-07 13:17:58 UTC
+*make-3.82-r1 (07 Jun 2011)
+
+  07 Jun 2011; Tony Vroon <chainsaw@gentoo.org> +make-3.82-r1.ebuild,
+  +files/make-3.82-memory-corruption.patch:
+  Revision bump. Patch from upstream fixes memory corruption for
+  Android/Cyanogenmod builds; Savannah bug report #33125. As reported by blackd
+  in bug #355907; patch scavenged by Mike "SpanKY" Frysinger, additional
+  research by Peter "loki_val" Alfredsen & Samuli Suominen.