[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sid toolchain broken?

Hash: SHA1

Michel Dänzer <daenzer@debian.org> writes:

> On Wed, 2005-07-06 at 21:44 +0100, Roger Leigh wrote:
>> Santiago Vila <sanvila@unex.es> writes:
>> > Roger Leigh wrote:
>> >> If I build a binary with gcc-4.0, it segfaults,
>> >
>> > I can't reproduce that. Using gcc-4.0_4.0.0-11 here.
>> I'm building schroot (0.1.2-1) from unstable.  With the toolchain
>> prior to the gcc-defaults update, it builds and runs fine.  After the
>> update, even "schroot --help" causes a segfault.
>> It fails during the option parsing, just a few lines in to main().
>> Building by hand, CC=gcc-3.3 works, but CC=gcc-4.0 segfaults.
> Could be a schroot bug which only triggers with gcc 4.0?

It's a definite possibility, but I've reviewed the code, and not found
anything "odd".  It's crashing so early, it's only run 7 lines in
main() and 3 in parse_options().  Compiling with nearly all GCC
warnings enabled doesn't show anything other than harmless shadowed
declarations and cast discarding type qualifiers.  I don't think
there's a problem with the source.

The actual error is in library code (g_option_context_parse()), which
hasn't yet been rebuilt with GCC4, so I don't think the problem lies
there, either.

- -- 
Roger Leigh
                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8 <http://mailcrypt.sourceforge.net/>


Reply to: