Bug 91443

Summary: fts++ tests crash with GCC 5.1
Product: Zeitgeist Reporter: Robert Ancell <robert.ancell>
Component: ExtensionsAssignee: zeitgeist-bugs <zeitgeist-bugs>
Status: RESOLVED FIXED QA Contact: zeitgeist-bugs <zeitgeist-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Fix tests crashing with GCC 5.1

Description Robert Ancell 2015-07-24 04:18:11 UTC
The tests were using a c_str() result from a std::string that had gone out of
scope. GCC 5.1 seems to be more agressive in freeing the string data before
the tests checked against it.
Comment 1 Robert Ancell 2015-07-24 04:19:03 UTC
Created attachment 117327 [details] [review]
Fix tests crashing with GCC 5.1
Comment 2 Rico Tzschichholz 2015-08-03 08:21:47 UTC
commit f9d2b4a70b8fd11a5c1d399ce8f4d50ea60e7fbc
Author: Robert Ancell <robert.ancell@canonical.com>
Date:   Fri Jul 24 16:14:11 2015 +1200

    Fix tests crashing with GCC 5.1
    
    The tests were using a c_str() result from a std::string that had gone out of
    scope. GCC 5.1 seems to be more agressive in freeing the string data before
    the tests checked against it.
    
    https://bugs.freedesktop.org/show_bug.cgi?id=91443

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.