Bug 91443 - fts++ tests crash with GCC 5.1
Summary: fts++ tests crash with GCC 5.1
Status: RESOLVED FIXED
Alias: None
Product: Zeitgeist
Classification: Unclassified
Component: Extensions (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: zeitgeist-bugs@lists.freedesktop.org
QA Contact: zeitgeist-bugs@lists.freedesktop.org
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-24 04:18 UTC by Robert Ancell
Modified: 2015-08-03 08:21 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Fix tests crashing with GCC 5.1 (8.31 KB, patch)
2015-07-24 04:19 UTC, Robert Ancell
Details | Splinter Review

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.