Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289528 - dev86 fails to build due to buffer overflow
Summary: dev86 fails to build due to buffer overflow
Status: RESOLVED DUPLICATE of bug 256782
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High blocker (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-17 21:55 UTC by Sugoi Asian
Modified: 2012-02-14 19:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sugoi Asian 2009-10-17 21:55:57 UTC
I can't build dev86, it fails to build due to a buffer overflow.

I'm running gcc 4.3.4, recently upgraded from 4.1.2
I've rebuilt gcc a 2nd time.
I ran fix_libtool_files.sh 4.1.2

build errors
-----------------------------------------------------------------------
make -C libc CC=ncc "CCFLAGS=-O" AR=ar86 ARFLAGS=r PLATFORM=i86-ELKS
make[3]: Entering directory `/var/tmp/portage/sys-devel/dev86-0.16.17-r5/work/dev86-0.16.17/libc'
ncc -c -Mn -O -D__LIBC__ -D__LIBC_VER__='"0.16.17"' -o crt0.o crt0.c
*** buffer overflow detected ***: ncc terminated
======= Backtrace: =========
/lib/libc.so.6(__fortify_fail+0x32)[0x2ac6ad9eb4d2]
/lib/libc.so.6[0x2ac6ad9e94a0]
/lib/libc.so.6[0x2ac6ad9e9b0b]
ncc[0x401547]
ncc[0x403307]
/lib/libc.so.6(__libc_start_main+0xf4)[0x2ac6ad92f5e4]
ncc[0x400db9]
======= Memory map: ========
00400000-00405000 r-xp 00000000 08:06 25026666                           /var/tmp/portage/sys-devel/dev86-0.16.17-r5/work/dev86-0.16.17/bin/ncc
00604000-00605000 r--p 00004000 08:06 25026666                           /var/tmp/portage/sys-devel/dev86-0.16.17-r5/work/dev86-0.16.17/bin/ncc
00605000-00606000 rw-p 00005000 08:06 25026666                           /var/tmp/portage/sys-devel/dev86-0.16.17-r5/work/dev86-0.16.17/bin/ncc
02209000-0222a000 rw-p 02209000 00:00 0                                  [heap]
2ac6ad4e5000-2ac6ad501000 r-xp 00000000 08:06 25052282                   /lib64/ld-2.9.so
2ac6ad501000-2ac6ad503000 rw-p 2ac6ad501000 00:00 0
2ac6ad700000-2ac6ad701000 r--p 0001b000 08:06 25052282                   /lib64/ld-2.9.so
2ac6ad701000-2ac6ad702000 rw-p 0001c000 08:06 25052282                   /lib64/ld-2.9.so
2ac6ad702000-2ac6ad70e000 r-xp 00000000 08:06 25036173                   /usr/lib64/libsandbox.so
2ac6ad70e000-2ac6ad90d000 ---p 0000c000 08:06 25036173                   /usr/lib64/libsandbox.so
2ac6ad90d000-2ac6ad90e000 r--p 0000b000 08:06 25036173                   /usr/lib64/libsandbox.so
2ac6ad90e000-2ac6ad90f000 rw-p 0000c000 08:06 25036173                   /usr/lib64/libsandbox.so
2ac6ad90f000-2ac6ad911000 rw-p 2ac6ad90f000 00:00 0
2ac6ad911000-2ac6ada51000 r-xp 00000000 08:06 25052739                   /lib64/libc-2.9.so
2ac6ada51000-2ac6adc50000 ---p 00140000 08:06 25052739                   /lib64/libc-2.9.so
2ac6adc50000-2ac6adc54000 r--p 0013f000 08:06 25052739                   /lib64/libc-2.9.so
2ac6adc54000-2ac6adc55000 rw-p 00143000 08:06 25052739                   /lib64/libc-2.9.so
2ac6adc55000-2ac6adc5a000 rw-p 2ac6adc55000 00:00 0
2ac6adc5a000-2ac6adc5c000 r-xp 00000000 08:06 25052751                   /lib64/libdl-2.9.so
2ac6adc5c000-2ac6ade5c000 ---p 00002000 08:06 25052751                   /lib64/libdl-2.9.so
2ac6ade5c000-2ac6ade5d000 r--p 00002000 08:06 25052751                   /lib64/libdl-2.9.so
2ac6ade5d000-2ac6ade5e000 rw-p 00003000 08:06 25052751                   /lib64/libdl-2.9.so
2ac6ade5e000-2ac6ade60000 rw-p 2ac6ade5e000 00:00 0
2ac6ade60000-2ac6ade76000 r-xp 00000000 08:06 6799485                    /lib64/libgcc_s.so.1
2ac6ade76000-2ac6ae075000 ---p 00016000 08:06 6799485                    /lib64/libgcc_s.so.1
2ac6ae075000-2ac6ae076000 r--p 00015000 08:06 6799485                    /lib64/libgcc_s.so.1
2ac6ae076000-2ac6ae077000 rw-p 00016000 08:06 6799485                    /lib64/libgcc_s.so.1
7ffffd5ad000-7ffffd5c5000 rw-p 7ffffffe7000 00:00 0                      [stack]
7ffffd5fc000-7ffffd5fd000 r-xp 7ffffd5fc000 00:00 0                      [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
-----------------------------------------------------------------------
Comment 1 Sugoi Asian 2009-10-17 22:02:44 UTC
I've now also run:
emerge --oneshot -av libtool
revdep-rebuild --library libltdl.so.3
rm '/usr/lib64/libltdl.so.3'

and tried emerge dev86 again, failed the same.
Comment 2 Sebastian Luther (few) 2009-10-18 18:28:06 UTC
Stabilization of sys-devel/dev86-0.16.17-r6, which does not have this bug, has been requested in bug 289014.

For your _next_ bug report: Provide all the information that emerge tells you to provide.

*** This bug has been marked as a duplicate of bug 256782 ***