bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/22326] New: free(): invalid next size (fast)


From: hjl.tools at gmail dot com
Subject: [Bug ld/22326] New: free(): invalid next size (fast)
Date: Fri, 20 Oct 2017 12:31:22 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22326

            Bug ID: 22326
           Summary: free(): invalid next size (fast)
           Product: binutils
           Version: 2.29
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
  Target Milestone: ---
            Target: mips64-linux

When configuring glibc for mips64-linux-gnu-n64, I got

*** Error in
`/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/lib/gcc/mips64-glibc-linux-gnu/7.2.1/../../../../mips64-glibc-linux-gnu/bin/ld':
free(): invalid next size (fast): 0x00000000011ae7f0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7d0dc)[0x7f21812010dc]
/lib64/libc.so.6(+0x87f89)[0x7f218120bf89]
/lib64/libc.so.6(cfree+0x16e)[0x7f21812118ee]
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/lib/gcc/mips64-glibc-linux-gnu/7.2.1/../../../../mips64-glibc-linux-gnu/bin/ld[0x4405fe]
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/lib/gcc/mips64-glibc-linux-gnu/7.2.1/../../../../mips64-glibc-linux-gnu/bin/ld[0x48b033]
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/lib/gcc/mips64-glibc-linux-gnu/7.2.1/../../../../mips64-glibc-linux-gnu/bin/ld[0x462bd2]
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/lib/gcc/mips64-glibc-linux-gnu/7.2.1/../../../../mips64-glibc-linux-gnu/bin/ld[0x419244]
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/lib/gcc/mips64-glibc-linux-gnu/7.2.1/../../../../mips64-glibc-linux-gnu/bin/ld[0x403464]
/lib64/libc.so.6(__libc_start_main+0xea)[0x7f21811a4dba]
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/lib/gcc/mips64-glibc-linux-gnu/7.2.1/../../../../mips64-glibc-linux-gnu/bin/ld[0x403a5a]
======= Memory map: ========
00400000-00601000 r-xp 00000000 08:11 106901824                         
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/mips64-glibc-linux-gnu/bin/ld
00800000-00801000 r--p 00200000 08:11 106901824                         
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/mips64-glibc-linux-gnu/bin/ld
00801000-00806000 rw-p 00201000 08:11 106901824                         
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/mips64-glibc-linux-gnu/bin/ld
00806000-0080c000 rw-p 00000000 00:00 0 
01181000-01250000 rw-p 00000000 00:00 0                                  [heap]
7f217c000000-7f217c021000 rw-p 00000000 00:00 0 
7f217c021000-7f2180000000 ---p 00000000 00:00 0 
7f2180d5b000-7f2180d71000 r-xp 00000000 08:06 664489                    
/usr/lib64/libgcc_s-7-20170915.so.1
7f2180d71000-7f2180f70000 ---p 00016000 08:06 664489                    
/usr/lib64/libgcc_s-7-20170915.so.1
7f2180f70000-7f2180f71000 r--p 00015000 08:06 664489                    
/usr/lib64/libgcc_s-7-20170915.so.1
7f2180f71000-7f2180f72000 rw-p 00016000 08:06 664489                    
/usr/lib64/libgcc_s-7-20170915.so.1
7f2180f72000-7f2180f83000 r-xp 00000000 08:11 106902829                 
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/libexec/gcc/mips64-glibc-linux-gnu/7.2.1/liblto_plugin.so.0.0.0
7f2180f83000-7f2181182000 ---p 00011000 08:11 106902829                 
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/libexec/gcc/mips64-glibc-linux-gnu/7.2.1/liblto_plugin.so.0.0.0
7f2181182000-7f2181183000 r--p 00010000 08:11 106902829                 
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/libexec/gcc/mips64-glibc-linux-gnu/7.2.1/liblto_plugin.so.0.0.0
7f2181183000-7f2181184000 rw-p 00011000 08:11 106902829                 
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/libexec/gcc/mips64-glibc-linux-gnu/7.2.1/liblto_plugin.so.0.0.0
7f2181184000-7f2181351000 r-xp 00000000 08:06 661744                    
/usr/lib64/libc-2.25.so
7f2181351000-7f2181551000 ---p 001cd000 08:06 661744                    
/usr/lib64/libc-2.25.so
7f2181551000-7f2181555000 r--p 001cd000 08:06 661744                    
/usr/lib64/libc-2.25.so
7f2181555000-7f2181557000 rw-p 001d1000 08:06 661744                    
/usr/lib64/libc-2.25.so
7f2181557000-7f218155b000 rw-p 00000000 00:00 0 
7f218155b000-7f218155e000 r-xp 00000000 08:06 661848                    
/usr/lib64/libdl-2.25.so
7f218155e000-7f218175d000 ---p 00003000 08:06 661848                    
/usr/lib64/libdl-2.25.so
7f218175d000-7f218175e000 r--p 00002000 08:06 661848                    
/usr/lib64/libdl-2.25.so
7f218175e000-7f218175f000 rw-p 00003000 08:06 661848                    
/usr/lib64/libdl-2.25.so
7f218175f000-7f2181785000 r-xp 00000000 08:06 661385                    
/usr/lib64/ld-2.25.so
7f2181939000-7f2181983000 rw-p 00000000 00:00 0 
7f2181983000-7f2181985000 rw-p 00000000 00:00 0 
7f2181985000-7f2181986000 r--p 00026000 08:06 661385                    
/usr/lib64/ld-2.25.so
7f2181986000-7f2181988000 rw-p 00027000 08:06 661385                    
/usr/lib64/ld-2.25.so
7ffcc8baa000-7ffcc8bcc000 rw-p 00000000 00:00 0                         
[stack]
7ffcc8bde000-7ffcc8be1000 r--p 00000000 00:00 0                          [vvar]
7ffcc8be1000-7ffcc8be3000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                 
[vsyscall]
*** Error in
`/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/lib/gcc/mips64-glibc-linux-gnu/7.2.1/../../../../mips64-glibc-linux-gnu/bin/ld':
free(): invalid next size (fast): 0x00000000013d0b70 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7d0dc)[0x7fb8b267d0dc]
/lib64/libc.so.6(+0x87f89)[0x7fb8b2687f89]
/lib64/libc.so.6(cfree+0x16e)[0x7fb8b268d8ee]
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/lib/gcc/mips64-glibc-linux-gnu/7.2.1/../../../../mips64-glibc-linux-gnu/bin/ld[0x4405fe]
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/lib/gcc/mips64-glibc-linux-gnu/7.2.1/../../../../mips64-glibc-linux-gnu/bin/ld[0x48b033]
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/lib/gcc/mips64-glibc-linux-gnu/7.2.1/../../../../mips64-glibc-linux-gnu/bin/ld[0x462bd2]
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/lib/gcc/mips64-glibc-linux-gnu/7.2.1/../../../../mips64-glibc-linux-gnu/bin/ld[0x419244]
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/lib/gcc/mips64-glibc-linux-gnu/7.2.1/../../../../mips64-glibc-linux-gnu/bin/ld[0x403464]
/lib64/libc.so.6(__libc_start_main+0xea)[0x7fb8b2620dba]
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/lib/gcc/mips64-glibc-linux-gnu/7.2.1/../../../../mips64-glibc-linux-gnu/bin/ld[0x403a5a]
======= Memory map: ========
00400000-00601000 r-xp 00000000 08:11 106901824                         
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/mips64-glibc-linux-gnu/bin/ld
00800000-00801000 r--p 00200000 08:11 106901824                         
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/mips64-glibc-linux-gnu/bin/ld
00801000-00806000 rw-p 00201000 08:11 106901824                         
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/mips64-glibc-linux-gnu/bin/ld
00806000-0080c000 rw-p 00000000 00:00 0 
00c15000-015d3000 rw-p 00000000 00:00 0                                  [heap]
7fb8ac000000-7fb8ac021000 rw-p 00000000 00:00 0 
7fb8ac021000-7fb8b0000000 ---p 00000000 00:00 0 
7fb8b21d7000-7fb8b21ed000 r-xp 00000000 08:06 664489                    
/usr/lib64/libgcc_s-7-20170915.so.1
7fb8b21ed000-7fb8b23ec000 ---p 00016000 08:06 664489                    
/usr/lib64/libgcc_s-7-20170915.so.1
7fb8b23ec000-7fb8b23ed000 r--p 00015000 08:06 664489                    
/usr/lib64/libgcc_s-7-20170915.so.1
7fb8b23ed000-7fb8b23ee000 rw-p 00016000 08:06 664489                    
/usr/lib64/libgcc_s-7-20170915.so.1
7fb8b23ee000-7fb8b23ff000 r-xp 00000000 08:11 106902829                 
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/libexec/gcc/mips64-glibc-linux-gnu/7.2.1/liblto_plugin.so.0.0.0
7fb8b23ff000-7fb8b25fe000 ---p 00011000 08:11 106902829                 
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/libexec/gcc/mips64-glibc-linux-gnu/7.2.1/liblto_plugin.so.0.0.0
7fb8b25fe000-7fb8b25ff000 r--p 00010000 08:11 106902829                 
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/libexec/gcc/mips64-glibc-linux-gnu/7.2.1/liblto_plugin.so.0.0.0
7fb8b25ff000-7fb8b2600000 rw-p 00011000 08:11 106902829                 
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/libexec/gcc/mips64-glibc-linux-gnu/7.2.1/liblto_plugin.so.0.0.0
7fb8b2600000-7fb8b27cd000 r-xp 00000000 08:06 661744                    
/usr/lib64/libc-2.25.so
7fb8b27cd000-7fb8b29cd000 ---p 001cd000 08:06 661744                    
/usr/lib64/libc-2.25.so
7fb8b29cd000-7fb8b29d1000 r--p 001cd000 08:06 661744                    
/usr/lib64/libc-2.25.so
7fb8b29d1000-7fb8b29d3000 rw-p 001d1000 08:06 661744                    
/usr/lib64/libc-2.25.so
7fb8b29d3000-7fb8b29d7000 rw-p 00000000 00:00 0 
7fb8b29d7000-7fb8b29da000 r-xp 00000000 08:06 661848                    
/usr/lib64/libdl-2.25.so
7fb8b29da000-7fb8b2bd9000 ---p 00003000 08:06 661848                    
/usr/lib64/libdl-2.25.so
7fb8b2bd9000-7fb8b2bda000 r--p 00002000 08:06 661848                    
/usr/lib64/libdl-2.25.so
7fb8b2bda000-7fb8b2bdb000 rw-p 00003000 08:06 661848                    
/usr/lib64/libdl-2.25.so
7fb8b2bdb000-7fb8b2c01000 r-xp 00000000 08:06 661385                    
/usr/lib64/ld-2.25.so
7fb8b2d72000-7fb8b2dff000 rw-p 00000000 00:00 0 
7fb8b2dff000-7fb8b2e01000 rw-p 00000000 00:00 0 
7fb8b2e01000-7fb8b2e02000 r--p 00026000 08:06 661385                    
/usr/lib64/ld-2.25.so
7fb8b2e02000-7fb8b2e04000 rw-p 00027000 08:06 661385                    
/usr/lib64/ld-2.25.so
7ffca268b000-7ffca26ad000 rw-p 00000000 00:00 0                         
[stack]
7ffca27e0000-7ffca27e3000 r--p 00000000 00:00 0                          [vvar]
7ffca27e3000-7ffca27e5000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                 
[vsyscall]
*** Error in
`/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/lib/gcc/mips64-glibc-linux-gnu/7.2.1/../../../../mips64-glibc-linux-gnu/bin/ld':
free(): invalid next size (fast): 0x000000000115c7e0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7d0dc)[0x7fafcd8f10dc]
/lib64/libc.so.6(+0x87f89)[0x7fafcd8fbf89]
/lib64/libc.so.6(cfree+0x16e)[0x7fafcd9018ee]
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/lib/gcc/mips64-glibc-linux-gnu/7.2.1/../../../../mips64-glibc-linux-gnu/bin/ld[0x4405fe]
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/lib/gcc/mips64-glibc-linux-gnu/7.2.1/../../../../mips64-glibc-linux-gnu/bin/ld[0x48b033]
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/lib/gcc/mips64-glibc-linux-gnu/7.2.1/../../../../mips64-glibc-linux-gnu/bin/ld[0x462bd2]
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/lib/gcc/mips64-glibc-linux-gnu/7.2.1/../../../../mips64-glibc-linux-gnu/bin/ld[0x419244]
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/lib/gcc/mips64-glibc-linux-gnu/7.2.1/../../../../mips64-glibc-linux-gnu/bin/ld[0x403464]
/lib64/libc.so.6(__libc_start_main+0xea)[0x7fafcd894dba]
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/lib/gcc/mips64-glibc-linux-gnu/7.2.1/../../../../mips64-glibc-linux-gnu/bin/ld[0x403a5a]
======= Memory map: ========
00400000-00601000 r-xp 00000000 08:11 106901824                         
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/mips64-glibc-linux-gnu/bin/ld
00800000-00801000 r--p 00200000 08:11 106901824                         
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/mips64-glibc-linux-gnu/bin/ld
00801000-00806000 rw-p 00201000 08:11 106901824                         
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/mips64-glibc-linux-gnu/bin/ld
00806000-0080c000 rw-p 00000000 00:00 0 
01130000-011fd000 rw-p 00000000 00:00 0                                  [heap]
7fafc8000000-7fafc8021000 rw-p 00000000 00:00 0 
7fafc8021000-7fafcc000000 ---p 00000000 00:00 0 
7fafcd44b000-7fafcd461000 r-xp 00000000 08:06 664489                    
/usr/lib64/libgcc_s-7-20170915.so.1
7fafcd461000-7fafcd660000 ---p 00016000 08:06 664489                    
/usr/lib64/libgcc_s-7-20170915.so.1
7fafcd660000-7fafcd661000 r--p 00015000 08:06 664489                    
/usr/lib64/libgcc_s-7-20170915.so.1
7fafcd661000-7fafcd662000 rw-p 00016000 08:06 664489                    
/usr/lib64/libgcc_s-7-20170915.so.1
7fafcd662000-7fafcd673000 r-xp 00000000 08:11 106902829                 
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/libexec/gcc/mips64-glibc-linux-gnu/7.2.1/liblto_plugin.so.0.0.0
7fafcd673000-7fafcd872000 ---p 00011000 08:11 106902829                 
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/libexec/gcc/mips64-glibc-linux-gnu/7.2.1/liblto_plugin.so.0.0.0
7fafcd872000-7fafcd873000 r--p 00010000 08:11 106902829                 
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/libexec/gcc/mips64-glibc-linux-gnu/7.2.1/liblto_plugin.so.0.0.0
7fafcd873000-7fafcd874000 rw-p 00011000 08:11 106902829                 
/export/gnu/import/git/toolchain/install/compilers/mips64-linux-gnu/libexec/gcc/mips64-glibc-linux-gnu/7.2.1/liblto_plugin.so.0.0.0
7fafcd874000-7fafcda41000 r-xp 00000000 08:06 661744                    
/usr/lib64/libc-2.25.so
7fafcda41000-7fafcdc41000 ---p 001cd000 08:06 661744                    
/usr/lib64/libc-2.25.so
7fafcdc41000-7fafcdc45000 r--p 001cd000 08:06 661744                    
/usr/lib64/libc-2.25.so
7fafcdc45000-7fafcdc47000 rw-p 001d1000 08:06 661744                    
/usr/lib64/libc-2.25.so
7fafcdc47000-7fafcdc4b000 rw-p 00000000 00:00 0 
7fafcdc4b000-7fafcdc4e000 r-xp 00000000 08:06 661848                    
/usr/lib64/libdl-2.25.so
7fafcdc4e000-7fafcde4d000 ---p 00003000 08:06 661848                    
/usr/lib64/libdl-2.25.so
7fafcde4d000-7fafcde4e000 r--p 00002000 08:06 661848                    
/usr/lib64/libdl-2.25.so
7fafcde4e000-7fafcde4f000 rw-p 00003000 08:06 661848                    
/usr/lib64/libdl-2.25.so
7fafcde4f000-7fafcde75000 r-xp 00000000 08:06 661385                    
/usr/lib64/ld-2.25.so
7fafce029000-7fafce073000 rw-p 00000000 00:00 0 
7fafce073000-7fafce075000 rw-p 00000000 00:00 0 
7fafce075000-7fafce076000 r--p 00026000 08:06 661385                    
/usr/lib64/ld-2.25.so
7fafce076000-7fafce078000 rw-p 00027000 08:06 661385                    
/usr/lib64/ld-2.25.so
7ffcfc530000-7ffcfc552000 rw-p 00000000 00:00 0                         
[stack]
7ffcfc5f5000-7ffcfc5f8000 r--p 00000000 00:00 0                          [vvar]
7ffcfc5f8000-7ffcfc5fa000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                 
[vsyscall]

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]