Skip to content

Instantly share code, notes, and snippets.

View springmeyer's full-sized avatar

Dane Springmeyer springmeyer

View GitHub Profile
#0 0x00007fff8a07082a in __kill ()
#1 0x00007fff88f5da9c in abort ()
#2 0x00007fff88f905de in __assert_rtn ()
#3 0x000000010000e80a in boost::optional<std::string>::get (this=0x7fff5fbfd9c8) at optional.hpp:630
#4 0x000000010000e79d in boost::get<std::string> (opt=@0x7fff5fbfd9c8) at optional.hpp:681
#5 0x00000001000da72d in boost::spirit::karma::transform_attribute<boost::optional<std::string> const, std::string, void>::pre (val=@0x7fff5fbfd9c8) at attributes.hpp:35
#6 0x00000001000da6dd in boost::spirit::traits::pre_transform<boost::spirit::karma::domain, std::string, boost::optional<std::string> > (attr=@0x7fff5fbfd9c8) at attributes.hpp:914
#7 0x00000001000da5a3 in boost::spirit::karma::rule<std::back_insert_iterator<std::string>, std::string ()(), boost::spirit::unused_type, boost::spirit::unused_type, boost::spirit::unused_type>::generate<boost::spirit::context<boost::fusion::cons<cssgen::map_data const&, boost::fusion::nil>, boost::fusion::vector0<void> >, boost::spirit::unused_type, boost::opt
info it worked if it ends with ok
verbose cli [ 'node', '/usr/local/bin/npm', 'publish' ]
info using npm@1.0.106
info using node@v0.4.12
verbose config file /Users/dane/.npmrc
verbose config file /usr/local/etc/npmrc
verbose config file /usr/local/lib/node_modules/npm/npmrc
verbose publish [ '.' ]
verbose has wscript [ undefined,
verbose has wscript { file: '/Users/dane/tmp/node-eio/package.json',
~/test_sqlite$ node -v
v0.6.11
~/test_sqlite$ npm install -g node-gyp
npm http GET https://registry.npmjs.org/node-gyp
npm http 304 https://registry.npmjs.org/node-gyp
npm http GET https://registry.npmjs.org/ansi
npm http GET https://registry.npmjs.org/fstream
npm http GET https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/nopt
npm http GET https://registry.npmjs.org/which
@springmeyer
springmeyer / valgrind-out.txt
Created March 3, 2012 01:21
big tilemill valgrind run
^C==28809==
==28809== HEAP SUMMARY:
==28809== in use at exit: 5,977,089,570 bytes in 3,258,633 blocks
==28809== total heap usage: 205,400,889 allocs, 202,142,256 frees, 30,567,071,238 bytes allocated
==28809==
==28809== 16 bytes in 1 blocks are possibly lost in loss record 98 of 1,300
==28809== at 0x4C28F9F: malloc (vg_replace_malloc.c:236)
==28809== by 0x3AD873BE: sqlite3MemMalloc (in /usr/share/tilemill/node_modules/sqlite3/lib/sqlite3_bindings.node)
==28809== by 0x3AD6366C: mallocWithAlarm (in /usr/share/tilemill/node_modules/sqlite3/lib/sqlite3_bindings.node)
==28809== by 0x3AD813D7: sqlite3_malloc (in /usr/share/tilemill/node_modules/sqlite3/lib/sqlite3_bindings.node)
@springmeyer
springmeyer / mem.diff
Created March 2, 2012 23:43
patch to work kinda around mem issues
diff -u src/tilemill/node_modules/tilelive-mapnik/lib//mapnik.js /usr/share/tilemill/node_modules/tilelive-mapnik/lib//mapnik.js
--- src/tilemill/node_modules/tilelive-mapnik/lib//mapnik.js 2012-03-02 12:40:05.000000000 -0500
+++ /usr/share/tilemill/node_modules/tilelive-mapnik/lib//mapnik.js 2012-03-01 21:56:50.000000000 -0500
@@ -8,7 +8,7 @@
var Pool = require('generic-pool').Pool;
var LockingCache = require('./lockingcache');
var sm = new (require('sphericalmercator'));
-
+var os = require('os');
var cache = {};
This file has been truncated, but you can view the full file.
Building Mapnik on NT ...
dependencies dir: c:\dev2
lib_dir_schema=lib
Python is not configured
Mapnik.Python library won't be built
...patience...
...patience...
...patience...
...patience...
...found 29028 targets...
@springmeyer
springmeyer / hextree-testing.diff
Created February 22, 2012 19:22
various asserts to test of hextree conditions
diff --git a/SConstruct b/SConstruct
index 28d3cb9..78b38b9 100644
--- a/SConstruct
+++ b/SConstruct
@@ -1412,7 +1412,7 @@ if not preconfigured:
# Common debugging flags.
debug_flags = '-g -DDEBUG -DMAPNIK_DEBUG'
- ndebug_flags = '-DNDEBUG'
+ ndebug_flags = '-g3 -ggdb -DDEBUG'
0: (0/1182/3052702.96706) (239 235 231 98)
7: (0/836/344415.66565) (247 244 241 63)
7: (0/343/44451.46231) (248 245 242 31)
6: (0/49/180.26543) (232 224 216 16)
1: (+27/27/7.74042) (232 224 216 11)
5: (0/4/0.00800) (232 224 216 6)
8: (0/4/0.00400) (232 224 216 6)
13: (0/23/4.07688) (232 224 216 12)
0: (0/7/0.00700) (232 224 216 9)
8: (0/16/0.01600) (232 224 216 13)
@springmeyer
springmeyer / hex-crash.cpp
Created February 22, 2012 17:35
c++ hextree crash testcase
/*
Testcase demonstrating https://github.com/mapnik/mapnik/issues/1087
To replicate, on Ubuntu Oneiric compile mapnik master **before**:
https://github.com/mapnik/mapnik/commit/5dee576df26b4aeafd182c41b510c4aa67b14b29
Then do:
var mapnik = require('mapnik');
var fs = require('fs');
var format = 'png8:m=h:g=1.0:s=rle'
//var stylesheet = '/tmp/map.xml'
var stylesheet = './hextree-testcase/map.xml'
var m = new mapnik.Map(512,512);
m.loadSync(stylesheet);
// http://localhost:20008/tile/map/4/9/7.png