mpictor/StepClassLibrary — Issue #150: fedex_plus - buffer overflow on 32bit linux in Release mode
Author: mpictor
Created: 2012-02-29 00:19:39+00:00
State: open

I've experienced this problem on two different verisons of ubuntu:

...
/home/mark/scl/build/../data/wip210e3/210e3_wip_v1_41_mim_lf.exp:32633: WARNING: Unsupported language feature (indexing on a BINARY) at /home/mark/scl/src/express/expr.c:659
Resolution successful. Writing C++ output...
*** buffer overflow detected ***: /home/mark/scl/build/bin/fedex_plus terminated
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0x402628d5]
/lib/i386-linux-gnu/libc.so.6(+0xe66d7)[0x402616d7]
/lib/i386-linux-gnu/libc.so.6(+0xe596e)[0x4026096e]
/home/mark/scl/build/bin/fedex_plus[0x8051b25]
/home/mark/scl/build/bin/fedex_plus(TYPEprint_nm_ft_desc+0x108)[0x805aef8]
/home/mark/scl/build/bin/fedex_plus(TYPEprint_new+0x58a)[0x805b49a]
/home/mark/scl/build/bin/fedex_plus(_Z10SCOPEPrintP6Scope_P11file_holderS0_S0_P14ComplexCollecti+0x660)[0x804ff30]
/home/mark/scl/build/bin/fedex_plus(SCHEMAprint+0x40f)[0x80504df]
/home/mark/scl/build/bin/fedex_plus(print_schemas_separate+0x816)[0x8063476]
/home/mark/scl/build/bin/fedex_plus(print_file+0x582)[0x80514f2]
/home/mark/scl/build/bin/fedex_plus(main+0x301)[0x804d591]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0x40194113]
/home/mark/scl/build/bin/fedex_plus[0x804d8c1]
======= Memory map: ========
08048000-08074000 r-xp 00000000 08:01 139370 /home/mark/scl/build/bin/fedex_plus
08074000-08075000 r--p 0002b000 08:01 139370 /home/mark/scl/build/bin/fedex_plus
08075000-08076000 rw-p 0002c000 08:01 139370 /home/mark/scl/build/bin/fedex_plus
08076000-0808f000 rw-p 00000000 00:00 0
08452000-0e8bf000 rw-p 00000000 00:00 0 [heap]
40000000-4001e000 r-xp 00000000 08:01 268093 /lib/i386-linux-gnu/ld-2.13.so
4001e000-4001f000 r--p 0001d000 08:01 268093 /lib/i386-linux-gnu/ld-2.13.so
4001f000-40020000 rw-p 0001e000 08:01 268093 /lib/i386-linux-gnu/ld-2.13.so
40020000-40021000 r-xp 00000000 00:00 0 [vdso]
40021000-40023000 rw-p 00000000 00:00 0
40023000-4002f000 r-xp 00000000 08:01 139331 /home/mark/scl/build/lib/libexppp.so.3.2
4002f000-40030000 r--p 0000b000 08:01 139331 /home/mark/scl/build/lib/libexppp.so.3.2
40030000-40031000 rw-p 0000c000 08:01 139331 /home/mark/scl/build/lib/libexppp.so.3.2
40031000-40056000 r-xp 00000000 08:01 139321 /home/mark/scl/build/lib/libexpress.so.3.2
40056000-40057000 r--p 00025000 08:01 139321 /home/mark/scl/build/lib/libexpress.so.3.2
40057000-40058000 rw-p 00026000 08:01 139321 /home/mark/scl/build/lib/libexpress.so.3.2
40058000-40064000 rw-p 00000000 00:00 0
40071000-40072000 rw-p 00000000 00:00 0
40072000-40150000 r-xp 00000000 08:01 269530 /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
40150000-40151000 ---p 000de000 08:01 269530 /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
40151000-40155000 r--p 000de000 08:01 269530 /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
40155000-40156000 rw-p 000e2000 08:01 269530 /usr/lib/i386-linux-gnu/libstdc++.so.6.0.16
40156000-4015d000 rw-p 00000000 00:00 0
4015d000-40179000 r-xp 00000000 08:01 276491 /lib/i386-linux-gnu/libgcc_s.so.1
40179000-4017a000 r--p 0001b000 08:01 276491 /lib/i386-linux-gnu/libgcc_s.so.1
4017a000-4017b000 rw-p 0001c000 08:01 276491 /lib/i386-linux-gnu/libgcc_s.so.1
4017b000-402f1000 r-xp 00000000 08:01 271647 /lib/i386-linux-gnu/libc-2.13.so
402f1000-402f3000 r--p 00176000 08:01 271647 /lib/i386-linux-gnu/libc-2.13.so
402f3000-402f4000 rw-p 00178000 08:01 271647 /lib/i386-linux-gnu/libc-2.13.so
402f4000-402f7000 rw-p 00000000 00:00 0
402f7000-4031f000 r-xp 00000000 08:01 276167 /lib/i386-linux-gnu/libm-2.13.so
4031f000-40320000 r--p 00028000 08:01 276167 /lib/i386-linux-gnu/libm-2.13.so
40320000-40321000 rw-p 00029000 08:01 276167 /lib/i386-linux-gnu/libm-2.13.so
40321000-40324000 rw-p 00000000 00:00 0
bfb96000-bfbb7000 rw-p 00000000 00:00 0 [stack]
Aborted
make[2]: *** [210e3_wip_v1_41_mim_lf/compstructs.cc] Error 134
make[1]: *** [data/CMakeFiles/generate_cpp_210e3_wip_v1_41_mim_lf.dir/all] Error 2
make: *** [all] Error 2
mark@ubuntu32-vbox:~/scl/build$ g++ --version
g++ (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

mark@ubuntu32-vbox:~/scl/build$ ld --version
GNU ld (GNU Binutils for Ubuntu) 2.21.53.20110810
Copyright 2011 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.