NetBSD-Bugs archive

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

install/50370: buffer overflow with powerpc--netbsd-ar



>Number:         50370
>Category:       install
>Synopsis:       buffer overflow with  powerpc--netbsd-ar
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    install-manager
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Mon Oct 26 14:40:00 +0000 2015
>Originator:     William
>Release:        Netbsd 1.6.2
>Organization:
>Environment:
Linux w-desktop 2.6.32-38-generic #83-Ubuntu SMP Wed Jan 4 11:13:04 UTC 2012 i686 GNU/Linux

>Description:
When I was trying to setup NetBSD 1.6.2 compiler with macppc tools on ubuntu 10.0 machine, the command was ./build.sh -D /usr/src/destdir.macppc -m macppc tools , I got the following error:



building shared object c library
*** buffer overflow detected ***: /usr/src/tools/obj/tools.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar terminated
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x50)[0x1f2390]
/lib/tls/i686/cmov/libc.so.6(+0xe12ca)[0x1f12ca]
/lib/tls/i686/cmov/libc.so.6(+0xe0a08)[0x1f0a08]
/lib/tls/i686/cmov/libc.so.6(_IO_default_xsputn+0x9e)[0x179afe]
/lib/tls/i686/cmov/libc.so.6(_IO_padn+0xd8)[0x16d5f8]
/lib/tls/i686/cmov/libc.so.6(_IO_vfprintf+0x2aee)[0x14f6fe]
/lib/tls/i686/cmov/libc.so.6(__vsprintf_chk+0xad)[0x1f0abd]
/lib/tls/i686/cmov/libc.so.6(__sprintf_chk+0x2d)[0x1f09fd]
/usr/src/tools/obj/tools.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar[0x804f31f]
/usr/src/tools/obj/tools.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar[0x804d48e]
/usr/src/tools/obj/tools.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar[0x804fb62]
/usr/src/tools/obj/tools.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar[0x80521bd]
/usr/src/tools/obj/tools.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar[0x804af32]
/usr/src/tools/obj/tools.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar[0x804bdb0]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x126bd6]
/usr/src/tools/obj/tools.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar[0x80493c1]
======= Memory map: ========
00110000-00263000 r-xp 00000000 08:01 656004     /lib/tls/i686/cmov/libc-2.11.1.so
00263000-00264000 ---p 00153000 08:01 656004     /lib/tls/i686/cmov/libc-2.11.1.so
00264000-00266000 r--p 00153000 08:01 656004     /lib/tls/i686/cmov/libc-2.11.1.so
00266000-00267000 rw-p 00155000 08:01 656004     /lib/tls/i686/cmov/libc-2.11.1.so
00267000-0026a000 rw-p 00000000 00:00 0 
002f1000-002f2000 r-xp 00000000 00:00 0          [vdso]
00900000-0091b000 r-xp 00000000 08:01 524313     /lib/ld-2.11.1.so
0091b000-0091c000 r--p 0001a000 08:01 524313     /lib/ld-2.11.1.so
0091c000-0091d000 rw-p 0001b000 08:01 524313     /lib/ld-2.11.1.so
00cd9000-00cf6000 r-xp 00000000 08:01 524537     /lib/libgcc_s.so.1
00cf6000-00cf7000 r--p 0001c000 08:01 524537     /lib/libgcc_s.so.1
00cf7000-00cf8000 rw-p 0001d000 08:01 524537     /lib/libgcc_s.so.1
08048000-08096000 r-xp 00000000 08:01 287714     /usr/obj/tools/tools.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar
08096000-08097000 r--p 0004d000 08:01 287714     /usr/obj/tools/tools.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar
08097000-08098000 rw-p 0004e000 08:01 287714     /usr/obj/tools/tools.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar
09548000-09972000 rw-p 00000000 00:00 0          [heap]
b7872000-b787d000 rw-p 00000000 00:00 0 
b787d000-b7884000 r--s 00000000 08:01 269705     /usr/lib/gconv/gconv-modules.cache
b7884000-b7885000 r--p 00000000 08:01 402236     /usr/lib/locale/en_CA.utf8/LC_MESSAGES/SYS_LC_MESSAGES
b7885000-b7887000 rw-p 00000000 00:00 0 
bfb8f000-bfba6000 rw-p 00000000 00:00 0          [stack]
Aborted
*** Error code 134

Stop.
nbmake: stopped in /usr/src/lib/libc
*** Error code 1

Stop.
nbmake: stopped in /usr/src/lib/libc
*** Error code 1

Stop.
nbmake: stopped in /usr/src
*** Error code 1


Do you know what will causes error? 
Thanks

>How-To-Repeat:
Disable to build sunlabel and texinfo/info,   and run   ./build.sh -D /usr/src/destdir.macppc -m macppc tools
>Fix:



Home | Main Index | Thread Index | Old Index