-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Double free when built against Mapnik 3.x #281
Comments
|
Build in debug node (node-mapnik):
|
in release mode I can trigger just by doing: $ ./node_modules/.bin/_mocha test/feature.test.js
․․Segmentation fault (core dumped)
|
hmm, starting to this is may be the same as #216 and if so I'll need to take a look at naturalatlas/node-gdal#15 for ideas to solve. |
Working to reduce a testcase is proving hard. Appears that I'm just pushing crashes around. Crashes occur in different places depend on whether build in release or debug. Backtraces are all pretty unhelpful. I'm starting to suspect memory corruption is causing various false leads. Current hunch is that the Nan merge may be related so I'm working on created a branch that works against Mapnik 3.x that does not have the nan/node v0.11.x changes. |
still crashes with branch made from |
okay, got it! Crashes vanish in pre-nan branch and master with this patch: diff --git a/src/mapnik_memory_datasource.cpp b/src/mapnik_memory_datasource.cpp
index 1d4923d..4d8ba07 100644
--- a/src/mapnik_memory_datasource.cpp
+++ b/src/mapnik_memory_datasource.cpp
@@ -90,6 +90,7 @@ NAN_METHOD(MemoryDatasource::New)
params[TOSTR(name)] = TOSTR(value);
i++;
}
+ params["type"] = "memory";
//memory_datasource cache;
MemoryDatasource* d = new MemoryDatasource(); This seems to indicate |
all travis tests are now passing as well: https://travis-ci.org/mapnik/node-mapnik/builds/28453430 |
Happens every 3rd or so time when running
make test
and built against Mapnik master 3.x.The text was updated successfully, but these errors were encountered: