[Bug c/41567] Too small .bss stack

2009-10-05 Thread T-Bone at parisc-linux dot org


--- Comment #4 from T-Bone at parisc-linux dot org  2009-10-05 13:03 ---
Here's additional input for this bug, focusing on the ffmpeg commit which first
triggered this error (r18553):

$ gcc-4.4 -v
Using built-in specs.
Target: ia64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Debian 4.4.1-4'
--with-bugurl=file:///usr/share/doc/gcc-4.4/README.Bugs
--enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared
--enable-multiarch --enable-linker-build-id --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --enable-threads=posix
--with-gxx-include-dir=/usr/include/c++/4.4 --program-suffix=-4.4 --enable-nls
--enable-clocale=gnu --enable-libstdcxx-debug --disable-libssp --enable-mpfr
--enable-objc-gc --with-system-libunwind --enable-checking=release
--build=ia64-linux-gnu --host=ia64-linux-gnu --target=ia64-linux-gnu
Thread model: posix
gcc version 4.4.1 (Debian 4.4.1-4) 
$ uname -a
Linux tic 2.6.27.35 #1 SMP Wed Sep 30 19:42:26 CEST 2009 ia64 GNU/Linux
$ cat /proc/cpuinfo
processor  : 0
vendor : GenuineIntel
arch   : IA-64
family : 31
model  : 1
model name : Madison
revision   : 5
archrev: 0
features   : branchlong
cpu number : 0
cpu regs   : 4
cpu MHz: 1300.000
itc MHz: 1300.00
BogoMIPS   : 1946.41
siblings   : 1
physical id: 0
[...]

gcc-4.4 -save-temps -DHAVE_AV_CONFIG_H -I. -I"/home/varenet/ffmpeg"
-D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -std=c99 -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall
-Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls
-Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -O3
-fno-math-errno -fno-signed-zeros   -fPIC -DPIC -c -o libavcodec/msmpeg4.o
libavcodec/msmpeg4.c
[...]
gcc-4.4 -save-temps -shared -Wl,-soname,libavutil.so.50
-L"/home/varenet/ffmpeg"/libavcodec -L"/home/varenet/ffmpeg"/libavdevice
-L"/home/varenet/ffmpeg"/libavfilter -L"/home/varenet/ffmpeg"/libavformat
-L"/home/varenet/ffmpeg"/libavutil -L"/home/varenet/ffmpeg"/libpostproc
-L"/home/varenet/ffmpeg"/libswscale -Wl,--warn-common -Wl,--as-needed
-Wl,-rpath-link,"/home/varenet/ffmpeg"/libpostproc
-Wl,-rpath-link,"/home/varenet/ffmpeg"/libswscale
-Wl,-rpath-link,"/home/varenet/ffmpeg"/libavfilter
-Wl,-rpath-link,"/home/varenet/ffmpeg"/libavdevice
-Wl,-rpath-link,"/home/varenet/ffmpeg"/libavformat
-Wl,-rpath-link,"/home/varenet/ffmpeg"/libavcodec
-Wl,-rpath-link,"/home/varenet/ffmpeg"/libavutil -Wl,-Bsymbolic -o
libavutil/libavutil.so.50 libavutil/adler32.o libavutil/aes.o
libavutil/avstring.o libavutil/base64.o libavutil/crc.o libavutil/des.o
libavutil/fifo.o libavutil/intfloat_readwrite.o libavutil/lfg.o libavutil/lls.o
libavutil/log.o libavutil/lzo.o libavutil/mathematics.o libavutil/md5.o
libavutil/mem.o libavutil/random_seed.o libavutil/rational.o libavutil/rc4.o
libavutil/sha1.o libavutil/tree.o libavutil/utils.o  -lz -lbz2 -lm  -ldl 
cd ./libavutil/ && ln -sf libavutil.so.50 libavutil.so
gcc-4.4 -save-temps -shared -Wl,-soname,libavcodec.so.52
-L"/home/varenet/ffmpeg"/libavcodec -L"/home/varenet/ffmpeg"/libavdevice
-L"/home/varenet/ffmpeg"/libavfilter -L"/home/varenet/ffmpeg"/libavformat
-L"/home/varenet/ffmpeg"/libavutil -L"/home/varenet/ffmpeg"/libpostproc
-L"/home/varenet/ffmpeg"/libswscale -Wl,--warn-common -Wl,--as-needed
-Wl,-rpath-link,"/home/varenet/ffmpeg"/libpostproc
-Wl,-rpath-link,"/home/varenet/ffmpeg"/libswscale
-Wl,-rpath-link,"/home/varenet/ffmpeg"/libavfilter
-Wl,-rpath-link,"/home/varenet/ffmpeg"/libavdevice
-Wl,-rpath-link,"/home/varenet/ffmpeg"/libavformat
-Wl,-rpath-link,"/home/varenet/ffmpeg"/libavcodec
-Wl,-rpath-link,"/home/varenet/ffmpeg"/libavutil -Wl,-Bsymbolic -o
libavcodec/libavcodec.so.52 libavcodec/allcodecs.o libavcodec/audioconvert.o
libavcodec/avpacket.o libavcodec/bitstream.o libavcodec/bitstream_filter.o
libavcodec/dsputil.o libavcodec/eval.o libavcodec/faanidct.o
libavcodec/imgconvert.o libavcodec/jrevdct.o libavcodec/opt.o
libavcodec/options.o libavcodec/parser.o libavcodec/raw.o libavcodec/resample.o
libavcodec/resample2.o libavcodec/simple_idct.o libavcodec/utils.o
libavcodec/aandcttab.o libavcodec/faandct.o libavcodec/jfdctfst.o
libavcodec/jfdctint.o libavcodec/fft.o libavcodec/golomb.o libavcodec/mdct.o
libavcodec/rdft.o libavcodec/aac.o libavcodec/aactab.o libavcodec/mpeg4audio.o
libavcodec/aac_parser.o libavcodec/aac_ac3_parser.o libavcodec/aasc.o
libavcodec/msrledec.o libavcodec/ac3enc.o libavcodec/ac3tab.o libavcodec/ac3.o
libavcodec/alac.o libavcodec/alacenc.o libavcodec/lpc.o libavcodec/sp5xdec.o
libavcodec/mjpegdec.o libavcodec/mjpeg.o libavcodec/apedec.o libavcodec/asv

[Bug c/41567] Too small .bss stack

2009-10-05 Thread T-Bone at parisc-linux dot org


--- Comment #5 from T-Bone at parisc-linux dot org  2009-10-05 13:05 ---
Created an attachment (id=18709)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18709&action=view)
preprocessed msmpeg4


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41567



[Bug c/41567] Too small .bss stack

2009-10-30 Thread T-Bone at parisc-linux dot org


--- Comment #8 from T-Bone at parisc-linux dot org  2009-10-30 21:23 ---
Subject: Re:  Too small .bss stack

On Fri, Oct 30, 2009 at 9:15 PM, sje at cup dot hp dot com
 wrote:
>
>
> --- Comment #7 from sje at cup dot hp dot com  2009-10-30 20:15 ---
> I tried (and failed) to reproduce this using msmpeg4.i and compiling with:
>
> gcc -shared -pthread -std=c99 -fomit-frame-pointer -g -O3 -fno-math-errno
> -fno-signed-zeros -fPIC -fno-tree-vectorize msmpeg4.i -o x.so
>
> I tried ToT, 4.4 and 4.3 GCC compilers and was unable to reproduce the bug.
>
> I wonder if it only happens when linking in all the objects together.

I thought the report and log was clear enough on the fact that this is
indeed a problem that only arises during the final link. If not, then
now it is ;)

> I also wonder what linker you were using, I was using the latest 2.20 linker.

 ld --version
GNU ld (GNU Binutils for Debian) 2.20


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41567