Bug#317233: gcc-4.0 regression, possibly powerpc-specific, causes segfault in compiled binary
Roger Leigh writes:
> Package: gcc-4.0
> Version: 4.0.0-11
> Severity: normal
>
> If I compile schroot
>
> http://ftp.debian.org/debian/pool/main/s/schroot/schroot_0.1.2-1.dsc
> http://ftp.debian.org/debian/pool/main/s/schroot/schroot_0.1.2.orig.tar.gz
> http://ftp.debian.org/debian/pool/main/s/schroot/schroot_0.1.2-1.diff.gz
>
> with gcc-3.3 and gcc-3.4, the resulting binary works. If I build with
> gcc-4.0, it segfaults. Try "schroot --help", for example.
>
> The problem only because apparent when the gcc-defaults changed to
> default to 4.0.
>
> I've tried compiling with nearly every gcc warning enabled, but I
> couldn't find anything other than trivial warnings. I've also reviewed
> the code, but can't see anything wrong. The code is fairly simple;
> I'm not using any GCC extensions, just plain C99 source.
>
> The fault occurs shortly after startup, calling parse_options()
> (schroot/schroot.c).
>
> If it would be useful, I can reduce it to a smaller test case, but the
> code worked just fine with 3.3.
yes, it would be useful. is this powerpc specific, or is seen on other
archs as well?
Matthias
Reply to: