Created
February 17, 2012 00:57
-
-
Save springmeyer/1849390 to your computer and use it in GitHub Desktop.
mem issues with freetype/postgres/mapnik hextree
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root@wiretap:~/exports# valgrind node /usr/share/tilemill/index.js export --config=/etc/tilemill/tilemill.config --bbox=90,-85.0511,180,85.0511 --skipblank=1 --resume=1 --minzoom=8 --maxzoom=12 mapbox-base features-d-12.bigtiles | |
==29957== Memcheck, a memory error detector | |
==29957== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al. | |
==29957== Using Valgrind-3.6.1-Debian and LibVEX; rerun with -h for copyright info | |
==29957== Command: node /usr/share/tilemill/index.js export --config=/etc/tilemill/tilemill.config --bbox=90,-85.0511,180,85.0511 --skipblank=1 --resume=1 --minzoom=8 --maxzoom=12 mapbox-base features-d-12.bigtiles | |
==29957== | |
==29957== Warning: set address range perms: large range [0xadb3000, 0x2adb3000) (noaccess) | |
==29957== Invalid read of size 8 | |
==29957== at 0x2DF0CAE5: mapnik::freetype_engine::register_font(std::string const&) (font_engine_freetype.cpp:87) | |
==29957== by 0x2DF0CE53: mapnik::freetype_engine::register_fonts(std::string const&, bool) (font_engine_freetype.cpp:140) | |
==29957== by 0x2BBB319C: node_mapnik::register_fonts(v8::Arguments const&) (mapnik_fonts.hpp:60) | |
==29957== by 0x56C6F1: ??? (in /usr/bin/nodejs) | |
==29957== by 0xADB4249: ??? | |
==29957== by 0xAE8502D: ??? | |
==29957== by 0xADC6EDB: ??? | |
==29957== by 0xAE50BDD: ??? | |
==29957== by 0xAE50CC5: ??? | |
==29957== by 0xAE4F1DD: ??? | |
==29957== by 0xAE4E971: ??? | |
==29957== by 0xADB5229: ??? | |
==29957== Address 0x2b852ba0 is 0 bytes inside a block of size 1,384 free'd | |
==29957== at 0x4C282E0: free (vg_replace_malloc.c:366) | |
==29957== by 0x2E77409C: FT_Done_Face (in /usr/lib/x86_64-linux-gnu/libfreetype.so.6.6.2) | |
==29957== by 0x2DF0C9FC: mapnik::freetype_engine::register_font(std::string const&) (font_engine_freetype.cpp:100) | |
==29957== by 0x2DF0CE53: mapnik::freetype_engine::register_fonts(std::string const&, bool) (font_engine_freetype.cpp:140) | |
==29957== by 0x2BBB319C: node_mapnik::register_fonts(v8::Arguments const&) (mapnik_fonts.hpp:60) | |
==29957== by 0x56C6F1: ??? (in /usr/bin/nodejs) | |
==29957== by 0xADB4249: ??? | |
==29957== by 0xAE8502D: ??? | |
==29957== by 0xADC6EDB: ??? | |
==29957== by 0xAE50BDD: ??? | |
==29957== by 0xAE50CC5: ??? | |
==29957== by 0xAE4F1DD: ??? | |
==29957== | |
==29957== Invalid read of size 8 | |
==29957== at 0x2DF0CAE5: mapnik::freetype_engine::register_font(std::string const&) (font_engine_freetype.cpp:87) | |
==29957== by 0x2DF0CE53: mapnik::freetype_engine::register_fonts(std::string const&, bool) (font_engine_freetype.cpp:140) | |
==29957== by 0x2DF0CE1B: mapnik::freetype_engine::register_fonts(std::string const&, bool) (font_engine_freetype.cpp:132) | |
==29957== by 0x2BBB30B5: node_mapnik::register_fonts(v8::Arguments const&) (mapnik_fonts.hpp:54) | |
==29957== by 0x56C6F1: ??? (in /usr/bin/nodejs) | |
==29957== by 0xADB4249: ??? | |
==29957== by 0xAE848B0: ??? | |
==29957== by 0xADB5229: ??? | |
==29957== by 0xAE61CA4: ??? | |
==29957== by 0xADB5229: ??? | |
==29957== by 0xAE84D6F: ??? | |
==29957== by 0xAE85126: ??? | |
==29957== Address 0x2b9c0460 is 0 bytes inside a block of size 1,384 free'd | |
==29957== at 0x4C282E0: free (vg_replace_malloc.c:366) | |
==29957== by 0x2E77409C: FT_Done_Face (in /usr/lib/x86_64-linux-gnu/libfreetype.so.6.6.2) | |
==29957== by 0x2DF0C9FC: mapnik::freetype_engine::register_font(std::string const&) (font_engine_freetype.cpp:100) | |
==29957== by 0x2DF0CE53: mapnik::freetype_engine::register_fonts(std::string const&, bool) (font_engine_freetype.cpp:140) | |
==29957== by 0x2DF0CE1B: mapnik::freetype_engine::register_fonts(std::string const&, bool) (font_engine_freetype.cpp:132) | |
==29957== by 0x2BBB30B5: node_mapnik::register_fonts(v8::Arguments const&) (mapnik_fonts.hpp:54) | |
==29957== by 0x56C6F1: ??? (in /usr/bin/nodejs) | |
==29957== by 0xADB4249: ??? | |
==29957== by 0xAE848B0: ??? | |
==29957== by 0xADB5229: ??? | |
==29957== by 0xAE61CA4: ??? | |
==29957== by 0xADB5229: ??? | |
==29957== | |
==29957== Conditional jump or move depends on uninitialised value(s) | |
==29957== at 0x67A5510: inflateReset2 (in /lib/x86_64-linux-gnu/libz.so.1.2.3.4) | |
==29957== by 0x67A5605: inflateInit2_ (in /lib/x86_64-linux-gnu/libz.so.1.2.3.4) | |
==29957== by 0x3560250B: init (node-zlib.cc:91) | |
==29957== by 0x50C802: node::DLOpen(v8::Arguments const&) (in /usr/bin/nodejs) | |
==29957== by 0x56C6F1: ??? (in /usr/bin/nodejs) | |
==29957== by 0xADB4249: ??? | |
==29957== by 0xAE50D6C: ??? | |
==29957== by 0xAE4F1DD: ??? | |
==29957== by 0xAE4E971: ??? | |
==29957== by 0xADB5229: ??? | |
==29957== by 0xAE4F297: ??? | |
==29957== by 0xAEC834E: ??? | |
==29957== | |
Note: Unknown option "server" in config file. | |
r | |
==29957== Thread 3: | |
==29957== Invalid read of size 8 | |
==29957== at 0x2DF0CAE5: mapnik::freetype_engine::register_font(std::string const&) (font_engine_freetype.cpp:87) | |
==29957== by 0x2DF0CE53: mapnik::freetype_engine::register_fonts(std::string const&, bool) (font_engine_freetype.cpp:140) | |
==29957== by 0x2DD66D3C: mapnik::map_parser::parse_map(mapnik::Map&, boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> > const&, std::string const&) (load_map.cpp:274) | |
==29957== by 0x2DD66129: mapnik::load_map_string(mapnik::Map&, std::string const&, bool, std::string const&) (load_map.cpp:176) | |
==29957== by 0x2BBBF8B4: Map::EIO_FromString(eio_req*) (mapnik_map.cpp:861) | |
==29957== by 0x538AAF: ??? (in /usr/bin/nodejs) | |
==29957== by 0x61E6EFB: start_thread (pthread_create.c:304) | |
==29957== by 0x64DD89C: clone (clone.S:112) | |
==29957== Address 0x3d5c17f0 is 0 bytes inside a block of size 1,384 free'd | |
==29957== at 0x4C282E0: free (vg_replace_malloc.c:366) | |
==29957== by 0x2E77409C: FT_Done_Face (in /usr/lib/x86_64-linux-gnu/libfreetype.so.6.6.2) | |
==29957== by 0x2DF0C9FC: mapnik::freetype_engine::register_font(std::string const&) (font_engine_freetype.cpp:100) | |
==29957== by 0x2DF0CE53: mapnik::freetype_engine::register_fonts(std::string const&, bool) (font_engine_freetype.cpp:140) | |
==29957== by 0x2DD66D3C: mapnik::map_parser::parse_map(mapnik::Map&, boost::property_tree::basic_ptree<std::string, std::string, std::less<std::string> > const&, std::string const&) (load_map.cpp:274) | |
==29957== by 0x2DD66129: mapnik::load_map_string(mapnik::Map&, std::string const&, bool, std::string const&) (load_map.cpp:176) | |
==29957== by 0x2BBBF8B4: Map::EIO_FromString(eio_req*) (mapnik_map.cpp:861) | |
==29957== by 0x538AAF: ??? (in /usr/bin/nodejs) | |
==29957== by 0x61E6EFB: start_thread (pthread_create.c:304) | |
==29957== by 0x64DD89C: clone (clone.S:112) | |
==29957== | |
Error: Postgis Plugin: PSQL error: | |
ERROR: out of memory | |
DETAIL: Failed on request of size 16. | |
Full sql was: 'SELECT * FROM ( SELECT geometry, type, render, class AS stylegroup, 1 AS tunnel, 0 AS bridge | |
FROM ( | |
SELECT geometry, type, layer, class, '1_outline' AS render FROM osm_roads WHERE tunnel = 1 | |
UNION ALL | |
SELECT geometry, type, layer, class, '2_line' AS render FROM osm_roads WHERE tunnel = 1 | |
UNION ALL | |
SELECT geometry, type, layer, class, '3_inline' AS render FROM osm_roads WHERE tunnel = 1 | |
UNION ALL | |
SELECT geometry, type, layer, CASE | |
WHEN type IN ('path', 'bridleway', 'cycleway', 'footway', 'pedestrian', 'steps') THEN 'noauto' | |
WHEN type IN ('service', 'track') THEN 'service' | |
ELSE 'other' | |
END AS class, '1_outline' AS render | |
FROM osm_otherroads WHERE tunnel = 1 | |
UNION ALL | |
SELECT geometry, type, layer, CASE | |
WHEN type IN ('path', 'bridleway', 'cycleway', 'footway', 'pedestrian', 'steps') THEN 'noauto' | |
WHEN type IN ('service', 'track') THEN 'service' | |
ELSE 'other' | |
END AS class, '2_line' AS render | |
FROM osm_otherroads WHERE tunnel = 1 | |
UNION ALL | |
SELECT geometry, type, layer, CASE | |
WHEN type IN ('path', 'bridleway', 'cycleway', 'footway', 'pedestrian', 'steps') THEN 'noauto' | |
WHEN type IN ('service', 'track') THEN 'service' | |
ELSE 'other' | |
END AS class, '3_inline' AS render | |
FROM osm_otherroads WHERE tunnel = 1 | |
) as bridges | |
ORDER BY layer ASC, render ASC | |
) AS data LIMIT 0' | |
(encountered during parsing of layer 'tunnel' in map '/usr/share/mapbox/project/mapbox-base/') | |
==29957== | |
==29957== HEAP SUMMARY: | |
==29957== in use at exit: 4,527,570 bytes in 33,897 blocks | |
==29957== total heap usage: 5,278,813 allocs, 5,244,916 frees, 767,201,579 bytes allocated | |
==29957== | |
==29957== LEAK SUMMARY: | |
==29957== definitely lost: 619 bytes in 9 blocks | |
==29957== indirectly lost: 3,244,962 bytes in 30,514 blocks | |
==29957== possibly lost: 11,356 bytes in 115 blocks | |
==29957== still reachable: 1,270,633 bytes in 3,259 blocks | |
==29957== suppressed: 0 bytes in 0 blocks | |
==29957== Rerun with --leak-check=full to see details of leaked memory | |
==29957== | |
==29957== For counts of detected and suppressed errors, rerun with: -v | |
==29957== Use --track-origins=yes to see where uninitialised values come from | |
==29957== ERROR SUMMARY: 61 errors from 4 contexts (suppressed: 17 from 7) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment