Comment 3 for bug 1123588

Revision history for this message
Matthias Klose (doko) wrote : Re: [4.7 Regression] wrong code with the fix for PR53844

attaching a reduced test_job.[ci], and the object files to build the executable. Seen when upstart is built with -O[s123], works with -O0.

forcing no optimization just on test_deserialise_ptrace is enough to get the code working again:

  void test_deserialise_ptrace (void) __attribute__ ((optimize ("O0")));

if you debug the issue, make sure to unpack (or install) the cpp-4.7 and gcc-4.7 packages in version 4.7.2-21ubuntu1.

Checking -O0 + -f options enabled in -O1, I couldn't identify an option which triggers the issue.