This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

buffer overflow with ar


Hi,

When trying to use a cross-ar from vanilla binutils-2.16 or
binutils-2.16.1 on FC4, I am observing this 
(Here as part of bootstrapping gcc):

# arm-rtems4.7-ar  rc ./libgcc.a libgcc/./_udivsi3.o
*** buffer overflow detected ***: arm-rtems4.7-ar terminated
======= Backtrace: =========
/lib/libc.so.6(__chk_fail+0x41)[0x1ef565]
/lib/libc.so.6(__vsprintf_chk+0x0)[0x1eee30]
/lib/libc.so.6(_IO_default_xsputn+0x97)[0x171b58]
/lib/libc.so.6(_IO_padn+0x7b)[0x16796b]
/lib/libc.so.6(_IO_vfprintf+0x204e)[0x14ddb0]
/lib/libc.so.6(__vsprintf_chk+0xa1)[0x1eeed1]
/lib/libc.so.6(__sprintf_chk+0x30)[0x1eee24]
arm-rtems4.7-ar[0x804f5f6]
arm-rtems4.7-ar[0x804f2e4]
arm-rtems4.7-ar[0x8050320]
arm-rtems4.7-ar[0x805767d]
arm-rtems4.7-ar[0x804b508]
arm-rtems4.7-ar[0x804bb32]
/lib/libc.so.6(__libc_start_main+0xc6)[0x125de6]
arm-rtems4.7-ar[0x80495a1]
======= Memory map: ========
00111000-00235000 r-xp 00000000 03:02 3908184    /lib/libc-2.3.5.so
00235000-00237000 r-xp 00124000 03:02 3908184    /lib/libc-2.3.5.so
00237000-00239000 rwxp 00126000 03:02 3908184    /lib/libc-2.3.5.so
00239000-0023b000 rwxp 00239000 00:00 0
00280000-00281000 r-xp 00280000 00:00 0
00708000-00711000 r-xp 00000000 03:02
3908131    /lib/libgcc_s-4.0.0-20050520.so.1
00711000-00712000 rwxp 00009000 03:02
3908131    /lib/libgcc_s-4.0.0-20050520.so.1
00f34000-00f4e000 r-xp 00000000 03:02 3908151    /lib/ld-2.3.5.so
00f4e000-00f4f000 r-xp 00019000 03:02 3908151    /lib/ld-2.3.5.so
00f4f000-00f50000 rwxp 0001a000 03:02 3908151    /lib/ld-2.3.5.so
08048000-080a2000 r-xp 00000000 03:02
4517374    /opt/rtems-4.7/bin/arm-rtems4.7-ar
080a2000-080a3000 rw-p 0005a000 03:02
4517374    /opt/rtems-4.7/bin/arm-rtems4.7-ar
080a3000-080a7000 rw-p 080a3000 00:00 0
09abc000-09add000 rw-p 09abc000 00:00 0          [heap]
b7db1000-b7dc9000 rw-p b7db1000 00:00 0
b7dc9000-b7dcf000 r--s 00000000 03:02
589107     /usr/lib/gconv/gconv-modules.cache
b7dcf000-b7fcf000 r--p 00000000 03:02
474543     /usr/lib/locale/locale-archive
b7fcf000-b7fd0000 rw-p b7fcf000 00:00 0
b7feb000-b7fec000 rw-p b7feb000 00:00 0
bfdd7000-bfdec000 rw-p bfdd7000 00:00 0          [stack]
Aborted

I there a fix/work-around? Is it a binutils or FC problem?
I hardly can believe nobody has been facing this issue before, but
haven't tried to investigate in depth, yet.

Ralf



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]