Bug#915194: gcc-8-cross: mips64el-linux-gnuabi64-gcc-8 munmap_chunk(): invalid pointer when build for o32
Package: src:gcc-8-cross
Version: 23
These bellow cmd will show:
munmap_chunk(): invalid pointer
Aborted
$ echo "int a(){ return 1; }" | mips64el-linux-gnuabi64-gcc-8 -c -mabi=32 -xc -
$ echo "int a(){ return 1; }" | mips64el-linux-gnuabi64-gcc-8 -B
/non_exists/ -c -mabi=32 -xc -
$ echo "int a(){ return 1; }" | mips64el-linux-gnuabi64-gcc-8 -B
/usr/share -c -mabi=32 -xc -
$ echo "int a(){ return 1; }" | mips64el-linux-gnuabi64-gcc-8 -EB -c
-mabi=32 -xc -
Some other example that work well
$ echo "int a(){ return 1; }" | mips64el-linux-gnuabi64-gcc-8 -c -mabi=n32 -xc -
$ # works well, use abi=n32
$ echo "int a(){ return 1; }" | mips64el-linux-gnuabi64-gcc-8 -c -mabi=64 -xc -
$ # works well, use abi=64
$ echo "int a(){ return 1; }" | mips64el-linux-gnuabi64-gcc-8 -B
/usr/mips64el-linux-gnuabi64/bin/ -c -mabi=32 -xc -
$ # works well, add -B option
$ echo "int a(){ return 1; }" | mips64el-linux-gnuabi64-gcc-8 -B
/usr/bin/ -c -mabi=32 -xc -
$ # works well, add -B option
$ echo "int a(){ return 1; }" | mips64-linux-gnuabi64-gcc-8 -c -mabi=32 -xc -
$ # works well, add use mips64 aka eb
$ echo "int a(){ return 1; }" | mips64-linux-gnuabi64-gcc-8 -EL -c
-mabi=32 -xc -
$ # works well, add use mips64 aka eb, and with -EL option.
Is it an upstream bug?
--
YunQiang Su
Reply to: