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.
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_deserialis e_ptrace is enough to get the code working again:
void test_deserialis e_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.