Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Attempt to free released memory — iosbench filter #5423

Closed
1ec5 opened this issue Jun 21, 2016 · 2 comments
Closed

Attempt to free released memory — iosbench filter #5423

1ec5 opened this issue Jun 21, 2016 · 2 comments
Labels
bug iOS Mapbox Maps SDK for iOS

Comments

@1ec5
Copy link
Contributor

1ec5 commented Jun 21, 2016

The iosbench application triggers the following static analyzer warning:

/path/to/mapbox-gl-native/benchmark/parse/filter.cpp
/path/to/mapbox-gl-native/benchmark/parse/filter.cpp:19:34: Attempt to free released memory (within a call to '~GenericDocument')
/path/to/mapbox-gl-native/benchmark/parse/filter.cpp:23:12: Entering loop body
/path/to/mapbox-gl-native/benchmark/parse/filter.cpp:24:9: Calling 'parse'
/path/to/mapbox-gl-native/benchmark/parse/filter.cpp:16:1: Entered call from 'Parse_Filter'
/path/to/mapbox-gl-native/benchmark/parse/filter.cpp:19:34: Calling '~GenericDocument'
/path/to/mapbox-gl-native/mason_packages/headers/rapidjson/1.0.2/include/rapidjson/document.h:1753:5: Entered call from 'parse'
/path/to/mapbox-gl-native/mason_packages/headers/rapidjson/1.0.2/include/rapidjson/document.h:1754:9: Calling 'GenericDocument::Destroy'
/path/to/mapbox-gl-native/mason_packages/headers/rapidjson/1.0.2/include/rapidjson/document.h:1966:5: Entered call from '~GenericDocument'
/path/to/mapbox-gl-native/mason_packages/headers/rapidjson/1.0.2/include/rapidjson/document.h:1967:9: Memory is released
/path/to/mapbox-gl-native/mason_packages/headers/rapidjson/1.0.2/include/rapidjson/document.h:1754:9: Returning; memory was released
/path/to/mapbox-gl-native/benchmark/parse/filter.cpp:19:34: Returning from '~GenericDocument'
/path/to/mapbox-gl-native/benchmark/parse/filter.cpp:24:9: Returning; memory was released
/path/to/mapbox-gl-native/benchmark/parse/filter.cpp:23:5: Looping back to the head of the loop
/path/to/mapbox-gl-native/benchmark/parse/filter.cpp:23:12: Entering loop body
/path/to/mapbox-gl-native/benchmark/parse/filter.cpp:24:9: Calling 'parse'
/path/to/mapbox-gl-native/benchmark/parse/filter.cpp:16:1: Entered call from 'Parse_Filter'
/path/to/mapbox-gl-native/benchmark/parse/filter.cpp:19:34: Calling '~GenericDocument'
/path/to/mapbox-gl-native/mason_packages/headers/rapidjson/1.0.2/include/rapidjson/document.h:1753:5: Entered call from 'parse'
/path/to/mapbox-gl-native/mason_packages/headers/rapidjson/1.0.2/include/rapidjson/document.h:1754:9: Calling 'GenericDocument::Destroy'
/path/to/mapbox-gl-native/mason_packages/headers/rapidjson/1.0.2/include/rapidjson/document.h:1966:5: Entered call from '~GenericDocument'
/path/to/mapbox-gl-native/mason_packages/headers/rapidjson/1.0.2/include/rapidjson/document.h:1967:9: Attempt to free released memory

/cc @kkaefer

@1ec5 1ec5 added bug iOS Mapbox Maps SDK for iOS labels Jun 21, 2016
@lilykaiser
Copy link

Closing due to ticket age. If this is still a problem, please re-open

@1ec5
Copy link
Contributor Author

1ec5 commented Nov 18, 2017

As of #4641, iosbench is a run-of-the-tile-mill Cocoa Touch application that no longer pulls in Mason packages directly. There do remain a lot of static analyzer warnings in core, however: #7669 #7668.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

No branches or pull requests

2 participants