Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Last active August 29, 2015 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save springmeyer/7a2ca3c80e40195c9032 to your computer and use it in GitHub Desktop.
Save springmeyer/7a2ca3c80e40195c9032 to your computer and use it in GitHub Desktop.
~/mapnik-packaging/node-mapnik$ valgrind --num-callers=40 node ./node_modules/.bin/_mocha test/vector-tile.test.js
==1320== Memcheck, a memory error detector
==1320== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==1320== Using Valgrind-3.10.0.SVN and LibVEX; rerun with -h for copyright info
==1320== Command: node ./node_modules/.bin/_mocha test/vector-tile.test.js
==1320==
==1320== Warning: set address range perms: large range [0x1566ba9c2000, 0x1566da9c2000) (noaccess)
0 passing (7s)
1 failing
1) mapnik.VectorTile should be able to resample and encode (render) a geotiff into vector tile:
Error: timeout of 2000ms exceeded
at null.<anonymous> (/home/ubuntu/mapnik-packaging/node-mapnik/node_modules/mocha/lib/runnable.js:165:14)
at Timer.listOnTimeout [as ontimeout] (timers.js:110:15)
==1320== Thread 3:
==1320== Jump to the invalid address stated on the next line
==1320== at 0xD6F7658: ???
==1320== by 0xD6EE3C7: ???
==1320== by 0xD66AA20: ???
==1320== by 0xC530948: TIFFReadRawStrip1 (tif_read.c:382)
==1320== by 0xC531047: TIFFFillStrip (tif_read.c:612)
==1320== by 0xC5307AD: TIFFReadEncodedStrip (tif_read.c:355)
==1320== by 0xD5E94BE: ???
==1320== by 0xD5E28FC: ???
==1320== by 0xD6A8A11: ???
==1320== by 0xD6C6D50: ???
==1320== by 0xD5E2566: ???
==1320== by 0xD6A750B: ???
==1320== by 0xD5C60A5: ???
==1320== by 0xD5C99B9: ???
==1320== by 0xD5D9800: ???
==1320== by 0xD5D8CCC: ???
==1320== by 0xD5D79A2: ???
==1320== by 0xD5D5B22: ???
==1320== by 0xD5D3344: ???
==1320== by 0xD5D0326: ???
==1320== by 0xD5CD9FF: ???
==1320== by 0xD5CB34E: ???
==1320== by 0xD5C4F20: ???
==1320== by 0x7BC79A2: mapnik::vector::processor<mapnik::vector::backend_pbf>::apply_to_layer(mapnik::layer const&, mapnik::projection const&, double, double, unsigned int, unsigned int, mapnik::box2d<double> const&, int) (in /home/ubuntu/mapnik-packaging/node-mapnik/lib/binding/mapnik.node)
==1320== by 0x7BC487D: mapnik::vector::processor<mapnik::vector::backend_pbf>::apply(double) (in /home/ubuntu/mapnik-packaging/node-mapnik/lib/binding/mapnik.node)
==1320== by 0x7BB9DDC: Map::EIO_RenderVectorTile(uv_work_s*) (in /home/ubuntu/mapnik-packaging/node-mapnik/lib/binding/mapnik.node)
==1320== by 0xC385D7: uv__queue_work (threadpool.c:228)
==1320== by 0xC37F79: worker (threadpool.c:74)
==1320== by 0xC29960: uv__thread_start (uv-common.c:322)
==1320== by 0x5C84181: start_thread (pthread_create.c:312)
==1320== by 0x5F9530C: clone (clone.S:111)
==1320== Address 0xd6f7658 is not stack'd, malloc'd or (recently) free'd
==1320==
==1320==
==1320== Process terminating with default action of signal 11 (SIGSEGV)
==1320== Access not within mapped region at address 0xD6F7658
==1320== at 0xD6F7658: ???
==1320== by 0xD6EE3C7: ???
==1320== by 0xD66AA20: ???
==1320== by 0xC530948: TIFFReadRawStrip1 (tif_read.c:382)
==1320== by 0xC531047: TIFFFillStrip (tif_read.c:612)
==1320== by 0xC5307AD: TIFFReadEncodedStrip (tif_read.c:355)
==1320== by 0xD5E94BE: ???
==1320== by 0xD5E28FC: ???
==1320== by 0xD6A8A11: ???
==1320== by 0xD6C6D50: ???
==1320== by 0xD5E2566: ???
==1320== by 0xD6A750B: ???
==1320== by 0xD5C60A5: ???
==1320== by 0xD5C99B9: ???
==1320== by 0xD5D9800: ???
==1320== by 0xD5D8CCC: ???
==1320== by 0xD5D79A2: ???
==1320== by 0xD5D5B22: ???
==1320== by 0xD5D3344: ???
==1320== by 0xD5D0326: ???
==1320== by 0xD5CD9FF: ???
==1320== by 0xD5CB34E: ???
==1320== by 0xD5C4F20: ???
==1320== by 0x7BC79A2: mapnik::vector::processor<mapnik::vector::backend_pbf>::apply_to_layer(mapnik::layer const&, mapnik::projection const&, double, double, unsigned int, unsigned int, mapnik::box2d<double> const&, int) (in /home/ubuntu/mapnik-packaging/node-mapnik/lib/binding/mapnik.node)
==1320== by 0x7BC487D: mapnik::vector::processor<mapnik::vector::backend_pbf>::apply(double) (in /home/ubuntu/mapnik-packaging/node-mapnik/lib/binding/mapnik.node)
==1320== by 0x7BB9DDC: Map::EIO_RenderVectorTile(uv_work_s*) (in /home/ubuntu/mapnik-packaging/node-mapnik/lib/binding/mapnik.node)
==1320== by 0xC385D7: uv__queue_work (threadpool.c:228)
==1320== by 0xC37F79: worker (threadpool.c:74)
==1320== by 0xC29960: uv__thread_start (uv-common.c:322)
==1320== by 0x5C84181: start_thread (pthread_create.c:312)
==1320== by 0x5F9530C: clone (clone.S:111)
==1320== If you believe this happened as a result of a stack
==1320== overflow in your program's main thread (unlikely but
==1320== possible), you can try to increase the size of the
==1320== main thread stack using the --main-stacksize= flag.
==1320== The main thread stack size used in this run was 8388608.
==1320==
==1320== HEAP SUMMARY:
==1320== in use at exit: 1,514,432 bytes in 1,065 blocks
==1320== total heap usage: 12,226 allocs, 11,161 frees, 29,643,470 bytes allocated
==1320==
==1320== LEAK SUMMARY:
==1320== definitely lost: 352 bytes in 6 blocks
==1320== indirectly lost: 31,800 bytes in 484 blocks
==1320== possibly lost: 7,240 bytes in 53 blocks
==1320== still reachable: 1,475,040 bytes in 522 blocks
==1320== suppressed: 0 bytes in 0 blocks
==1320== Rerun with --leak-check=full to see details of leaked memory
==1320==
==1320== For counts of detected and suppressed errors, rerun with: -v
==1320== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Killed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment