This file contains 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
ulimit -c unlimited; ./node --abort-on-uncaught-exception -e 'throw "Goodbye Cruel World"' | |
Uncaught Goodbye Cruel World | |
FROM | |
[eval]:1:1 | |
Object.<anonymous> ([eval]-wrapper:6:22) | |
Module._compile (module.js:456:26) | |
evalScript (node.js:532:25) | |
startup (node.js:80:7) | |
node.js:901:3 |
This file contains 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
mdb: core file data for mapping at 8042000 not saved: Interrupted system call | |
mdb: core file data for mapping at 8050000 not saved: Interrupted system call | |
mdb: core file data for mapping at 80bf000 not saved: Interrupted system call | |
mdb: core file data for mapping at 80c1000 not saved: Interrupted system call | |
mdb: core file data for mapping at fe96d000 not saved: Interrupted system call | |
mdb: core file data for mapping at fe9d0000 not saved: Interrupted system call | |
mdb: core file data for mapping at fe9e2000 not saved: Interrupted system call | |
mdb: core file data for mapping at feaf0000 not saved: Interrupted system call | |
mdb: core file data for mapping at feb72000 not saved: Interrupted system call | |
mdb: core file data for mapping at feb74000 not saved: Interrupted system call |
This file contains 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
/310: lwp_park(0x00000000, 0) = 0 | |
/312: lwp_mutex_wakeup(0xFE0BC080, 0) = 0 | |
/1211: lwp_mutex_wakeup(0xFE0BC080, 0) = 0 | |
/1209: lwp_mutex_timedlock(0xFE0BC080, 0x00000000, 0xB27E5A40) = 0 | |
/1208: lwp_unpark(310) = 0 | |
/310: lwp_mutex_timedlock(0xFE0BC080, 0x00000000, 0xB4CD8240) = 0 | |
^C/310: lwp_mutex_wakeup(0xFE0BC080, 0) = 0 | |
/1208: lwp_mutex_wakeup(0xFE0BC080, 0) = 0 | |
/1211: lwp_mutex_timedlock(0xFE0BC080, 0x00000000, 0xB27E7A40) = 0 |
This file contains 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
> a = '..\..\..\deps\npm\\node_modules\node-gyp\node_modules\request\node_modules\form-data\node_modules\combined-stream\node_modules\delayed-stream\test\integration\test-delayed-stream-pause.js' | |
'......deps\npm\\node_modules\node-gyp\node_modules\request\node_modules\form-data\node_modulescombined-stream\node_modulesdelayed-stream\testintegration\test-delayed-stream-pause.js' |
This file contains 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
sudo dtrace -l -p 8813 | grep node | |
64484 node78004 node _ZN4nodeL14dtrace_gc_doneEN2v86GCTypeENS0_15GCCallbackFlagsE gc-done | |
64490 node8813 node _ZN4node26DTRACE_HTTP_SERVER_REQUESTERKN2v89ArgumentsE http-server-request | |
64491 node8813 node _ZN4node27DTRACE_HTTP_SERVER_RESPONSEERKN2v89ArgumentsE http-server-response | |
64492 node8813 node _ZN4node28DTRACE_NET_SERVER_CONNECTIONERKN2v89ArgumentsE net-server-connection | |
70860 node93493 node _ZN4nodeL14dtrace_gc_doneEN2v86GCTypeENS0_15GCCallbackFlagsE gc-done | |
70866 node93493 node _ZN4nodeL15dtrace_gc_startEN2v86GCTypeENS0_15GCCallbackFlagsE gc-start | |
70877 node8813 node _ZN4node22DTRACE_NET_SOCKET_READERKN2v89ArgumentsE net-socket-read | |
70878 node8813 node _ZN4node23DTRACE_NET_SOCKET_WRITEERKN2v89ArgumentsE net-socket-write | |
70879 node8813 node _ZN4node21DTRACE_NET_STREAM_ENDERKN2v89ArgumentsE net-stream-end |
This file contains 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
localhost:~ tjfontaine$ clang -O1 -mllvm -debug-pass=Arguments t.c | |
t.c:4:13: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' | |
void *f = malloc(0); | |
^ | |
t.c:4:13: note: please include the header <stdlib.h> or explicitly provide a declaration for 'malloc' | |
t.c:5:3: warning: implicit declaration of function 'free' is invalid in C99 [-Wimplicit-function-declaration] | |
free(f); | |
^ | |
Pass Arguments: -targetdata -targetlibinfo -no-aa -tbaa -basicaa -simplifycfg -domtree -scalarrepl -early-cse -lower-expect | |
Pass Arguments: -targetdata -targetlibinfo -no-aa -tbaa -basicaa -globalopt -ipsccp -deadargelim -instcombine -simplifycfg -basiccg -prune-eh -always-inline -functionattrs -scalarrepl-ssa -domtree -early-cse -simplify-libcalls -lazy-value-info -jump-threading -correlated-propagation -simplifycfg -instcombine -tailcallelim -simplifycfg -reassociate -domtree -loops -loop-simplify -lcssa -loop-rotate -licm -lcssa -loop-unswitch -instcombine -scalar-evolution -loop-s |
This file contains 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
#include <stdio.h> | |
static char foo[] = "hello world"; | |
void setme(char **data) { | |
(*data) = foo; | |
} | |
int main() { | |
char *newdata = NULL; |
This file contains 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
diff --git a/Makefile b/Makefile | |
index 78cebdb..73eaac0 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -320,14 +320,14 @@ binary: $(BINARYTAR) | |
$(PKGSRC): release-only | |
rm -rf dist out | |
- $(PYTHON) configure --prefix=/ --without-snapshot \ | |
+ $(PYTHON) configure --prefix=/opt/local --without-snapshot \ |
This file contains 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
From 6968f8c6aaa5da35ccf75312786841494b61b7e7 Mon Sep 17 00:00:00 2001 | |
From: Timothy J Fontaine <tjfontaine@gmail.com> | |
Date: Tue, 18 Jun 2013 18:30:35 +0000 | |
Subject: [PATCH] build: pkgsrc use ld -R and include symlinks | |
--- | |
Makefile | 8 ++++---- | |
1 files changed, 4 insertions(+), 4 deletions(-) | |
diff --git a/Makefile b/Makefile |
This file contains 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
var dns = require('dns'); | |
var net = require('net'); | |
var _lookup = dns.lookup; | |
dns.lookup = function(name, cb) { | |
dns.resolve(name, function (err, ips) { | |
if (err) | |
return cb(err); | |
var rand = Math.floor((Math.random() * ips.length)); |