NetBSD-Bugs archive

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

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



The following reply was made to PR toolchain/50370; it has been noted by GNATS.

From: "jmzhang34 ." <williamwxz%gmail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: install/50370: buffer overflow with powerpc--netbsd-ar
Date: Tue, 27 Oct 2015 14:08:04 -0400

 --001a113fb6ac9732a9052319f559
 Content-Type: text/plain; charset=UTF-8
 
 I switched to NetBSD 3.1 (which should be after 2006?), and used the same
 local host machine (ubuntu 10.0), I still got the same error.
 
 do-gnu-lib-libgcc3 ===> .
 dependall ===> gnu/lib/libgcc3
 dependall ===> gnu/lib/libgcc3/libgcc
 #     build  libgcc/libgcc_p.a
 rm -f libgcc_p.a
 /usr/src/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar
 cq libgcc_p.a
 `NM=/usr/src/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-nm
 NM=/usr/src/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-nm
 MKTEMP=/usr/src/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/nbmktemp
 /usr/src/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/nblorder
 _muldi3.po _negdi2.po _lshrdi3.po _ashldi3.po _ashrdi3.po _ffsdi2.po
 _clz.po _cmpdi2.po _ucmpdi2.po _floatdidf.po _floatdisf.po _fixunsdfsi.po
 _fixunssfsi.po _fixunsdfdi.po _fixdfdi.po _fixunssfdi.po _fixsfdi.po
 _fixxfdi.po _fixunsxfdi.po _floatdixf.po _fixunsxfsi.po _fixtfdi.po
 _fixunstfdi.po _floatditf.po _clear_cache.po _trampoline.po __main.po
 _exit.po _absvsi2.po _absvdi2.po _addvsi3.po _addvdi3.po _subvsi3.po
 _subvdi3.po _mulvsi3.po _mulvdi3.po _negvsi2.po _negvdi2.po _ctors.po
 _eprintf.po _bb.po __gcc_bcmp.po _divdi3.po _moddi3.po _udivdi3.po
 _umoddi3.po _udiv_w_sdiv.po _udivmoddi4.po tramp.po |
 /usr/src/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/nbtsort -q`
 *** buffer overflow detected ***:
 /usr/src/obj/tooldir.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/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar[0x804ffd3]
 /usr/src/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar[0x804e1bb]
 /usr/src/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar[0x805083d]
 /usr/src/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar[0x8053e61]
 /usr/src/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar[0x804b1f0]
 /usr/src/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar[0x804c0fb]
 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0x126bd6]
 /usr/src/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar[0x80495f1]
 ======= Memory map: ========
 00110000-00263000 r-xp 00000000 08:01 392820     /lib/tls/i686/cmov/
 libc-2.11.1.so
 00263000-00264000 ---p 00153000 08:01 392820     /lib/tls/i686/cmov/
 libc-2.11.1.so
 00264000-00266000 r--p 00153000 08:01 392820     /lib/tls/i686/cmov/
 libc-2.11.1.so
 00266000-00267000 rw-p 00155000 08:01 392820     /lib/tls/i686/cmov/
 libc-2.11.1.so
 00267000-0026a000 rw-p 00000000 00:00 0
 0026a000-00287000 r-xp 00000000 08:01 292626     /lib/libgcc_s.so.1
 00287000-00288000 r--p 0001c000 08:01 292626     /lib/libgcc_s.so.1
 00288000-00289000 rw-p 0001d000 08:01 292626     /lib/libgcc_s.so.1
 00296000-002b1000 r-xp 00000000 08:01 261812     /lib/ld-2.11.1.so
 002b1000-002b2000 r--p 0001a000 08:01 261812     /lib/ld-2.11.1.so
 002b2000-002b3000 rw-p 0001b000 08:01 261812     /lib/ld-2.11.1.so
 00cd0000-00cd1000 r-xp 00000000 00:00 0          [vdso]
 08048000-080a9000 r-xp 00000000 08:01 841037
 /usr/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar
 080a9000-080aa000 r--p 00060000 08:01 841037
 /usr/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar
 080aa000-080ab000 rw-p 00061000 08:01 841037
 /usr/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar
 080ab000-080af000 rw-p 00000000 00:00 0
 09dc8000-09efb000 rw-p 00000000 00:00 0          [heap]
 b7885000-b7886000 rw-p 00000000 00:00 0
 b788a000-b7896000 rw-p 00000000 00:00 0
 bf958000-bf96d000 rw-p 00000000 00:00 0          [stack]
 Aborted
 
 *** Failed target:  libgcc_p.a
 *** Failed command:
 /usr/src/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar
 cq libgcc_p.a
 `NM=/usr/src/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-nm
 NM=/usr/src/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-nm
 MKTEMP=/usr/src/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/nbmktemp
 /usr/src/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/nblorder
 _muldi3.po _negdi2.po _lshrdi3.po _ashldi3.po _ashrdi3.po _ffsdi2.po
 _clz.po _cmpdi2.po _ucmpdi2.po _floatdidf.po _floatdisf.po _fixunsdfsi.po
 _fixunssfsi.po _fixunsdfdi.po _fixdfdi.po _fixunssfdi.po _fixsfdi.po
 _fixxfdi.po _fixunsxfdi.po _floatdixf.po _fixunsxfsi.po _fixtfdi.po
 _fixunstfdi.po _floatditf.po _clear_cache.po _trampoline.po __main.po
 _exit.po _absvsi2.po _absvdi2.po _addvsi3.po _addvdi3.po _subvsi3.po
 _subvdi3.po _mulvsi3.po _mulvdi3.po _negvsi2.po _negvdi2.po _ctors.po
 _eprintf.po _bb.po __gcc_bcmp.po _divdi3.po _moddi3.po _udivdi3.po
 _umoddi3.po _udiv_w_sdiv.po _udivmoddi4.po tramp.po |
 /usr/src/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/nbtsort -q`
 *** Error code 134
 
 
 Can you tell how can I possibly disable the check in host (ubuntu) ?
 
 Thanks,
 William
 
 On Mon, Oct 26, 2015 at 1:35 PM, matthew green <mrg%eterna.com.au@localhost> wrote:
 
 > The following reply was made to PR toolchain/50370; it has been noted by
 > GNATS.
 >
 > From: matthew green <mrg%eterna.com.au@localhost>
 > To: gnats-bugs%NetBSD.org@localhost
 > Cc: install-manager%netbsd.org@localhost, gnats-admin%netbsd.org@localhost,
 >     netbsd-bugs%netbsd.org@localhost
 > Subject: re: install/50370: buffer overflow with powerpc--netbsd-ar
 > Date: Tue, 27 Oct 2015 04:30:24 +1100
 >
 >  > When I was trying to setup NetBSD 1.6.2 compiler with macppc tools on
 > ub=
 >  untu 10.0 machine, the command was ./build.sh -D /usr/src/destdir.macppc
 > -=
 >  m macppc tools , I got the following error:
 >
 >  do you mean netbsd 1.6.2 (from 2004) or 6.1.2 (from 2013)?
 >
 >  the former has been unsupported by the project since 2006, so any fixes
 >  there will likely have to come from yourside.  it looks like you need
 >  to either find and the bugs in the old binutils, or, disable the check
 >  in the host (ubuntu) libc.
 >
 >  if the latter, we can and should be able to fix this.
 >
 >
 >  .mrg.
 >
 >
 
 --001a113fb6ac9732a9052319f559
 Content-Type: text/html; charset=UTF-8
 Content-Transfer-Encoding: quoted-printable
 
 <div dir=3D"ltr"><div><div><div>I switched to NetBSD 3.1 (which should be a=
 fter 2006?), and used the same local host machine (ubuntu 10.0), I still go=
 t the same error. <br><br>do-gnu-lib-libgcc3 =3D=3D=3D&gt; .<br>dependall =
 =3D=3D=3D&gt; gnu/lib/libgcc3<br>dependall =3D=3D=3D&gt; gnu/lib/libgcc3/li=
 bgcc<br>#=C2=A0=C2=A0=C2=A0=C2=A0 build=C2=A0 libgcc/libgcc_p.a<br>rm -f li=
 bgcc_p.a<br>/usr/src/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/powerp=
 c--netbsd-ar cq libgcc_p.a `NM=3D/usr/src/obj/tooldir.Linux-2.6.32-38-gener=
 ic-unknown/bin/powerpc--netbsd-nm NM=3D/usr/src/obj/tooldir.Linux-2.6.32-38=
 -generic-unknown/bin/powerpc--netbsd-nm MKTEMP=3D/usr/src/obj/tooldir.Linux=
 -2.6.32-38-generic-unknown/bin/nbmktemp /usr/src/obj/tooldir.Linux-2.6.32-3=
 8-generic-unknown/bin/nblorder _muldi3.po _negdi2.po _lshrdi3.po _ashldi3.p=
 o _ashrdi3.po _ffsdi2.po _clz.po _cmpdi2.po _ucmpdi2.po _floatdidf.po _floa=
 tdisf.po _fixunsdfsi.po _fixunssfsi.po _fixunsdfdi.po _fixdfdi.po _fixunssf=
 di.po _fixsfdi.po _fixxfdi.po _fixunsxfdi.po _floatdixf.po _fixunsxfsi.po _=
 fixtfdi.po _fixunstfdi.po _floatditf.po _clear_cache.po _trampoline.po __ma=
 in.po _exit.po _absvsi2.po _absvdi2.po _addvsi3.po _addvdi3.po _subvsi3.po =
 _subvdi3.po _mulvsi3.po _mulvdi3.po _negvsi2.po _negvdi2.po _ctors.po _epri=
 ntf.po _bb.po __gcc_bcmp.po _divdi3.po _moddi3.po _udivdi3.po _umoddi3.po _=
 udiv_w_sdiv.po _udivmoddi4.po tramp.po | /usr/src/obj/tooldir.Linux-2.6.32-=
 38-generic-unknown/bin/nbtsort -q`<br>*** buffer overflow detected ***: /us=
 r/src/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar te=
 rminated<br>=3D=3D=3D=3D=3D=3D=3D Backtrace: =3D=3D=3D=3D=3D=3D=3D=3D=3D<br=
 >/lib/tls/i686/cmov/libc.so.6(__fortify_fail+0x50)[0x1f2390]<br>/lib/tls/i6=
 86/cmov/libc.so.6(+0xe12ca)[0x1f12ca]<br>/lib/tls/i686/cmov/libc.so.6(+0xe0=
 a08)[0x1f0a08]<br>/lib/tls/i686/cmov/libc.so.6(_IO_default_xsputn+0x9e)[0x1=
 79afe]<br>/lib/tls/i686/cmov/libc.so.6(_IO_padn+0xd8)[0x16d5f8]<br>/lib/tls=
 /i686/cmov/libc.so.6(_IO_vfprintf+0x2aee)[0x14f6fe]<br>/lib/tls/i686/cmov/l=
 ibc.so.6(__vsprintf_chk+0xad)[0x1f0abd]<br>/lib/tls/i686/cmov/libc.so.6(__s=
 printf_chk+0x2d)[0x1f09fd]<br>/usr/src/obj/tooldir.Linux-2.6.32-38-generic-=
 unknown/bin/powerpc--netbsd-ar[0x804ffd3]<br>/usr/src/obj/tooldir.Linux-2.6=
 .32-38-generic-unknown/bin/powerpc--netbsd-ar[0x804e1bb]<br>/usr/src/obj/to=
 oldir.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar[0x805083d]<br>=
 /usr/src/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar=
 [0x8053e61]<br>/usr/src/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/pow=
 erpc--netbsd-ar[0x804b1f0]<br>/usr/src/obj/tooldir.Linux-2.6.32-38-generic-=
 unknown/bin/powerpc--netbsd-ar[0x804c0fb]<br>/lib/tls/i686/cmov/libc.so.6(_=
 _libc_start_main+0xe6)[0x126bd6]<br>/usr/src/obj/tooldir.Linux-2.6.32-38-ge=
 neric-unknown/bin/powerpc--netbsd-ar[0x80495f1]<br>=3D=3D=3D=3D=3D=3D=3D Me=
 mory map: =3D=3D=3D=3D=3D=3D=3D=3D<br>00110000-00263000 r-xp 00000000 08:01=
  392820=C2=A0=C2=A0=C2=A0=C2=A0 /lib/tls/i686/cmov/<a href=3D"http://libc-2=
 .11.1.so">libc-2.11.1.so</a><br>00263000-00264000 ---p 00153000 08:01 39282=
 0=C2=A0=C2=A0=C2=A0=C2=A0 /lib/tls/i686/cmov/<a href=3D"http://libc-2.11.1.=
 so">libc-2.11.1.so</a><br>00264000-00266000 r--p 00153000 08:01 392820=C2=
 =A0=C2=A0=C2=A0=C2=A0 /lib/tls/i686/cmov/<a href=3D"http://libc-2.11.1.so";>=
 libc-2.11.1.so</a><br>00266000-00267000 rw-p 00155000 08:01 392820=C2=A0=C2=
 =A0=C2=A0=C2=A0 /lib/tls/i686/cmov/<a href=3D"http://libc-2.11.1.so";>libc-2=
 .11.1.so</a><br>00267000-0026a000 rw-p 00000000 00:00 0 <br>0026a000-002870=
 00 r-xp 00000000 08:01 292626=C2=A0=C2=A0=C2=A0=C2=A0 /lib/libgcc_s.so.1<br=
 >00287000-00288000 r--p 0001c000 08:01 292626=C2=A0=C2=A0=C2=A0=C2=A0 /lib/=
 libgcc_s.so.1<br>00288000-00289000 rw-p 0001d000 08:01 292626=C2=A0=C2=A0=
 =C2=A0=C2=A0 /lib/libgcc_s.so.1<br>00296000-002b1000 r-xp 00000000 08:01 26=
 1812=C2=A0=C2=A0=C2=A0=C2=A0 /lib/<a href=3D"http://ld-2.11.1.so";>ld-2.11.1=
 .so</a><br>002b1000-002b2000 r--p 0001a000 08:01 261812=C2=A0=C2=A0=C2=A0=
 =C2=A0 /lib/<a href=3D"http://ld-2.11.1.so";>ld-2.11.1.so</a><br>002b2000-00=
 2b3000 rw-p 0001b000 08:01 261812=C2=A0=C2=A0=C2=A0=C2=A0 /lib/<a href=3D"h=
 ttp://ld-2.11.1.so">ld-2.11.1.so</a><br>00cd0000-00cd1000 r-xp 00000000 00:=
 00 0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [vdso]<br>080480=
 00-080a9000 r-xp 00000000 08:01 841037=C2=A0=C2=A0=C2=A0=C2=A0 /usr/obj/too=
 ldir.Linux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar<br>080a9000-080=
 aa000 r--p 00060000 08:01 841037=C2=A0=C2=A0=C2=A0=C2=A0 /usr/obj/tooldir.L=
 inux-2.6.32-38-generic-unknown/bin/powerpc--netbsd-ar<br>080aa000-080ab000 =
 rw-p 00061000 08:01 841037=C2=A0=C2=A0=C2=A0=C2=A0 /usr/obj/tooldir.Linux-2=
 .6.32-38-generic-unknown/bin/powerpc--netbsd-ar<br>080ab000-080af000 rw-p 0=
 0000000 00:00 0 <br>09dc8000-09efb000 rw-p 00000000 00:00 0=C2=A0=C2=A0=C2=
 =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [heap]<br>b7885000-b7886000 rw-p 00=
 000000 00:00 0 <br>b788a000-b7896000 rw-p 00000000 00:00 0 <br>bf958000-bf9=
 6d000 rw-p 00000000 00:00 0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 =C2=A0 [stack]<br>Aborted<br><br>*** Failed target:=C2=A0 libgcc_p.a<br>***=
  Failed command: /usr/src/obj/tooldir.Linux-2.6.32-38-generic-unknown/bin/p=
 owerpc--netbsd-ar cq libgcc_p.a `NM=3D/usr/src/obj/tooldir.Linux-2.6.32-38-=
 generic-unknown/bin/powerpc--netbsd-nm NM=3D/usr/src/obj/tooldir.Linux-2.6.=
 32-38-generic-unknown/bin/powerpc--netbsd-nm MKTEMP=3D/usr/src/obj/tooldir.=
 Linux-2.6.32-38-generic-unknown/bin/nbmktemp /usr/src/obj/tooldir.Linux-2.6=
 .32-38-generic-unknown/bin/nblorder _muldi3.po _negdi2.po _lshrdi3.po _ashl=
 di3.po _ashrdi3.po _ffsdi2.po _clz.po _cmpdi2.po _ucmpdi2.po _floatdidf.po =
 _floatdisf.po _fixunsdfsi.po _fixunssfsi.po _fixunsdfdi.po _fixdfdi.po _fix=
 unssfdi.po _fixsfdi.po _fixxfdi.po _fixunsxfdi.po _floatdixf.po _fixunsxfsi=
 .po _fixtfdi.po _fixunstfdi.po _floatditf.po _clear_cache.po _trampoline.po=
  __main.po _exit.po _absvsi2.po _absvdi2.po _addvsi3.po _addvdi3.po _subvsi=
 3.po _subvdi3.po _mulvsi3.po _mulvdi3.po _negvsi2.po _negvdi2.po _ctors.po =
 _eprintf.po _bb.po __gcc_bcmp.po _divdi3.po _moddi3.po _udivdi3.po _umoddi3=
 .po _udiv_w_sdiv.po _udivmoddi4.po tramp.po | /usr/src/obj/tooldir.Linux-2.=
 6.32-38-generic-unknown/bin/nbtsort -q`<br>*** Error code 134<br><br><br></=
 div>Can you tell how can I possibly disable the check in host (ubuntu) ?<br=
 ><br></div>Thanks,<br></div>William<br></div><div class=3D"gmail_extra"><br=
 ><div class=3D"gmail_quote">On Mon, Oct 26, 2015 at 1:35 PM, matthew green =
 <span dir=3D"ltr">&lt;<a href=3D"mailto:mrg%eterna.com.au@localhost"; target=3D"_blank=
 ">mrg%eterna.com.au@localhost</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quo=
 te" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"=
 >The following reply was made to PR toolchain/50370; it has been noted by G=
 NATS.<br>
 <br>
 From: matthew green &lt;<a href=3D"mailto:mrg%eterna.com.au@localhost";>mrg%eterna.com@localhost=
 .au</a>&gt;<br>
 To: gnats-bugs%NetBSD.org@localhost<br>
 Cc: <a href=3D"mailto:install-manager%netbsd.org@localhost";>install-manager%netbsd.or@localhost=
 g</a>, <a href=3D"mailto:gnats-admin%netbsd.org@localhost";>gnats-admin%netbsd.org@localhost</a>=
 ,<br>
 =C2=A0 =C2=A0 <a href=3D"mailto:netbsd-bugs%netbsd.org@localhost";>netbsd-bugs@netbsd.=
 org</a><br>
 Subject: re: install/50370: buffer overflow with powerpc--netbsd-ar<br>
 Date: Tue, 27 Oct 2015 04:30:24 +1100<br>
 <br>
 =C2=A0&gt; When I was trying to setup NetBSD 1.6.2 compiler with macppc too=
 ls on ub=3D<br>
 =C2=A0untu 10.0 machine, the command was ./build.sh -D /usr/src/destdir.mac=
 ppc -=3D<br>
 =C2=A0m macppc tools , I got the following error:<br>
 <br>
 =C2=A0do you mean netbsd 1.6.2 (from 2004) or 6.1.2 (from 2013)?<br>
 <br>
 =C2=A0the former has been unsupported by the project since 2006, so any fix=
 es<br>
 =C2=A0there will likely have to come from yourside.=C2=A0 it looks like you=
  need<br>
 =C2=A0to either find and the bugs in the old binutils, or, disable the chec=
 k<br>
 =C2=A0in the host (ubuntu) libc.<br>
 <br>
 =C2=A0if the latter, we can and should be able to fix this.<br>
 <br>
 <br>
 =C2=A0.mrg.<br>
 <br>
 </blockquote></div><br></div>
 
 --001a113fb6ac9732a9052319f559--
 



Home | Main Index | Thread Index | Old Index