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

Bug#678496: powerpc: gcc-4.6 miscompiles egg/egg-secure-memory.c with optimization



Source: gcr
Version: 3.4.1-3
Severity: important

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


As you can see in the build logs linked from
https://buildd.debian.org/status/logs.php?pkg=gcr&arch=powerpc , some tests
fail on powerpc. I tracked this down to a crash caused by gcc-4.6
miscompiling egg/egg-secure-memory.c with -O2 or -O1. It doesn't happen if
only that file is compiled with -O0 or no -O stanza.

The same crash occurs in my GNOME session's gnome-keyring-daemon, making the
keyring non-functional.

Unfortunately, I wasn't able to further isolate a specific -f... option
causing the problem. However, the problem doesn't occur when compiling with
gcc-4.7, even with -O2. So, I suggest a temporary workaround in gcr, either:

* Build egg/egg-secure-memory.c without optimization on powerpc if the gcc
  version is 4.6. Note that this file is compiled twice, once for the
  egg/libegg_la-egg-secure-memory.lo target and once for
  egg/egg-secure-memory.lo.
* Force building with gcc-4.7 on powerpc.


- -- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (102, 'experimental')
Architecture: powerpc (ppc)

Kernel: Linux 3.4.3+
Locale: LANG=de_CH.UTF-8, LC_CTYPE=de_CH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iD8DBQFP5CU7WoGvjmrbsgARAnD2AKCkJrcUjnQcjII0u0pe3DriwK74agCgi1R5
R655RpHpksxzjHccuSKXITQ=
=bAS2
-----END PGP SIGNATURE-----



Reply to: